Skip to main content

Module mcp

Module mcp 

Source
Expand description

Model Context Protocol (MCP) client implementation.

Enables Selfware to connect to MCP servers (GitHub, Playwright, databases, etc.) and use their tools as native tools in the agent’s tool registry.

MCP uses JSON-RPC 2.0 over stdio transport. Each server is a child process that communicates via stdin/stdout.

Re-exports§

pub use client::McpClient;
pub use discovery::discover_tools;
pub use tool_bridge::McpTool;
pub use transport::StdioTransport;
pub use transport::Transport;

Modules§

client
MCP client that manages the protocol lifecycle.
discovery
MCP tool discovery.
server
MCP server implementation.
tool_bridge
MCP tool bridge: adapts MCP tools to the native Tool trait.
transport
MCP transport layer.

Structs§

McpConfig
Top-level MCP configuration section.
McpServerConfig
Configuration for a single MCP server.