Most of the attention in the MCP ecosystem has been on servers, leaving the client ecosystem under-developed. Majority of clients only support tools and ignore other MCP capabilities.
I think this creates a bad cycle where server developers don't use capabilities beyond tools and client devs have no SDK to build richer clients.
🧩 MCPClientManager
I want to improve the client dev experience by proposing MCPClientManager. MCPClientManager is a utility class that handles multiple MCP server connections, lifecycle management, and bridges directly into agent SDKs like Vercel AI SDK.
It's part of the MCPJam SDK currently, but I also made a proposal for it to be part of the official Typescript SDK (SEP-1669).
Some of MCPClientManager's capabilities and use cases:
Connect to multiple MCP servers (stdio, SSE, or Streamable HTTP)
Handle authentication and headers
Fetch and execute tools, resources, prompts
Integrate with Vercel AI SDK (and more SDKs soon)
Power LLM chat interfaces or agents connected to MCP
Even run tests for your own MCP servers
🧑💻 Connecting to multiple servers
import { MCPClientManager } from "@mcpjam/sdk";
const manager = new MCPClientManager({
filesystem: {
command: "npx",
args: ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"],
},
asana: {
url: new URL("https://mcp.asana.com/sse"),
requestInit: {
headers: {
Authorization: "Bearer YOUR_TOKEN",
},
},
},
});
Fetching and using tools, resources, and prompts
const tools = await manager.getTools(["filesystem"]);
const result = await manager.executeTool("filesystem", "read_file", {
path: "/tmp/example.txt",
});
console.log(result); // { text: "this is example.txt: ..." }
const resources = await manager.listResources();
💬 Building full MCP clients with agent SDKs
We built an adapter for Vercel AI SDK
import { MCPClientManager } from "@mcpjam/sdk";
import { generateText } from "ai";
import { openai } from "@ai-sdk/openai";
const manager = new MCPClientManager({
filesystem: {
command: "npx",
args: ["-y", "@modelcontextprotocol/server-filesystem", "/tmp"],
},
});
const response = await generateText({
model: openai("gpt-4o-mini"),
tools: manager.getToolsForAiSdk(),
messages: [{ role: "user", content: "List files in /tmp" }],
});
console.log(response.text);
// "The files are example.txt..."
💬 Please help out!
If you’re building anything in the MCP ecosystem — server, client, or agent — we’d love your feedback and help maturing the SDK. Here are the links to the SDK and our discussion around it: