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//! - `McpEnvEntry` - Environment variable entry
14//! - `McpTool` - Tool exposed by an MCP server
15//! - `McpToolResult` - Result of a tool invocation
16
17mod types;
18
19pub use types::{
20    McpEnvEntry, McpServer, McpServerConfig, McpServerStatus, McpServerType, McpTool,
21    McpToolResult, NewMcpServer, UpdateMcpServer,
22};