Skip to content

v0.3.1 — MCP Protocol Support

Latest

Choose a tag to compare

@Adamlixi Adamlixi released this 03 Apr 04:49

Add MCP (Model Context Protocol) support — the final roadmap item.

MCP Protocol

Connect to any MCP server (stdio/SSE/HTTP) and use its tools as native codenano ToolDefs.

const { tools } = await connectMCPServers([
  { name: 'github', transport: 'stdio', command: 'npx', args: ['-y', '@modelcontextprotocol/server-github'] },
])
const agent = createAgent({ model: 'claude-sonnet-4-6', tools })
  • connectMCPServer() / connectMCPServers() — connect with auto-transport selection
  • mcpToolsToToolDefs() — auto-wrap MCP tools as ToolDefs (mcp__<server>__<tool>)
  • callMCPTool() — call tools directly
  • Graceful error handling for failed connections

Roadmap 100% complete. 386 tests, 35 test files.