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)
  • McpEnvEntry - Environment variable entry
  • McpTool - Tool exposed by an MCP server
  • McpToolResult - Result of a tool invocation

Modules§

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).
UpdateMcpServer
Request for updating an existing MCP server.

Enums§

McpServerStatus
Runtime status of an MCP server.
McpServerType
Type of MCP server connection.