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.
McpAppDisclosure
Compact disclosure facts about an MCP resource for app presentation surfaces.
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.
McpToolVisibility
Tool accessibility between model and app (SEP-1865 _meta.ui.visibility).
McpUiResourceMeta
Declared sandbox posture of an MCP Apps UI resource (SEP-1865 UIResourceMeta).
McpUiToolMeta
Linkage from an MCP tool to its MCP Apps UI resource.
MetaObject
General-purpose _meta map (spec MetaObject).
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
ResourceContents
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 off apps 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§

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)
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 _meta map.
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