Expand description
MCP (Model Context Protocol) implementation
MCP is a standardized protocol for connecting AI models to external tools and data sources. This implementation supports:
- JSON-RPC 2.0 messaging over stdio/SSE
- Tool definitions and invocation
- Resource exposure and sampling
- Prompt templates
§Server Mode
Run as an MCP server to expose CodeTether tools to Claude Desktop or other clients:
codetether mcp serve§Client Mode
Connect to external MCP servers to use their tools:
codetether mcp connect "npx -y @modelcontextprotocol/server-filesystem /path"Structs§
- Call
Tool Params - Call tool parameters
- Call
Tool Result - Tool call result
- Client
Capabilities - Client capabilities sent during initialize
- Client
Info - Create
Message Params - Sampling request (for server -> client sampling)
- Create
Message Result - Sampling response
- GetPrompt
Params - Get prompt parameters
- GetPrompt
Result - Get prompt response
- Initialize
Params - Initialize request parameters
- Initialize
Result - Initialize response
- Json
RpcError - JSON-RPC error
- Json
RpcNotification - JSON-RPC 2.0 notification (no id)
- Json
RpcRequest - JSON-RPC 2.0 request
- Json
RpcResponse - JSON-RPC 2.0 response
- List
Prompts Result - List prompts response
- List
Resources Result - List resources response
- List
Tools Result - List tools response
- Logging
Capability - Logging
Message Params - McpClient
- MCP Client for connecting to external servers
- McpPrompt
- Prompt definition
- McpRegistry
- MCP Server Registry - manages multiple MCP server connections
- McpResource
- Resource definition
- McpServer
- MCP Server implementation
- McpTool
- Tool definition
- Model
Hint - Model
Preferences - Prompt
Argument - Prompt
Message - Prompt message
- Prompts
Capability - Read
Resource Params - Read resource parameters
- Read
Resource Result - Read resource response
- Resource
Contents - Resource contents
- Resource
Metadata - Resource metadata for storage and querying
- Resources
Capability - Roots
Capability - Sampling
Capability - Sampling
Message - Server
Capabilities - Server capabilities returned during initialize
- Server
Info - SseTransport
- SSE transport for MCP (HTTP-based)
- Stdio
Transport - Stdio transport for MCP (synchronous version for server mode)
- Tool
Metadata - Tool metadata for storage and querying
- Tools
Capability
Enums§
- LogLevel
- Prompt
Content - Prompt
Role - Request
Id - JSON-RPC request ID (can be string or number)
- Resource
Content - Sampling
Content - Tool
Content
Constants§
Traits§
- Transport
- Transport trait for MCP communication