3 ms·
It's a protocol that doesn't dictate how you are calling the tool. You can use in-memory transport without needing to spin up a server. Your tool can just be a
by xyc 1y ago
It's a protocol that doesn't dictate how you are calling the tool. You can use in-memory transport without needing to spin up a server. Your tool can just be a function, but with the flexibility of serving to other clients.
- ijk 1y agoAre there any examples of that? All the documentation I saw seemed to be about building an MCP server, with very little about connecting an existing inference infrastructure to local functions.
- xyc 1y agoFor TypeScript you can refer to https://github.com/modelcontextprotocol/typescript-sdk/blob/main/src/inMemory.ts https://github.com/modelcontextprotocol/typescript-sdk/blob/... There isn't much documentation available right now but you can ask coding agent eg. Claude Code to generate an example.