Expand description
Server module re-exports.
Re-exports all types from mcpkit_server.
Modules§
- builder
- Fluent server builder for MCP servers.
- capability
- Capability handlers for MCP servers.
- context
- Request context for MCP handlers.
- handler
- Composable handler traits for MCP servers.
- health
- Health check utilities for MCP servers.
- metrics
- Server-level metrics for MCP servers.
- prelude
- Prelude module for convenient imports.
- router
- Request routing for MCP servers.
- server
- Server runtime for MCP servers.
- state
- Typestate connection management for MCP servers.
Structs§
- Cancellation
Token - A cancellation token for tracking request cancellation.
- Cancelled
Future - A future that completes when cancellation is requested.
- Component
Health - Health status of a single component.
- Context
- Request context passed to handler methods.
- Context
Data - Owned data for creating contexts.
- Health
Checker - Health checker for MCP servers.
- Health
Report - Detailed health check result.
- Liveness
Response - Liveness probe response.
- Method
Stats - Statistics for a single MCP method.
- Metrics
Snapshot - A point-in-time snapshot of server metrics.
- NoOp
Peer - A no-op peer implementation for testing.
- NotRegistered
- Marker type indicating no handler is registered for a capability.
- Readiness
Response - Readiness probe response.
- Registered
- Marker type indicating a handler is registered for a capability.
- Runtime
Config - Server runtime configuration.
- Server
- A configured MCP server ready to serve requests.
- Server
Builder - Builder for constructing MCP servers with specific capabilities.
- Server
Metrics - Server metrics collector.
- Server
Runtime - Server runtime that handles the message loop.
- Server
State - State for a running server.
- Transport
Peer - A peer implementation that sends notifications over a transport.
Enums§
- Health
Status - Overall health status of the service.
- LogLevel
- Log levels for MCP logging.
Traits§
- Completion
Handler - Handler for completion suggestions.
- Elicitation
Handler - Handler for elicitation requests (structured user input).
- Logging
Handler - Handler for logging operations.
- Peer
- Trait for sending messages to the peer (client or server).
- Prompt
Handler - Handler for prompt-related operations.
- Request
Router - Trait for routing requests to handlers.
- Resource
Handler - Handler for resource-related operations.
- Sampling
Handler - Handler for sampling requests (server-initiated LLM calls).
- Server
Handler - Core server handler trait - required for all MCP servers.
- Task
Handler - Handler for task-related operations.
- Tool
Handler - Handler for tool-related operations.
Functions§
- route_
prompts - Route prompt-related requests to a handler implementing
PromptHandler. - route_
resources - Route resource-related requests to a handler implementing
ResourceHandler. - route_
tools - Route tool-related requests to a handler implementing
ToolHandler.
Type Aliases§
- Full
Server - Type alias for a fully-configured server with all handlers.
- Minimal
Server - Type alias for a minimal server with no optional handlers.