part…
Building governance for MCP?
The gateway applies what the guide teaches: policies on discovery, invocation and authorisation.
The gateway applies what the guide teaches: policies on discovery, invocation and authorisation.
completion/complete offers autocompletion suggestions for prompt arguments and resource template variables, IDE-style.
{ "capabilities": { "completions": {} } }
{ "method": "completion/complete", "params": {
"ref": { "type": "ref/prompt", "name": "code_review" },
"argument": { "name": "framework", "value": "fla" },
"context": { "arguments": { "language": "python" } } } }
ref: ref/prompt (by name) or ref/resource (by uri, which may be a template).argument: name and partial value.context.arguments: already-resolved arguments, for dependent suggestions (added in 2025-06-18).{ "result": { "resultType": "complete", "completion": { "values": ["flask"], "total": 1, "hasMore": false } } }
values: sorted by relevance, maximum 100.total: optional.hasMore: whether there are more.-32601 if the capability is not supported; -32602 invalid prompt name or missing required arguments; -32603 internal.
Servers SHOULD: sort by relevance, fuzzy matching, rate limiting, validate inputs. Clients SHOULD: debounce, cache, tolerate partial results. Security: MUST validate inputs, rate-limit, control access to sensitive suggestions and avoid information leakage through completion (e.g. enumerating user names or files).
prompts/get and resources/read.ref in both directions.1. What is the maximum number of values per completion response?
The spec sets 100 as the maximum.
2. Which reference types does completion/complete support?
Prompts by name and resources/templates by URI.
3. What is context.arguments for?
It allows completing framework knowing that language is python.