Skip to content

MCP bridge

Connection to one MCP server: a stdio command OR an HTTP URL.

Discover tools from one or more MCP servers.

Yields a list[ToolDefinition] usable directly by Agent(tools=...). Sessions and transports close when the context exits.

Wrap the tools of an already-initialized ClientSession.

Exposed for advanced use and tests; prefer :func:mcp_tools.

See MCP for the guide.