Skip to main content

forge_sdk/
mcp.rs

1//! In-process MCP server hosting.
2//!
3//! Exposes Rust functions as MCP tools that the `claude` binary can call
4//! during agentic work, following the SDK's `create_sdk_mcp_server` and
5//! `@tool` decorator model. The wire details were observed from the CLI
6//! rather than specified.
7
8#[macro_use]
9pub mod macros;
10pub(crate) mod orchestration;
11pub mod protocol;
12pub mod server;
13pub mod tool;
14
15pub use protocol::{
16    JsonRpcRequest, JsonRpcResponse, JsonRpcResult, McpError, ServerInfo, ToolDescription,
17};
18pub use server::{McpServer, McpServerBuilder};
19pub use tool::{Tool, ToolInput, ToolOutput, ToolOutputBlock};