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 IDNewMcpServer- 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 entryMcpTool- Tool exposed by an MCP serverMcpToolResult- Result of a tool invocationToolIndex/ToolSummary- Progressive-disclosure tool registry index
Modules§
- tool_
index 🔒 - In-memory index for progressive tool disclosure.
- types 🔒
- MCP server domain types.
Structs§
- McpEnv
Entry - Environment variable entry for MCP servers.
- McpServer
- An MCP server that exists in the system with a database ID.
- McpServer
Config - Execution configuration for an MCP server.
- McpTool
- Tool definition from an MCP server.
- McpTool
Result - Result of a tool call.
- NewMcp
Server - An MCP server to be inserted into the system (no ID yet).
- Tool
Index - An in-memory index over all tools from all running MCP servers.
- Tool
Summary - A lightweight, schema-free description of a single MCP tool.
- Update
McpServer - Request for updating an existing MCP server.
Enums§
- McpLifecycle
- Startup lifecycle policy for an MCP server.
- McpServer
Status - Runtime status of an MCP server.
- McpServer
Type - Type of MCP server connection.
Constants§
- SEARCH_
RESULTS_ CAP - Maximum number of
ToolSummaryentries returned by a singleToolIndex::searchcall.