mcp

command
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL