Expand description
§Model Context Protocol (MCP) Implementation
Standards-compliant MCP implementation for PromptFleet agents
- JSON-RPC 2.0 wire format (MCP specification requirement)
- HTTP/HTTPS transport with OAuth 2.1 Bearer token support
- FastMCP compatible - interoperable with Python FastMCP and TypeScript MCP SDKs
- External MCP servers - connect to any MCP server via proxy
§Compatibility Verified (June 2025)
- MCP Specification 2025-06-18 (latest)
- JSON-RPC 2.0 specification compliant
- FastMCP Python implementation compatible
- Standard OAuth 2.1 Bearer token authentication
- HTTP+SSE and Streamable HTTP transport support
§Core Features
- Tool Discovery:
list_toolsmethod - Tool Execution:
call_toolmethod with proper parameter handling - Memory Operations:
add_memory,search_memorymethods - Health Monitoring:
heartbeatand health endpoints - Authentication: Bearer token and custom auth strategies
- Proxy Support: Connect to external MCP servers outside Kubernetes
Re-exports§
pub use error::*;pub use types::*;pub use client::*;pub use server::*;pub use auth::*;pub use proxy::*;
Modules§
- auth
- MCP Authentication
- client
- MCP Client
- error
- MCP Protocol Errors
- handler
- MCP Protocol Handler
- proxy
- MCP Proxy
- server
- MCP Server
- types
- MCP Protocol Types
Structs§
- McpProtocol
Handler - MCP Protocol Handler - Integrates with protocol_transport_core
Enums§
- Query
Mode - Query Mode - How to handle tool listing
Constants§
- JSONRPC_
VERSION - JSON-RPC Version - Required by MCP specification
- MCP_
PROTOCOL_ VERSION - MCP Protocol Version - Current specification version
Traits§
- Tool
Provider - Tool Provider Trait - Pure abstraction for tool operations
Functions§
- create_
mcp_ handler - Quick setup function for MCP protocol handler
- create_
mcp_ handler_ with_ capabilities - Quick setup function for MCP protocol handler with custom capabilities