mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-27 07:50:43 +02:00
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:
parent
611a35861d
commit
7417e974f4
7 changed files with 723 additions and 1 deletions
|
|
@ -144,6 +144,7 @@
|
|||
"pages": [
|
||||
"servers/elicitation",
|
||||
"servers/sampling",
|
||||
"servers/completions",
|
||||
"servers/progress",
|
||||
"servers/logging",
|
||||
"servers/pagination",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue