Skip to main content

Module mcp

Module mcp 

Source
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§

FileParamSchemaEntry
Masked schema entry for a file parameter in a tool’s input schema.
FileUploadResult
Result of uploading a local file to the backend.
McpClient
McpClientStatus
Snapshot describing the MCP client at runtime.
McpElicitationRequest
Request payload for handling elicitation prompts from MCP providers.
McpElicitationResponse
Result returned by an elicitation handler after interacting with the user.
McpPromptDetail
Fully rendered MCP prompt ready for use.
McpPromptInfo
Summary of an MCP prompt exposed by a provider.
McpProvider
McpResourceData
Resource contents fetched from an MCP provider.
McpResourceInfo
Summary of an MCP resource exposed by a provider.
McpSandboxContext
Sandbox policy and launch context inherited by MCP stdio providers.
McpToolInfo
Information about an MCP tool exposed by a provider.
ProvidedFilePayload
Shape of a file payload provided by the client after upload.
ToolDiscovery
Tool discovery service for progressive disclosure of MCP tools.
ToolDiscoveryResult
Result of a tool discovery operation.

Enums§

DetailLevel
Level of detail returned in tool search results.
ElicitationAction
Represents the possible actions a user can take in response to an elicitation request.
ErrorCode
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§

McpElicitationHandler
Callback interface used to resolve elicitation requests from MCP providers.
McpToolExecutor
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§

HttpTransport
Type alias for HTTP transport
McpResult