From d6205a1d68e6e27722b78c46bd2ce8fe7e44821c Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Sun, 1 Nov 2026 18:19:06 -0600 Subject: [PATCH] docs(mcpx): truth up completion conformance register (#2389) Phase 3 of #2386: retire the completion-server-should gap to a covered row naming the Phase 1 rate-limit tests (#2387, PR #3730) and Phase 2 relevance-ranking tests (#2388, PR #2857); move completion-security to partial (inputs validated + rate limiting landed; access control / information disclosure pending #1968 / #1972) and repoint its gap at #1968. Corrects the stale wording that local matching was substring-based (it was prefix-only, hasPrefixFold, before #2388). requirements.json regenerated with genreq; conformance-matrix.md completion cells, input digest and server-SHOULD summary deltas updated to the exact Render output for these rows. --- pkgs/mcpx/docs/spec/conformance-matrix.md | 32 +++++++++---------- pkgs/mcpx/docs/spec/requirements.md | 4 +-- .../conformance/coverage_utilities.go | 11 +++++-- .../internal/conformance/requirements.json | 4 +-- 4 files changed, 29 insertions(+), 22 deletions(-) diff --git a/pkgs/mcpx/docs/spec/conformance-matrix.md b/pkgs/mcpx/docs/spec/conformance-matrix.md index 07c65e0ac8..c8e2c2774b 100644 --- a/pkgs/mcpx/docs/spec/conformance-matrix.md +++ b/pkgs/mcpx/docs/spec/conformance-matrix.md @@ -2,7 +2,7 @@ Generated by `internal/conformance` (`MCPX_UPDATE_MATRIX=1 go test ./internal/conformance -run TestMatrix`); do not edit. -Generated from inputs `7a8f62deac2cd484` (sha256 of docs/spec/requirements.md, internal/conformance/overrides/*.json, internal/conformance/coverage*.go, internal/conformance/authsplit.json). `TestMatrix` regenerates this file and fails when it differs, so it describes the tree it is committed in. +Generated from inputs `247a9508b4eda6e7` (sha256 of docs/spec/requirements.md, internal/conformance/overrides/*.json, internal/conformance/coverage*.go, internal/conformance/authsplit.json). `TestMatrix` regenerates this file and fails when it differs, so it describes the tree it is committed in. Every normative requirement of every revision (catalogue: `docs/spec/requirements.md`), for mcpx as a server and as a client. A requirement is *tested* when a named test verifies it in that revision, *n/a* when it does not bind mcpx in that role, and a *gap* when it binds mcpx and mcpx does not meet it yet, with the issue that tracks it. Run exactly the covering tests with `go run ./internal/conformance/cmd/covering`. @@ -12,7 +12,7 @@ Every normative requirement of every revision (catalogue: `docs/spec/requirement |---|---|---|---|---|---|---|---| | 2024-11-05 | server | MUST | 32 | 31 | 1 | 0 | 22 | | 2024-11-05 | server | MUST NOT | 6 | 6 | 0 | 0 | 4 | -| 2024-11-05 | server | SHOULD | 36 | 34 | 2 | 0 | 45 | +| 2024-11-05 | server | SHOULD | 36 | 35 | 1 | 0 | 45 | | 2024-11-05 | server | SHOULD NOT | 1 | 1 | 0 | 0 | 1 | | 2024-11-05 | server | MAY | 9 | 9 | 0 | 0 | 15 | | 2024-11-05 | server | other | 11 | 11 | 0 | 0 | 1 | @@ -24,7 +24,7 @@ Every normative requirement of every revision (catalogue: `docs/spec/requirement | 2024-11-05 | client | other | 7 | 7 | 0 | 0 | 5 | | 2025-03-26 | server | MUST | 44 | 43 | 1 | 0 | 37 | | 2025-03-26 | server | MUST NOT | 7 | 7 | 0 | 0 | 8 | -| 2025-03-26 | server | SHOULD | 45 | 43 | 2 | 0 | 58 | +| 2025-03-26 | server | SHOULD | 45 | 44 | 1 | 0 | 58 | | 2025-03-26 | server | SHOULD NOT | 4 | 3 | 1 | 0 | 1 | | 2025-03-26 | server | MAY | 16 | 16 | 0 | 0 | 21 | | 2025-03-26 | server | other | 11 | 11 | 0 | 0 | 1 | @@ -36,7 +36,7 @@ Every normative requirement of every revision (catalogue: `docs/spec/requirement | 2025-03-26 | client | other | 7 | 7 | 0 | 0 | 5 | | 2025-06-18 | server | MUST | 52 | 51 | 1 | 0 | 49 | | 2025-06-18 | server | MUST NOT | 10 | 9 | 1 | 0 | 8 | -| 2025-06-18 | server | SHOULD | 48 | 46 | 2 | 0 | 67 | +| 2025-06-18 | server | SHOULD | 48 | 47 | 1 | 0 | 67 | | 2025-06-18 | server | SHOULD NOT | 4 | 3 | 1 | 0 | 1 | | 2025-06-18 | server | MAY | 15 | 15 | 0 | 0 | 20 | | 2025-06-18 | server | other | 15 | 15 | 0 | 0 | 3 | @@ -48,7 +48,7 @@ Every normative requirement of every revision (catalogue: `docs/spec/requirement | 2025-06-18 | client | other | 10 | 8 | 2 | 0 | 8 | | 2025-11-25 | server | MUST | 102 | 98 | 4 | 0 | 78 | | 2025-11-25 | server | MUST NOT | 22 | 19 | 3 | 0 | 13 | -| 2025-11-25 | server | SHOULD | 73 | 64 | 9 | 0 | 86 | +| 2025-11-25 | server | SHOULD | 73 | 65 | 8 | 0 | 86 | | 2025-11-25 | server | SHOULD NOT | 11 | 10 | 1 | 0 | 3 | | 2025-11-25 | server | MAY | 25 | 25 | 0 | 0 | 30 | | 2025-11-25 | server | other | 19 | 19 | 0 | 0 | 2 | @@ -60,7 +60,7 @@ Every normative requirement of every revision (catalogue: `docs/spec/requirement | 2025-11-25 | client | other | 13 | 11 | 2 | 0 | 8 | | 2026-07-28 | server | MUST | 113 | 109 | 4 | 0 | 111 | | 2026-07-28 | server | MUST NOT | 44 | 42 | 2 | 0 | 20 | -| 2026-07-28 | server | SHOULD | 69 | 64 | 5 | 0 | 91 | +| 2026-07-28 | server | SHOULD | 69 | 65 | 4 | 0 | 91 | | 2026-07-28 | server | SHOULD NOT | 11 | 10 | 1 | 0 | 9 | | 2026-07-28 | server | MAY | 29 | 29 | 0 | 0 | 32 | | 2026-07-28 | server | other | 23 | 22 | 1 | 0 | 4 | @@ -105,9 +105,9 @@ Every normative requirement of every revision (catalogue: `docs/spec/requirement | requirement | level | side | mcpx as server | mcpx as client | |---|---|---|---|---| | [completion-max-100](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#completion-results) | descr. + schema | server | tested: `conformance.TestUtilitiesServer/2024-11-05/completion/completion-max-100` | n/a: addresses the other side | -| [completion-server-should](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#implementation-considerations) | SHOULD | server | **gap** #213: values are sorted alphabetically and matched by substring, not ranked by relevance; no rate limit | n/a: addresses the other side | +| [completion-server-should](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#implementation-considerations) | SHOULD | server | tested: `daemon.TestHandleCompleteRateLimitHotChangeAndZeroDisables@all`
`daemon.TestHandleCompleteRateLimitRefusesBeforePool@all`
`daemon.TestHandleCompleteServerWindowBindsAcrossCallers@all`
`daemon.TestLocalCompletionCapAfterRanking@all`
`daemon.TestLocalCompletionTiersPrompts@all`
`daemon.TestLocalCompletionTiersResources@all` | n/a: addresses the other side | | [completion-client-should](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#implementation-considerations) | SHOULD | client | n/a: addresses the other side | tested: `conformance.TestUtilitiesClient/2024-11-05/completion/completion-client-should` | -| [completion-security](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#security) | MUST | both | **gap** #213: completion/complete has no rate limit and no per-caller access control | n/a: catalogue marks it n/a | +| [completion-security](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#security) | MUST | both | **gap** #1968: partial: completion inputs are validated and completion/complete is rate limited per caller (completion.perMinute) and per server (completion.serverPerMinute) since #2387, but there is no per-caller access control for sensitive suggestions and no completion-specific information-disclosure control; waiting on principals #1968 / permissive-auth #1972 | n/a: catalogue marks it n/a | ### errors @@ -442,9 +442,9 @@ Every normative requirement of every revision (catalogue: `docs/spec/requirement |---|---|---|---|---| | [completion-declare-capability](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#capabilities) | MUST | server | tested: `conformance.TestUtilitiesServer/2025-03-26/completion/completion-declare-capability` | n/a: addresses the other side | | [completion-max-100](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#completion-results) | descr. + schema | server | tested: `conformance.TestUtilitiesServer/2025-03-26/completion/completion-max-100` | n/a: addresses the other side | -| [completion-server-should](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#implementation-considerations) | SHOULD | server | **gap** #213: values are sorted alphabetically and matched by substring, not ranked by relevance; no rate limit | n/a: addresses the other side | +| [completion-server-should](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#implementation-considerations) | SHOULD | server | tested: `daemon.TestHandleCompleteRateLimitHotChangeAndZeroDisables@all`
`daemon.TestHandleCompleteRateLimitRefusesBeforePool@all`
`daemon.TestHandleCompleteServerWindowBindsAcrossCallers@all`
`daemon.TestLocalCompletionCapAfterRanking@all`
`daemon.TestLocalCompletionTiersPrompts@all`
`daemon.TestLocalCompletionTiersResources@all` | n/a: addresses the other side | | [completion-client-should](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#implementation-considerations) | SHOULD | client | n/a: addresses the other side | tested: `conformance.TestUtilitiesClient/2025-03-26/completion/completion-client-should` | -| [completion-security](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#security) | MUST | both | **gap** #213: completion/complete has no rate limit and no per-caller access control | n/a: catalogue marks it n/a | +| [completion-security](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#security) | MUST | both | **gap** #1968: partial: completion inputs are validated and completion/complete is rate limited per caller (completion.perMinute) and per server (completion.serverPerMinute) since #2387, but there is no per-caller access control for sensitive suggestions and no completion-specific information-disclosure control; waiting on principals #1968 / permissive-auth #1972 | n/a: catalogue marks it n/a | | [completion-errors](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#error-handling) | SHOULD | server | tested: `conformance.TestUtilitiesServer/2025-03-26/completion/completion-errors` | n/a: addresses the other side | ### errors @@ -842,9 +842,9 @@ Every normative requirement of every revision (catalogue: `docs/spec/requirement |---|---|---|---|---| | [completion-declare-capability](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#capabilities) | MUST | server | tested: `conformance.TestUtilitiesServer/2025-06-18/completion/completion-declare-capability` | n/a: addresses the other side | | [completion-max-100](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#completion-results) | descr. + schema | server | tested: `conformance.TestUtilitiesServer/2025-06-18/completion/completion-max-100` | n/a: addresses the other side | -| [completion-server-should](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#implementation-considerations) | SHOULD | server | **gap** #213: values are sorted alphabetically and matched by substring, not ranked by relevance; no rate limit | n/a: addresses the other side | +| [completion-server-should](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#implementation-considerations) | SHOULD | server | tested: `daemon.TestHandleCompleteRateLimitHotChangeAndZeroDisables@all`
`daemon.TestHandleCompleteRateLimitRefusesBeforePool@all`
`daemon.TestHandleCompleteServerWindowBindsAcrossCallers@all`
`daemon.TestLocalCompletionCapAfterRanking@all`
`daemon.TestLocalCompletionTiersPrompts@all`
`daemon.TestLocalCompletionTiersResources@all` | n/a: addresses the other side | | [completion-client-should](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#implementation-considerations) | SHOULD | client | n/a: addresses the other side | tested: `conformance.TestUtilitiesClient/2025-06-18/completion/completion-client-should` | -| [completion-security](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#security) | MUST | both | **gap** #213: completion/complete has no rate limit and no per-caller access control | n/a: catalogue marks it n/a | +| [completion-security](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#security) | MUST | both | **gap** #1968: partial: completion inputs are validated and completion/complete is rate limited per caller (completion.perMinute) and per server (completion.serverPerMinute) since #2387, but there is no per-caller access control for sensitive suggestions and no completion-specific information-disclosure control; waiting on principals #1968 / permissive-auth #1972 | n/a: catalogue marks it n/a | | [completion-errors](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#error-handling) | SHOULD | server | tested: `conformance.TestUtilitiesServer/2025-06-18/completion/completion-errors` | n/a: addresses the other side | | [completion-context-arguments](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#requesting-completions) | should (lowercase) | client | n/a: addresses the other side | tested: `conformance.TestUtilitiesClient/2025-06-18/completion/completion-context-arguments` | @@ -1286,9 +1286,9 @@ Every normative requirement of every revision (catalogue: `docs/spec/requirement |---|---|---|---|---| | [completion-declare-capability](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#capabilities) | MUST | server | tested: `conformance.TestUtilitiesServer/2025-11-25/completion/completion-declare-capability` | n/a: addresses the other side | | [completion-max-100](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#completion-results) | descr. + schema | server | tested: `conformance.TestUtilitiesServer/2025-11-25/completion/completion-max-100` | n/a: addresses the other side | -| [completion-server-should](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#implementation-considerations) | SHOULD | server | **gap** #213: values are sorted alphabetically and matched by substring, not ranked by relevance; no rate limit | n/a: addresses the other side | +| [completion-server-should](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#implementation-considerations) | SHOULD | server | tested: `daemon.TestHandleCompleteRateLimitHotChangeAndZeroDisables@all`
`daemon.TestHandleCompleteRateLimitRefusesBeforePool@all`
`daemon.TestHandleCompleteServerWindowBindsAcrossCallers@all`
`daemon.TestLocalCompletionCapAfterRanking@all`
`daemon.TestLocalCompletionTiersPrompts@all`
`daemon.TestLocalCompletionTiersResources@all` | n/a: addresses the other side | | [completion-client-should](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#implementation-considerations) | SHOULD | client | n/a: addresses the other side | tested: `conformance.TestUtilitiesClient/2025-11-25/completion/completion-client-should` | -| [completion-security](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#security) | MUST | both | **gap** #213: completion/complete has no rate limit and no per-caller access control | n/a: catalogue marks it n/a | +| [completion-security](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#security) | MUST | both | **gap** #1968: partial: completion inputs are validated and completion/complete is rate limited per caller (completion.perMinute) and per server (completion.serverPerMinute) since #2387, but there is no per-caller access control for sensitive suggestions and no completion-specific information-disclosure control; waiting on principals #1968 / permissive-auth #1972 | n/a: catalogue marks it n/a | | [completion-errors](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#error-handling) | SHOULD | server | tested: `conformance.TestUtilitiesServer/2025-11-25/completion/completion-errors` | n/a: addresses the other side | | [completion-context-arguments](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#requesting-completions) | should (lowercase) | client | n/a: addresses the other side | tested: `conformance.TestUtilitiesClient/2025-11-25/completion/completion-context-arguments` | @@ -1942,9 +1942,9 @@ Every normative requirement of every revision (catalogue: `docs/spec/requirement |---|---|---|---|---| | [completion-declare-capability](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#capabilities) | MUST | server | tested: `conformance.TestUtilitiesServer/2026-07-28/completion/completion-declare-capability` | n/a: addresses the other side | | [completion-max-100](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#completion-results) | descr. + schema | server | tested: `conformance.TestUtilitiesServer/2026-07-28/completion/completion-max-100` | n/a: addresses the other side | -| [completion-server-should](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#implementation-considerations) | SHOULD | server | **gap** #213: values are sorted alphabetically and matched by substring, not ranked by relevance; no rate limit | n/a: addresses the other side | +| [completion-server-should](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#implementation-considerations) | SHOULD | server | tested: `daemon.TestHandleCompleteRateLimitHotChangeAndZeroDisables@all`
`daemon.TestHandleCompleteRateLimitRefusesBeforePool@all`
`daemon.TestHandleCompleteServerWindowBindsAcrossCallers@all`
`daemon.TestLocalCompletionCapAfterRanking@all`
`daemon.TestLocalCompletionTiersPrompts@all`
`daemon.TestLocalCompletionTiersResources@all` | n/a: addresses the other side | | [completion-client-should](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#implementation-considerations) | SHOULD | client | n/a: addresses the other side | tested: `conformance.TestUtilitiesClient/2026-07-28/completion/completion-client-should` | -| [completion-security](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#security) | MUST | both | **gap** #213: completion/complete has no rate limit and no per-caller access control | n/a: catalogue marks it n/a | +| [completion-security](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#security) | MUST | both | **gap** #1968: partial: completion inputs are validated and completion/complete is rate limited per caller (completion.perMinute) and per server (completion.serverPerMinute) since #2387, but there is no per-caller access control for sensitive suggestions and no completion-specific information-disclosure control; waiting on principals #1968 / permissive-auth #1972 | n/a: catalogue marks it n/a | | [completion-errors](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#error-handling) | SHOULD | server | tested: `conformance.TestUtilitiesServer/2026-07-28/completion/completion-errors` | n/a: addresses the other side | | [completion-context-arguments](https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#requesting-completions) | should (lowercase) | client | n/a: addresses the other side | tested: `conformance.TestUtilitiesClient/2026-07-28/completion/completion-context-arguments` | diff --git a/pkgs/mcpx/docs/spec/requirements.md b/pkgs/mcpx/docs/spec/requirements.md index 2535dabe61..3fa15fec6c 100644 --- a/pkgs/mcpx/docs/spec/requirements.md +++ b/pkgs/mcpx/docs/spec/requirements.md @@ -439,9 +439,9 @@ Most 2025-11-25 growth is the tasks page (57 rows) and the elicitation rewrite; | logging-deprecated | 2026-07-28 | both | SHOULD NOT / SHOULD | logging | "New implementations **SHOULD NOT** adopt it; existing implementations **SHOULD** migrate to logging to `stderr` for stdio transports, or to OpenTelemetry" | https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/logging | yes (does not adopt) | n/a | new (SEP-2577) | | completion-declare-capability | 2025-03-26..2026-07-28 | server | MUST | completion | "Servers that support completions **MUST** declare the `completions` capability" | https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#capabilities | yes (`server.go:1402`) | yes — asks upstream only if it declared `completions` (`docs/protocol.md` §4.3) | absent in 2024-11-05 (no capability existed) — C9 | | completion-max-100 | 2024-11-05..2026-07-28 | server | descr. + schema | completion | "Maximum 100 items per response"; schema: "Must not exceed 100 items." `@maxItems 100` | https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#completion-results | unverified — did not check truncation in `s.complete` | should truncate upstream values if relaying | | -| completion-server-should | 2024-11-05..2026-07-28 | server | SHOULD | completion | "Servers **SHOULD**: Return suggestions sorted by relevance; Implement fuzzy matching where appropriate; Rate limit completion requests; Validate all inputs" | https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#implementation-considerations | partial — no rate limiting | n/a | | +| completion-server-should | 2024-11-05..2026-07-28 | server | SHOULD | completion | "Servers **SHOULD**: Return suggestions sorted by relevance; Implement fuzzy matching where appropriate; Rate limit completion requests; Validate all inputs" | https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#implementation-considerations | yes — suggestions ranked by relevance (exact > prefix > substring tiers, `rankCompletions` in `internal/daemon/ops.go`, #2388) and completion requests rate limited per caller (`completion.perMinute`) and per server (`completion.serverPerMinute`) at the /v1 choke point (#2387); inputs validated (see completion-errors) | n/a | retired the stale wording that said values were matched by substring and sorted alphabetically — local matching was prefix-only (`hasPrefixFold`) before #2388 | | completion-client-should | 2024-11-05..2026-07-28 | client | SHOULD | completion | "Clients **SHOULD**: Debounce rapid completion requests; Cache completion results where appropriate; Handle missing or partial results gracefully" | https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#implementation-considerations | n/a | partial — falls back to cache with `"source":"cache"` | | -| completion-security | 2024-11-05..2026-07-28 | both | MUST | completion | "Implementations **MUST**: Validate all completion inputs; Implement appropriate rate limiting; Control access to sensitive suggestions; Prevent completion-based information disclosure" | https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#security | **no** for rate limiting (none found); access control inherits mcpx's lack of auth | n/a | | +| completion-security | 2024-11-05..2026-07-28 | both | MUST | completion | "Implementations **MUST**: Validate all completion inputs; Implement appropriate rate limiting; Control access to sensitive suggestions; Prevent completion-based information disclosure" | https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#security | partial — inputs validated and rate limiting implemented per caller (`completion.perMinute`) and per server (`completion.serverPerMinute`) (#2387); control of access to sensitive suggestions and prevention of completion-based information disclosure still pending principals (#1968) / permissive-auth (#1972) | n/a | | | completion-errors | 2025-03-26..2026-07-28 | server | SHOULD | completion | "Method not found: `-32601` (Capability not supported); Invalid prompt name: `-32602`; Missing required arguments: `-32602`; Internal errors: `-32603`" | https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#error-handling | unverified | n/a | added 2025-03-26 | | completion-context-arguments | 2025-06-18..2026-07-28 | client | should (lowercase) | completion | "clients should include previous completions in the `context.arguments` object to provide context for subsequent requests." | https://modelcontextprotocol.io/specification/2026-07-28/server/utilities/completion#requesting-completions | n/a | pass-through of caller's params | added 2025-06-18 | | tasks-declare-capability | 2025-11-25 | both (receiver) | MUST | tasks | "Servers and clients that support task-augmented requests **MUST** declare a `tasks` capability during initialization." (schema: "receivers MUST declare support for task augmentation of specific request types") | https://modelcontextprotocol.io/specification/2025-11-25/basic/utilities/tasks#capabilities | yes | not-implemented-by-choice (mcpx declares no client `tasks`; upstream cannot task-augment sampling/elicitation to it) | → extension in 2026 | diff --git a/pkgs/mcpx/internal/conformance/coverage_utilities.go b/pkgs/mcpx/internal/conformance/coverage_utilities.go index 962c9c43bd..da102577a4 100644 --- a/pkgs/mcpx/internal/conformance/coverage_utilities.go +++ b/pkgs/mcpx/internal/conformance/coverage_utilities.go @@ -96,10 +96,17 @@ func init() { "completion-context-arguments", "completion-client-should", ), + S("completion-server-should", + "daemon.TestHandleCompleteRateLimitRefusesBeforePool@all", + "daemon.TestHandleCompleteServerWindowBindsAcrossCallers@all", + "daemon.TestHandleCompleteRateLimitHotChangeAndZeroDisables@all", + "daemon.TestLocalCompletionTiersPrompts@all", + "daemon.TestLocalCompletionTiersResources@all", + "daemon.TestLocalCompletionCapAfterRanking@all", + ), ) registerGaps( Gap{ID: "cancellation-log-reasons", Side: Server, Issue: "#77", Why: "a cancellation reason reaches Server.OnCancel, which nothing outside tests sets; it is never logged"}, - Gap{ID: "completion-security", Side: Server, Issue: "#213", Why: "completion/complete has no rate limit and no per-caller access control"}, - Gap{ID: "completion-server-should", Side: Server, Issue: "#213", Why: "values are sorted alphabetically and matched by substring, not ranked by relevance; no rate limit"}, + Gap{ID: "completion-security", Side: Server, Issue: "#1968", Why: "partial: completion inputs are validated and completion/complete is rate limited per caller (completion.perMinute) and per server (completion.serverPerMinute) since #2387, but there is no per-caller access control for sensitive suggestions and no completion-specific information-disclosure control; waiting on principals #1968 / permissive-auth #1972"}, ) } diff --git a/pkgs/mcpx/internal/conformance/requirements.json b/pkgs/mcpx/internal/conformance/requirements.json index 02a5a22b93..06cabea4f1 100644 --- a/pkgs/mcpx/internal/conformance/requirements.json +++ b/pkgs/mcpx/internal/conformance/requirements.json @@ -8227,7 +8227,7 @@ }, "notes": { "client": "n/a", - "server": "partial — no rate limiting" + "server": "yes — suggestions ranked by relevance (exact \u003e prefix \u003e substring tiers, `rankCompletions` in `internal/daemon/ops.go`, #2388) and completion requests rate limited per caller (`completion.perMinute`) and per server (`completion.serverPerMinute`) at the /v1 choke point (#2387); inputs validated (see completion-errors)" } }, { @@ -8273,7 +8273,7 @@ }, "notes": { "client": "n/a", - "server": "**no** for rate limiting (none found); access control inherits mcpx's lack of auth" + "server": "partial — inputs validated and rate limiting implemented per caller (`completion.perMinute`) and per server (`completion.serverPerMinute`) (#2387); control of access to sensitive suggestions and prevention of completion-based information disclosure still pending principals (#1968) / permissive-auth (#1972)" } }, {