Module mcp

Module mcp 

Source
Expand description

MCP (Model Context Protocol) server implementation for Things 3 integration

Modules§

io_wrapper
I/O abstraction layer for MCP server to enable testing
middleware
MCP Middleware system for cross-cutting concerns
test_harness
Test harness for MCP server testing

Structs§

CallToolRequest
CallToolResult
GetPromptRequest
GetPromptResult
ListPromptsResult
ListResourcesResult
ListToolsResult
Prompt
MCP Prompt for reusable templates
ReadResourceRequest
ReadResourceResult
Resource
MCP Resource for data exposure
ThingsMcpServer
MCP server for Things 3 integration
Tool
Simplified MCP types for our implementation

Enums§

Content
McpError
MCP-specific error types for better error handling and user experience

Functions§

start_mcp_server
Start the MCP server
start_mcp_server_generic
Generic MCP server implementation that works with any I/O implementation
start_mcp_server_with_config
Start the MCP server with comprehensive configuration
start_mcp_server_with_config_generic
Generic MCP server with config implementation that works with any I/O implementation

Type Aliases§

McpResult
Result type alias for MCP operations