brainos-mcphost 0.5.0

MCP host — mounts external Model Context Protocol servers (stdio/HTTP/SSE) for Brain OS
Documentation

Brain MCP Host

Host-side integration for external Model Context Protocol servers. The sibling brainos-mcp crate is a server (Brain exposes its own tools); this crate is the host side — Brain mounts and routes through other people's tool servers.

Supported transports (per MCP spec 2025-11-25):

  • stdio — child process speaking JSON-RPC on stdin/stdout
  • Streamable HTTP — current spec transport
  • HTTP+SSE — legacy transport, still spec-required for compatibility

This crate currently provides the trait surfaces ([MCPHost], [MCPClient]), the [ServerConfig] / [OAuthConfig] / [ToolDescriptor] / [CallOutcome] types, the [McpHostError] taxonomy, and an [InMemoryMcpHost] no-transport stub so downstream wiring can be built against the trait before transports are implemented.