Expand description
MCP Types and Data Structures
This module defines the core types used throughout the MCP (Model Context Protocol) implementation, including tool definitions, execution results, server status tracking, and event notifications.
§Core Types
McpTool: Tool metadata received from MCP serversMcpCallResult: Result of tool executionMcpContentItem: Content returned by tools (text, images, resources)ServerStatus: Runtime status of MCP serversRuntimeInfo: Detailed server health and statisticsMcpEvent: Events for server state changes
§Architecture
The MCP client manages multiple server connections, each providing tools. Tools can be invoked and return structured content. The manager tracks server health and emits events for monitoring.
Structs§
- McpCall
Result - Result of calling an MCP tool.
- McpResource
- Resource reference in MCP.
- McpTool
- MCP tool metadata received from a server.
- Runtime
Info - Runtime information for an MCP server.
- Tool
Alias - Tool alias mapping for namespaced tool access.
Enums§
- McpContent
Item - Content item returned by MCP tools.
- McpEvent
- Event emitted by the MCP manager.
- Server
Status - Server runtime status indicator.