gglib_core/domain/mcp/
mod.rs

1//! MCP (Model Context Protocol) server domain types.
2//!
3//! These types represent MCP servers in the system, independent of any
4//! infrastructure concerns (database, process management, etc.).
5//!
6//! # Design
7//!
8//! - `McpServer` - A persisted MCP server with ID
9//! - `NewMcpServer` - An MCP server to be inserted (no ID yet)
10//! - `McpServerConfig` - Execution configuration (`exe_path`, args, URL, `path_extra`)
11//! - `McpServerType` - Connection type (stdio or SSE)
12//! - `McpServerStatus` - Runtime status (stopped, starting, running, error)
13//! - `McpLifecycle` - Startup lifecycle policy (eager, lazy, manual)
14//! - `McpEnvEntry` - Environment variable entry
15//! - `McpTool` - Tool exposed by an MCP server
16//! - `McpToolResult` - Result of a tool invocation
17//! - `ToolIndex` / `ToolSummary` - Progressive-disclosure tool registry index
18
19mod tool_index;
20mod types;
21
22pub use tool_index::{SEARCH_RESULTS_CAP, ToolIndex, ToolSummary};
23pub use types::{
24    McpEnvEntry, McpLifecycle, McpServer, McpServerConfig, McpServerStatus, McpServerType, McpTool,
25    McpToolResult, NewMcpServer, UpdateMcpServer,
26};