Expand description
Model Context Protocol types and services re-exported from
gestura-core-mcp.
Modules§
- client
- MCP Client — connects to external MCP servers and invokes tools.
- cmd_
utils - config
- MCP server configuration types.
- discovery
- MCP Tool Discovery and Registry
- error
- Error types (compatibility wrapper).
- execution_
mode - Execution-mode primitives used for tool categorization and permission checks.
- integrator
- MCP Integrator - Token management and tool exposure Provides McpIntegrator trait and LocalMcp implementation for tool exposure, dual authentication, and MDH translation.
- lifecycle
- MCP Lifecycle Management Handles initialize/initialized handshake, ping, and shutdown.
- notifications
- MCP Notifications - Progress, logging, and cancellation Provides notification handling for long-running operations.
- prompts
- MCP Prompts - Templated messages and workflows Provides prompt definitions for voice commands and common workflows.
- provision
- MCP server provisioning — runtime availability checks and package pre-installation.
- registry
- MCP Registry integration — popular server discovery.
- server
- MCP JSON-RPC server (transport-agnostic)
- tool_
inspection - Tool inspection primitives used for MCP discovery metadata.
- types
- MCP Protocol Types (Version 2025-11-25) Defines all types for MCP protocol compliance including capabilities, lifecycle messages, prompts, and notifications.
Structs§
- Cached
Tool - Cached tool information from an MCP server
- Cancelled
Notification - Cancelled notification params
- Client
Capabilities - Client capabilities received during initialization
- Client
Info - Client information received during initialization
- Embedded
Resource - Embedded resource content
- Initialize
Params - Initialize request parameters
- Initialize
Result - Initialize response result
- Json
RpcError - JSON-RPC error payload.
- Json
RpcRequest - JSON-RPC request structure.
- Json
RpcResponse - JSON-RPC response structure.
- Local
Mcp - MCP integrator with token storage and validation
- Logging
Capability - Logging capability configuration
- Logging
Message - Logging message notification params
- McpCache
Stats - Cache statistics
- McpClient
- An active connection to a single MCP server.
- McpClient
Registry - Global registry of active MCP client connections, keyed by server name.
- McpDiscovery
Manager - MCP Tool Discovery Manager
- McpJson
File - Represents an
.mcp.jsonconfiguration file. - McpLogger
- Logger for MCP logging notifications
- McpRequest
Context - Context passed into tool/resource handlers.
- McpServer
- Transport-agnostic MCP JSON-RPC server.
- McpServer
Config - Configuration for MCP server connection
- McpServer
Entry - Full MCP server entry compatible with
.mcp.json. - McpServer
Info - Information about a connected MCP server
- McpTool
- MCP tool entry (basic) — DEPRECATED: use
McpServerEntryinstead. - MdhResource
- Result of local MDH translation suitable for MCP usage
- Operation
Progress - Progress state for an operation
- Ping
Params - Ping request (empty params)
- Ping
Result - Ping response (empty result)
- Popular
McpServer - A recommended MCP server entry sourced from the official MCP Registry.
- Progress
Notification - Progress notification params
- Progress
Tracker - Progress tracker for long-running operations
- Prompt
- Prompt definition
- Prompt
Argument - Prompt argument definition
- Prompt
Message - Prompt message content
- Prompt
Registry - Prompt registry for managing available prompts
- Prompts
Capability - Prompts capability configuration
- Prompts
GetParams - prompts/get request params
- Prompts
GetResult - prompts/get response
- Prompts
List Params - prompts/list request params
- Prompts
List Result - prompts/list response
- Provision
Result - Result returned to the frontend after a provisioning attempt.
- Registered
Prompt - A registered prompt with its handler
- Registry
Browse Entry - One entry in a paginated registry browse result.
- Registry
Browse Page - Paginated response returned by
browse_mcp_registry. - Resource
- Resource definition per MCP spec
- Resource
Annotations - Resource annotations
- Resource
Content - Resource content
- Resource
Reference - Resource reference
- Resources
Capability - Resources capability configuration
- Resources
List Params - resources/list request params
- Resources
List Result - resources/list response
- Resources
Read Params - resources/read request params
- Resources
Read Result - resources/read response
- Server
Capabilities - Server capabilities advertised during initialization
- Server
Info - Server information sent during initialization
- Session
Manager - Session manager for MCP lifecycle
- Text
Content - Text content
- Token
Info - Token information with expiration and permissions
- Tool
- Tool definition per MCP spec
- Tool
Annotations - Tool annotations for behavior hints
- Tools
Call Params - tools/call request params
- Tools
Call Result - tools/call response
- Tools
Capability - Tools capability configuration
- Tools
List Params - tools/list request params
- Tools
List Result - tools/list response
Enums§
- LogLevel
- Log level for logging notifications
- McpNotification
- MCP notification types
- McpScope
- Configuration scope for MCP servers.
- McpTransport
Type - Transport type for MCP server connections.
- Progress
Token - Progress token (string or integer)
- Prompt
Content - Prompt content (text or embedded resource)
- Prompt
Role - Prompt role
- Provision
Status - Outcome of a provisioning attempt.
- Server
State - MCP server connection state
- Session
State - MCP session state
- Tool
Result Content - Tool result content
Constants§
- PROTOCOL_
VERSION - MCP Protocol version
Traits§
- McpIntegrator
- Unifies MCP operations with dual authentication
- McpResource
Handler - Handler for an MCP resource.
- McpTool
Handler - Handler for an MCP tool.
Functions§
- browse_
mcp_ registry - Fetch a single page from the MCP Registry with optional full-text search.
- create_
notification_ channel - Create a notification channel
- create_
session_ manager - Create a shared session manager
- get_mcp
- Get the global MCP instance
- get_
mcp_ client_ registry - Get the global MCP client registry.
- import_
claude_ desktop_ servers - Import MCP servers from Claude Desktop config.
- list_
popular_ mcp_ servers - Return up to
limitpopular, open-source MCP servers that can be added without additional configuration. - mdh_
translate - Local-only MDH translate: read JSON file, validate minimal JSON-LD shape, and create URI NOTE: In production we will use json-ld-rs to expand/compact; here we simulate locally
- normalize_
mcp_ server_ name - Convert an arbitrary registry name into a safe, stable tool identifier.
- provision_
mcp_ server - Check runtime availability and pre-install/fetch the package for
entry.
Type Aliases§
- Notification
Receiver - Notification receiver for MCP notifications
- Notification
Sender - Notification sender for MCP notifications