Let a server answer argument-completion requests (#4582)

* Add server-side argument completion (@mcp.completion)

* Reference CompletionValues directly in cast so the import reads as used

* Import completion types from mcp_types, not the fastmcp.types mirror

* Fix test imports after dropping the fastmcp.types mirror

* Fix change-register example import after dropping the types mirror

* Enforce 100-value completion cap; make docs example runnable

* Document completion authorization contract

* Offload sync completion handlers to threadpool

* Exclude bare str from completion return type

* Pass Any-typed value in bare-string rejection test

* Point completion authoring types to mcp_types in v4 notes
This commit is contained in:
Jeremiah Lowin 2026-07-21 12:26:24 -04:00 committed by GitHub
commit 7417e974f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 723 additions and 1 deletions

View file

@ -144,6 +144,7 @@
"pages": [
"servers/elicitation",
"servers/sampling",
"servers/completions",
"servers/progress",
"servers/logging",
"servers/pagination",