Expand description
Brainwires MCP - Model Context Protocol client and types
This crate provides MCP client functionality for the Brainwires Agent Framework:
- McpClient: Connect to external MCP servers, list/call tools, resources, prompts
- Transport: Stdio-based transport layer for MCP communication
- Types: JSON-RPC 2.0 types and MCP protocol types (with rmcp compatibility)
- Config: MCP server configuration management
Re-exports§
pub use client::McpClient;pub use transport::StdioTransport;pub use transport::Transport;pub use config::McpConfigManager;pub use config::McpServerConfig;pub use types::JsonRpcError;pub use types::JsonRpcMessage;pub use types::JsonRpcNotification;pub use types::JsonRpcRequest;pub use types::JsonRpcResponse;pub use types::McpNotification;pub use types::ProgressParams;pub use types::CallToolParams;pub use types::ClientCapabilities;pub use types::ClientInfo;pub use types::GetPromptParams;pub use types::GetPromptResult;pub use types::InitializeParams;pub use types::InitializeResult;pub use types::ListPromptsResult;pub use types::ListResourcesResult;pub use types::ListToolsResult;pub use types::McpPrompt;pub use types::McpResource;pub use types::McpTool;pub use types::PromptArgument;pub use types::PromptContent;pub use types::PromptMessage;pub use types::ReadResourceParams;pub use types::ReadResourceResult;pub use types::ResourceContent;pub use types::ServerCapabilities;pub use types::ServerInfo;pub use types::ToolResultContent;pub use brainwires_core;
Modules§
- client
- MCP client for connecting to external servers.
- config
- MCP server configuration management.
- prelude
- Prelude module for convenient imports
- transport
- Stdio-based transport layer for MCP communication.
- types
- MCP protocol types and JSON-RPC types. MCP Protocol Types
Structs§
- Call
Tool Result - The result of a tool call operation.
- Prompts
Capability - Resources
Capability - Tools
Capability