Skip to main content

Module types

Module types 

Source
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

§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§

McpCallResult
Result of calling an MCP tool.
McpResource
Resource reference in MCP.
McpTool
MCP tool metadata received from a server.
RuntimeInfo
Runtime information for an MCP server.
ToolAlias
Tool alias mapping for namespaced tool access.

Enums§

McpContentItem
Content item returned by MCP tools.
McpEvent
Event emitted by the MCP manager.
ServerStatus
Server runtime status indicator.