Skip to main content

Module completion

Module completion 

Source
Expand description

Completion handling for MCP servers

This module provides the foundation for implementing autocompletion features in MCP servers, supporting the completion API introduced in MCP 2025-11-25.

Structs§

CompletionContext
Completion context for additional information
CompositeCompletionHandler
Combined completion handler that delegates to different handlers based on reference type
PromptCompletionHandler
Default prompt completion handler with fuzzy matching
ResourceUriCompletionHandler
Resource URI completion handler
ToolCompletionHandler
Tool argument completion handler

Traits§

CompletionHandler
Trait for handling completion requests