Skip to main content

Crate agentkit_mcp

Crate agentkit_mcp 

Source

Structs§

McpCapabilityProvider
A CapabilityProvider that surfaces MCP tools, resources, and prompts into the agentkit capabilities system.
McpConnection
A live connection to a single MCP server.
McpDiscoverySnapshot
A snapshot of all capabilities discovered from a single MCP server.
McpFrame
A single JSON-RPC frame exchanged with an MCP server.
McpInvocable
Adapter that exposes an MCP tool as an Invocable for the capabilities system.
McpPromptDescriptor
Descriptor for a prompt template advertised by an MCP server.
McpPromptHandle
Adapter that exposes a single MCP prompt as a PromptProvider.
McpResourceDescriptor
Descriptor for a resource advertised by an MCP server.
McpResourceHandle
Adapter that exposes a single MCP resource as a ResourceProvider.
McpServerConfig
Full configuration for a single MCP server, combining an identifier, a transport binding, and optional metadata.
McpServerHandle
A connected MCP server together with its configuration and discovery snapshot.
McpServerId
Unique identifier for a registered MCP server.
McpServerManager
Manages the lifecycle of one or more MCP servers: registration, connection, discovery, refresh, disconnection, and auth resolution.
McpToolAdapter
Adapter that exposes an MCP tool as an agentkit Tool.
McpToolDescriptor
Descriptor for a tool advertised by an MCP server.
SseTransportConfig
Configuration for an MCP server that communicates over Server-Sent Events (SSE).
SseTransportFactory
Factory that opens an HTTP SSE stream and connects via Server-Sent Events.
StdioTransportConfig
Configuration for an MCP server that communicates over standard I/O (stdin/stdout).
StdioTransportFactory
Factory that spawns a child process and connects via stdin/stdout.
StreamableHttpTransportConfig
Configuration for an MCP server that communicates over Streamable HTTP.
StreamableHttpTransportFactory
Factory that connects to a Streamable HTTP MCP endpoint.

Enums§

McpError
Errors produced by MCP transport, protocol, and lifecycle operations.
McpOperationResult
The result of replaying an MCP operation after auth resolution.
McpTransportBinding
Selects which transport an MCP server should use.

Traits§

McpTransport
Bidirectional transport for exchanging McpFrame messages with an MCP server.
McpTransportFactory
Factory trait for creating new McpTransport connections.