Module mcp

Module mcp 

Source
Expand description

MCP (Model Context Protocol) server domain types.

These types represent MCP servers in the system, independent of any infrastructure concerns (database, process management, etc.).

§Design

  • McpServer - A persisted MCP server with ID
  • NewMcpServer - An MCP server to be inserted (no ID yet)
  • McpServerConfig - Execution configuration (exe_path, args, URL, path_extra)
  • McpServerType - Connection type (stdio or SSE)
  • McpServerStatus - Runtime status (stopped, starting, running, error)
  • McpLifecycle - Startup lifecycle policy (eager, lazy, manual)
  • McpEnvEntry - Environment variable entry
  • McpTool - Tool exposed by an MCP server
  • McpToolResult - Result of a tool invocation
  • ToolIndex / ToolSummary - Progressive-disclosure tool registry index

Modules§

tool_index 🔒
In-memory index for progressive tool disclosure.
types 🔒
MCP server domain types.

Structs§

McpEnvEntry
Environment variable entry for MCP servers.
McpServer
An MCP server that exists in the system with a database ID.
McpServerConfig
Execution configuration for an MCP server.
McpTool
Tool definition from an MCP server.
McpToolResult
Result of a tool call.
NewMcpServer
An MCP server to be inserted into the system (no ID yet).
ToolIndex
An in-memory index over all tools from all running MCP servers.
ToolSummary
A lightweight, schema-free description of a single MCP tool.
UpdateMcpServer
Request for updating an existing MCP server.

Enums§

McpLifecycle
Startup lifecycle policy for an MCP server.
McpServerStatus
Runtime status of an MCP server.
McpServerType
Type of MCP server connection.

Constants§

SEARCH_RESULTS_CAP
Maximum number of ToolSummary entries returned by a single ToolIndex::search call.