Skip to main content

awaken_ext_mcp/
lib.rs

1//! Model Context Protocol (MCP) client integration for external tool servers.
2//!
3//! Provides [`McpToolRegistryManager`] for connecting to MCP servers and
4//! exposing their tools as awaken [`Tool`](awaken_runtime_contract::contract::tool::Tool) instances.
5
6pub mod config;
7pub mod error;
8pub mod id_mapping;
9pub mod manager;
10pub mod plugin;
11pub mod progress;
12pub mod sampling;
13pub mod transport;
14
15pub use config::{McpServerConnectionConfig, TransportTypeId};
16pub use error::McpError;
17pub use manager::{
18    McpPromptEntry, McpRefreshHealth, McpResourceEntry, McpServerStatusSnapshot,
19    McpServerToolEntry, McpToolRegistry, McpToolRegistryManager, ResourceUpdated,
20};
21pub use plugin::McpPlugin;
22pub use progress::McpProgressUpdate;
23pub use sampling::{
24    DefaultSamplingHandler, FixedSamplingHandlerFactory, SamplingHandler, SamplingHandlerFactory,
25};
26pub use transport::{
27    ListChangedKind, McpCallContext, McpCallMetadata, McpCallSampling, McpPromptArgument,
28    McpPromptDefinition, McpPromptMessage, McpPromptResult, McpResourceDefinition,
29    McpToolTransport,
30};