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.
- McpApp
Disclosure - Compact disclosure facts about an MCP resource for app presentation surfaces.
- 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.
- McpTool
Visibility - Tool accessibility between model and app (SEP-1865
_meta.ui.visibility). - McpUi
Resource Meta - Declared sandbox posture of an MCP Apps UI resource (SEP-1865
UIResourceMeta). - McpUi
Tool Meta - Linkage from an MCP tool to its MCP Apps UI resource.
- Meta
Object - General-purpose
_metamap (specMetaObject). - 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
- Resource
Contents - The contents of a specific resource or sub-resource.
Constants§
- MAX_
UNTRUSTED_ MCP_ DESCRIPTION_ BYTES - Maximum encoded body size for an MCP tool description shown to a model.
- MCP_
APP_ DISCLOSURE_ KEY - Tool-result key carrying per-URI app disclosure (
{uri: McpAppDisclosure}). - MCP_
APP_ SUPPRESSED_ KEY - Tool-result key listing app URIs refused by the
offapps tier ([String]). - MCP_
UI_ EXTENSION_ ID - MCP Apps extension identifier (
io.modelcontextprotocol/ui). - MCP_
UI_ RESOURCE_ MIME_ TYPE - MIME type a
ui://app resource must serve. - MCP_
UI_ RESOURCE_ SCHEME - URI scheme identifying MCP Apps UI resources.
- 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)
- disclose_
app_ resource - Derive disclosure facts from a resource read result.
- initialization_
timeout - Helper to create an “initialization timeout” error
- parse_
ui_ resource_ meta - Extract the UI sandbox posture from a resource’s
_metamap. - 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