Documentation
¶
Overview ¶
MCP client-to-tool bridging tutorial. Maps tools exposed by an MCP server into Agent-callable pkg/tools.Tool values, including schema validation. MCP uses JSON-RPC independently of transport (stdio, SSE, or in-memory); this example uses an in-memory server and needs no network or external process. Flow: NewClient -> Initialize -> ListTools -> bridge.ToTools -> tool.Execute. Run: go run ./examples/mcp. See pkg/mcp/mcp.go for Transport, Client, Bridge, and MapSchema.
Click to show internal directories.
Click to hide internal directories.