Skip to main content

codetether_agent/mcp/
mod.rs

1//! MCP (Model Context Protocol) implementation
2//!
3//! MCP is a standardized protocol for connecting AI models to external tools
4//! and data sources. This implementation supports:
5//! - JSON-RPC 2.0 messaging over stdio/SSE
6//! - Tool definitions and invocation
7//! - Resource exposure and sampling
8//! - Prompt templates
9//!
10//! # Server Mode
11//! Run as an MCP server to expose CodeTether tools to Claude Desktop or other clients:
12//! ```bash
13//! codetether mcp serve
14//! ```
15//!
16//! # Client Mode
17//! Connect to external MCP servers to use their tools:
18//! ```bash
19//! codetether mcp connect "npx -y @modelcontextprotocol/server-filesystem /path"
20//! ```
21
22mod client;
23mod server;
24mod transport;
25mod types;
26
27pub use client::{McpClient, McpRegistry};
28pub use server::McpServer;
29pub use transport::{SseTransport, StdioTransport, Transport};
30pub use types::*;