Skip to main content

aimdb_mcp/
lib.rs

1//! AimDB MCP Server
2//!
3//! Model Context Protocol (MCP) server implementation for AimDB.
4//! Enables Large Language Models to interact with running AimDB instances
5//! for introspection, debugging, and monitoring.
6//!
7//! # Architecture
8//!
9//! ```text
10//! LLM Host (VS Code/Claude)
11//!   ↓ stdio (JSON-RPC 2.0)
12//! aimdb-mcp server
13//!   ↓ aimdb-client library
14//! AimDB instances (Unix sockets)
15//! ```
16//!
17//! # MCP Protocol
18//!
19//! - **Transport**: stdio with NDJSON
20//! - **Protocol**: JSON-RPC 2.0
21//! - **Version**: 2025-06-18
22//! - **Capabilities**: Tools (7), Resources (5), Prompts (2)
23
24pub mod architecture;
25pub mod connection;
26pub mod error;
27pub mod prompts;
28pub mod protocol;
29pub mod resources;
30pub mod server;
31pub mod tools;
32pub mod transport;
33
34pub use error::{McpError, McpResult};
35pub use server::McpServer;
36pub use transport::StdioTransport;