Expand description
MCP client management built on top of the Codex MCP building blocks.
Re-exported from vtcode-mcp for backward compatibility.
The cli module remains local as it depends on crate::cli::input_hardening.
Modules§
- cli
- CLI commands for managing Model Context Protocol providers.
- connection_
pool - MCP connection pool for efficient provider management
- enhanced_
config - Enhanced MCP Configuration
- errors
- plugin_
providers - rmcp_
transport - tool_
discovery - Tool discovery and search functionality for MCP tools.
- tool_
discovery_ cache - Tool discovery caching system for MCP to avoid redundant tool searches
- traits
- MCP trait abstractions for tool execution and elicitation handling.
- trust
- Prompt-boundary helpers for MCP-provided metadata.
- types
- Core MCP data types for tool, resource, and prompt information.
Structs§
- File
Param Schema Entry - Masked schema entry for a file parameter in a tool’s input schema.
- File
Upload Result - Result of uploading a local file to the backend.
- McpClient
- McpClient
Status - Snapshot describing the MCP client at runtime.
- McpElicitation
Request - Request payload for handling elicitation prompts from MCP providers.
- McpElicitation
Response - Result returned by an elicitation handler after interacting with the user.
- McpPrompt
Detail - Fully rendered MCP prompt ready for use.
- McpPrompt
Info - Summary of an MCP prompt exposed by a provider.
- McpProvider
- McpResource
Data - Resource contents fetched from an MCP provider.
- McpResource
Info - Summary of an MCP resource exposed by a provider.
- McpSandbox
Context - Sandbox policy and launch context inherited by MCP stdio providers.
- McpTool
Info - Information about an MCP tool exposed by a provider.
- Provided
File Payload - Shape of a file payload provided by the client after upload.
- Tool
Discovery - Tool discovery service for progressive disclosure of MCP tools.
- Tool
Discovery Result - Result of a tool discovery operation.
Enums§
- Detail
Level - Level of detail returned in tool search results.
- Elicitation
Action - Represents the possible actions a user can take in response to an elicitation request.
- Error
Code - MCP Error codes for better error identification and debugging
Constants§
- MAX_
UNTRUSTED_ MCP_ DESCRIPTION_ BYTES - Maximum encoded body size for an MCP tool description shown to a model.
- OPENAI_
FILE_ PARAMS_ META_ KEY - Metadata key used in tool input schemas to indicate file upload parameters.
- OPENAI_
FILE_ PARAMS_ VALUE
Traits§
- McpElicitation
Handler - Callback interface used to resolve elicitation requests from MCP providers.
- McpTool
Executor - Trait abstraction used by the tool registry to talk to the MCP client.
Functions§
- configuration_
error - Helper to create a “configuration error”
- create_
http_ transport - Create an HTTP-based transport from endpoint URL (Phase 3.2)
- create_
stdio_ transport - Create a stdio-based transport from configuration
- create_
stdio_ transport_ with_ stderr - Create a stdio transport from individual parameters (Phase 2 integration)
- initialization_
timeout - Helper to create an “initialization timeout” error
- provider_
not_ found - Helper to create a “provider not found” error
- provider_
unavailable - Helper to create a “provider unavailable” error
- render_
untrusted_ mcp_ description - Render an MCP tool description as bounded, escaped untrusted metadata.
- schema_
invalid - Helper to create a “schema invalid” error
- tool_
invocation_ failed - Helper to create a “tool invocation failed” error
- tool_
not_ found - Helper to create a “tool not found” error
- validate_
mcp_ config - Validate MCP configuration settings
Type Aliases§
- Http
Transport - Type alias for HTTP transport
- McpResult