Skip to main content

atomcode_core/mcp/
mod.rs

1//! MCP (Model Context Protocol) integration module.
2//!
3//! This module provides support for connecting to MCP servers and exposing
4//! their tools through AtomCode's ToolRegistry.
5
6pub mod client;
7pub mod config;
8pub mod oauth;
9pub mod registry;
10pub mod tool_adapter;
11pub mod transport_http;
12pub mod transport_stdio;
13pub mod types;
14
15pub use client::{McpClient, McpToolInfo};
16pub use config::{
17    load_mcp_config, merge_http_oauth_mcp_server_into_json_file,
18    merge_stdio_mcp_server_into_json_file, McpHttpAuthConfig, McpOAuthConfig, McpServerConfig,
19    McpTransportConfig,
20};
21pub use oauth::{
22    login_github_oauth, login_mcp_oauth, refresh_mcp_oauth_token, McpOAuthLoginOptions,
23    McpOAuthToken, McpTokenStore,
24};
25pub use registry::{McpConnectEvent, McpRegistry};
26pub use tool_adapter::{register_mcp_tools, register_mcp_tools_async, McpToolAdapter};
27pub use types::*;