Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 24 additions & 38 deletions pkgs/mcpx/docs/compare/register/capabilities.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,11 @@ tags: area:compare
description: every ClientCapabilities/ServerCapabilities field per revision; what mcpx, opencode and lootbox declare
```

A capability is a promise about the revision in force, and mcpx makes it twice: as a server to each host and as a
client to each upstream. At `05c78b2` the largest gaps are declarations without delivery (stdio `listChanged` and
`subscribe`, `tasks.requests.tools.call`, upstream `sampling`) and shapes sent to revisions that do not define them (core
`tasks` to 2026 hosts, `extensions` to 2025-11-25 hosts, `roots.listChanged` to 2026 upstreams). How capabilities travel
(`initialize`, `server/discover`, the 2026 per-request `_meta` key, `Implementation` fields) is in the lifecycle and
`_meta` registers, and the `-32021` missing-capability error is in the errors register.
A capability is a promise about the revision in force, both as a server to hosts and as a client to upstreams. Task-related observations below reflect phases 1–2 of #1554; other observations retain their original snapshot.

Status column: **mcpx @ 05c78b2**. Legend and citation conventions: [../README.md](../README.md).
Status column: task capability rows are current; other rows are **mcpx @ 05c78b2**. Legend and citation conventions: [../README.md](../README.md).

| ID | Difference | Labels | Where it exists | mcpx @ 05c78b2 | Value | Effort | Risk |
| ID | Difference | Labels | Where it exists | mcpx | Value | Effort | Risk |
| --- | --- | --- | --- | --- | --- | --- | --- |
| CAP-01 | `experimental` map (client and server); 2026 narrows values to JSON objects | `2024-11-05 has` `2026-07-28 has` | `24-11 ✓ · 25-03 ✓ · 25-06 ✓ · 25-11 ✓ · 26-07 ✓ (JSONObject)` | n/a — declared in neither direction | + low | S | low |
| CAP-02 | client `roots`; deprecated to a bare `{}` in 2026 | `2024-11-05 has` `2026-07-28 deprecates` `mcpx missing` `opencode v1 has` `opencode v2 has` | `24-11 ✓ · 25-03 ✓ · 25-06 ✓ · 25-11 ✓ · 26-07 dep · opencode v1 ✓ v2 ✓ · lootbox —` | partial — declared to every upstream; always answers an empty list (#210) | + med | S | med |
Expand All @@ -30,7 +25,7 @@ Status column: **mcpx @ 05c78b2**. Legend and citation conventions: [../README.m
| CAP-08 | client `elicitation.form`; `{}` means form only | `2025-11-25 has` `mcpx missing` `opencode v2 has` | `24-11 — · 25-03 — · 25-06 — · 25-11 ✓ · 26-07 ✓ · opencode v2 ✓ (applyDefaults)` | partial — form gate ignores a url-only declaration (#210) | + low | S | low |
| CAP-09 | client `elicitation.url` | `2025-11-25 has` `mcpx missing` `opencode v2 has` | `24-11 — · 25-03 — · 25-06 — · 25-11 ✓ · 26-07 ✓ · opencode v1 — v2 ✓` | partial — host gate correct; never declared upstream (#200) | + med | M | med |
| CAP-10 | client `tasks` (client-hosted tasks), 2025-11-25 only | `2025-11-25 has` `2026-07-28 removes` `has better replacement` | `24-11 — · 25-03 — · 25-06 — · 25-11 ✓ · 26-07 rem · opencode — · lootbox —` | ✓ — never declared | − one-revision | S | low |
| CAP-11 | client `extensions` map | `2026-07-28 has` | `26-07 ✓ only` | ✓ — declared upstream as an empty map on modern connections only; no extension named until one is implemented (#1918) | + med | S | low |
| CAP-11 | client `extensions` map | `2026-07-28 has` | `26-07 ✓ only` | Modern client declares the tasks extension; legacy initialize omits the map (`internal/mcpclient/modern.go:capabilities`). | + med | S | low |
| CAP-12 | server `logging`; deprecated, not removed, in 2026 | `2024-11-05 has` `2026-07-28 deprecates` | `24-11 ✓ · 25-03 ✓ · 25-06 ✓ · 25-11 ✓ · 26-07 dep` | ✓ — never declared; `docs/protocol.md` says otherwise | + low | S | low |
| CAP-13 | server `completions` | `2025-03-26 has` | `24-11 — (method ungated) · 25-03 ✓ · 25-06 ✓ · 25-11 ✓ · 26-07 ✓` | ✓ — declared in every era mcpx serves | + low | S | low |
| CAP-14 | server `prompts` | `2024-11-05 has` `opencode v1 has` `opencode v2 has` | `all five ✓ · opencode v1 ✓ v2 ✓ (slash commands)` | ✓ — always declared | + low | S | low |
Expand All @@ -40,12 +35,12 @@ Status column: **mcpx @ 05c78b2**. Legend and citation conventions: [../README.m
| CAP-18 | server `resources.listChanged`; 2026 delivers it only on a listen stream | `2024-11-05 has` `2026-07-28 has` `mcpx missing` `opencode v2 has` | `24-11 ✓ · 25-03 ✓ · 25-06 ✓ · 25-11 ✓ · 26-07 ✓ (listen) · opencode v1 — v2 ✓` | ✗ — stdio declares true, legacy hosts never receive it (#208) | + med | S | med |
| CAP-19 | server `tools` | `2024-11-05 has` `opencode v1 has` `opencode v2 has` | `all five ✓ · opencode v1 ✓ v2 ✓` | ✓ — always declared | + low | S | low |
| CAP-20 | server `tools.listChanged`; 2026 delivers it only on a listen stream | `2024-11-05 has` `2026-07-28 has` `mcpx missing` `opencode v1 has` `opencode v2 has` | `24-11 ✓ · 25-03 ✓ · 25-06 ✓ · 25-11 ✓ · 26-07 ✓ (listen) · opencode v1 ✓ v2 ✓` | ✗ — stdio declares true; mcpx's own list never changes (#208) | + med | S | med |
| CAP-21 | server core `tasks` object, 2025-11-25 only | `2025-11-25 has` `2026-07-28 removes` `has better replacement` `mcpx missing` | `24-11 — · 25-03 — · 25-06 — · 25-11 ✓ · 26-07 rem (extension)` | ✗ — also sent to 2026 hosts (wire W5) (#209) | + med | S | low |
| CAP-22 | server `tasks.list` | `2025-11-25 has` `2026-07-28 removes` `mcpx missing` | `25-11 ✓ only` | ✗ — declared though tasks are bound to no requestor (#209) | + med | S | med |
| CAP-23 | server `tasks.cancel` | `2025-11-25 has` `2026-07-28 removes` | `25-11 ✓ · 26-07 rem (extension implies cancel)` | partial — declared; terminal-task cancel not rejected (tasks register) | + low | S | low |
| CAP-24 | server `tasks.requests.tools.call` | `2025-11-25 has` `2026-07-28 removes` `mcpx missing` | `25-11 ✓ only` | ✗ — declared, but no tool allows task execution (#209) | + med | S | low |
| CAP-25 | server `extensions` map | `2026-07-28 has` `mcpx missing` | `26-07 ✓ only` | ✗ — also sent to 2025-11-25 hosts (#209) | + low | S | low |
| CAP-26 | `extensions["io.modelcontextprotocol/tasks"]` key, both directions | `2026-07-28 has` `specs conflict` `mcpx missing` | `26-07 ext only (SEP-2663 names 2026-06-30)` | ✗ — advertised to hosts, not implemented; never declared upstream (#209) | + med | M | med |
| CAP-21 | server core `tasks` object, 2025-11-25 only | `2025-11-25 has` `2026-07-28 removes` `has better replacement` | `24-11 — · 25-03 — · 25-06 — · 25-11 ✓ · 26-07 rem (extension)` | Core tasks capability is limited to legacy revision; modern gets extension only (`internal/mcpserver/server.go:capabilities`). | + med | S | low |
| CAP-22 | server `tasks.list` | `2025-11-25 has` `2026-07-28 removes` `mcpx missing` | `25-11 ✓ only` | Legacy list is declared and lists connection-owned tasks only; unowned tasks remain accessible by ID (`internal/mcpserver/server.go:capabilities`; `internal/mcpserver/tasks.go:handleTask`, `visible`; #1554). | + med | S | med |
| CAP-23 | server `tasks.cancel` | `2025-11-25 has` `2026-07-28 removes` | `25-11 ✓ · 26-07 rem (extension implies cancel)` | Legacy cancel declared and terminal cancel rejected; modern extension acknowledges (`internal/mcpserver/server.go:capabilities`; `internal/mcpserver/tasks.go:handleTask`, `handleModernTask`). | + low | S | low |
| CAP-24 | server `tasks.requests.tools.call` | `2025-11-25 has` `2026-07-28 removes` | `25-11 ✓ only` | Legacy task execution is advertised; eligible gateway tools declare optional support and forbidden tools are rejected (`internal/mcpserver/server.go:taskOptional`, `capabilities`; `internal/mcpserver/tasks.go:legacyTaskSupport`, `maybeTask`). | + med | S | low |
| CAP-25 | server `extensions` map | `2026-07-28 has` | `26-07 ✓ only` | Server extension map is emitted only for modern peers (`internal/mcpserver/server.go:capabilities`). | + low | S | low |
| CAP-26 | `extensions["io.modelcontextprotocol/tasks"]` key, both directions | `2026-07-28 has` `specs conflict` `mcpx missing` | `26-07 ext only (SEP-2663 names 2026-06-30)` | Server and modern client declare the extension; client polls task results, but upstream task input relay remains open (`internal/mcpserver/server.go:capabilities`; `internal/mcpclient/modern.go:capabilities`; `internal/mcpclient/tasks.go:finishModernTask`, `TaskInputRequiredError`; #1554). | + med | M | med |

## CAP-01 `experimental` map (client and server)

Expand Down Expand Up @@ -264,12 +259,8 @@ Status column: **mcpx @ 05c78b2**. Legend and citation conventions: [../README.m
- **What.** Map of extension identifier to settings object; keys follow the `_meta` key-naming rules with a mandatory
prefix; `{}` means supported with no settings.
- **Where.** 2026 only.
- **mcpx.** Declared upstream on modern connections since #1918: `capabilities()` (`internal/mcpclient/modern.go`)
adds `extensions: {}` in the modern branch only, so it rides the per-request `_meta` clientCapabilities; a legacy
initialize carries no `extensions` key. The map names nothing -- an identifier is added only with its
implementation. In particular mcpx still never declares `io.modelcontextprotocol/tasks` (CAP-26), so a 2026
upstream will never hand it a task. Covered by `TestExtensionsDeclaredOnModernOnly` in
`internal/mcpclient/modern_test.go`.
- **mcpx (current).** Modern client declares the tasks extension; legacy initialize omits the map (`internal/mcpclient/modern.go:capabilities`).
The assessment and source references below preserve the original 05c78b2 comparison; implementation-specific claims there are historical, not current.
- **Value to mcpx.** + the only way to opt into tasks, apps and auth extensions from 2026 servers.
- **Effort.** S to declare; each extension then costs its own implementation.
- **Risk.** None for declaring nothing; declaring an extension mcpx cannot handle would be the #177 class.
Expand Down Expand Up @@ -467,9 +458,8 @@ Status column: **mcpx @ 05c78b2**. Legend and citation conventions: [../README.m
`requests.tools.call`). 2026 moves tasks into the `io.modelcontextprotocol/tasks` extension, and SEP-2663 says servers
MUST NOT keep advertising the legacy capabilities under a protocol version that includes the extension.
- **Where.** 2025-11-25 only; replaced by the extension in 2026.
- **mcpx @ 05c78b2.** `capabilities()` emits the core shape whenever `Defines(version, FeatTasks)`, and `FeatTasks` has
no ceiling (`internal/mcpserver/server.go:1404-1418`; `internal/mcpserver/revisions.go:90`), so every 2026 host gets
`tasks {list, cancel, requests.tools.call}` from `server/discover` (wire W5). A send-conservatively conflict.
- **mcpx (current).** Core tasks capability is limited to legacy revision; modern gets extension only (`internal/mcpserver/server.go:capabilities`).
The assessment and source references below preserve the original 05c78b2 comparison; implementation-specific claims there are historical, not current.
- **Value to mcpx.** + keeps the capability object honest to modern hosts.
- **Effort.** S — add a ceiling for the core shape.
- **Risk.** Low for parsing (open set), but the declaration promises `tasks/list` and `tasks/result`, which the extension
Expand All @@ -486,8 +476,8 @@ Status column: **mcpx @ 05c78b2**. Legend and citation conventions: [../README.m

- **What.** Declares `tasks/list`. A server that cannot bind tasks to requestors SHOULD NOT declare it.
- **Where.** 2025-11-25; removed with the extension (which has no `tasks/list`).
- **mcpx @ 05c78b2.** Declared (`internal/mcpserver/server.go:1412`), and `tasks/list` returns every task from every
connection (`internal/mcpserver/tasks.go:89-95`); an unrelated client listed another's task on the wire (W23).
- **mcpx (current).** Legacy list is declared and lists connection-owned tasks only; unowned tasks remain accessible by ID (`internal/mcpserver/server.go:capabilities`; `internal/mcpserver/tasks.go:handleTask`, `visible`; #1554).
The assessment and source references below preserve the original 05c78b2 comparison; implementation-specific claims there are historical, not current.
- **Value to mcpx.** + removes cross-host metadata exposure on a shared daemon.
- **Effort.** S — stop declaring, or bind tasks to a requestor.
- **Risk.** If not done: any host sees every host's task ids and can collect their results.
Expand All @@ -500,8 +490,8 @@ Status column: **mcpx @ 05c78b2**. Legend and citation conventions: [../README.m
- **What.** Declares `tasks/cancel`. In 2025-11-25 cancelling a terminal task MUST be rejected with `-32602`; the 2026
extension implies cancel and answers with an empty acknowledgement.
- **Where.** 2025-11-25; implied by the extension in 2026.
- **mcpx @ 05c78b2.** Declared (`internal/mcpserver/server.go:1412`); cancelling a finished task returns the task
snapshot instead of `-32602` (tasks register).
- **mcpx (current).** Legacy cancel declared and terminal cancel rejected; modern extension acknowledges (`internal/mcpserver/server.go:capabilities`; `internal/mcpserver/tasks.go:handleTask`, `handleModernTask`).
The assessment and source references below preserve the original 05c78b2 comparison; implementation-specific claims there are historical, not current.
- **Value to mcpx.** + low.
- **Effort.** S.
- **Risk.** Low.
Expand All @@ -514,9 +504,8 @@ Status column: **mcpx @ 05c78b2**. Legend and citation conventions: [../README.m
- **What.** Declares that `tools/call` may be task-augmented. Each tool must also opt in with
`execution.taskSupport`; absent means `"forbidden"`, and a conforming client then MUST NOT request a task.
- **Where.** 2025-11-25 only.
- **mcpx @ 05c78b2.** Declared (`internal/mcpserver/server.go:1413`), but mcpx's `Tool` struct has no `execution` field
(`internal/mcpserver/server.go:260-268`), so every mcpx tool is task-forbidden to a conforming client. mcpx still
accepts a `task` param from anyone (`internal/mcpserver/server.go:477-501`).
- **mcpx (current).** Legacy task execution is advertised; eligible gateway tools declare optional support and forbidden tools are rejected (`internal/mcpserver/server.go:taskOptional`, `capabilities`; `internal/mcpserver/tasks.go:legacyTaskSupport`, `maybeTask`).
The assessment and source references below preserve the original 05c78b2 comparison; implementation-specific claims there are historical, not current.
- **Value to mcpx.** + long `mcpx_exec`/`mcpx_call` runs could survive disconnects for conforming hosts.
- **Effort.** S — add `execution: {taskSupport: "optional"}` to long-running tools, at 2025-11-25 only.
- **Risk.** If not done: declared but unreachable (#177 class). If done carelessly: `taskSupport: "required"` would make
Expand All @@ -536,10 +525,8 @@ Status column: **mcpx @ 05c78b2**. Legend and citation conventions: [../README.m

- **What.** Servers advertise extensions in an `extensions` map returned by `server/discover`.
- **Where.** 2026 only; `ServerCapabilities` in 2025-11-25 has no such member.
- **mcpx @ 05c78b2.** Emitted inside the same `FeatTasks` branch whose floor is 2025-11-25
(`internal/mcpserver/server.go:1415-1417`), so a 2025-11-25 `initialize` returns `extensions` too. This contradicts
mcpx's own rule that it "**declares** none of them outside the revision that defines them" (`docs/protocol.md:93-94`),
while the capability table at `docs/protocol.md:106` agrees with the code.
- **mcpx (current).** Server extension map is emitted only for modern peers (`internal/mcpserver/server.go:capabilities`).
The assessment and source references below preserve the original 05c78b2 comparison; implementation-specific claims there are historical, not current.
- **Value to mcpx.** + low; a conservative send.
- **Effort.** S — gate on 2026.
- **Risk.** Low (open set).
Expand All @@ -553,9 +540,8 @@ Status column: **mcpx @ 05c78b2**. Legend and citation conventions: [../README.m
in each request's capabilities. It is not wire-compatible with 2025-11-25 tasks.
- **Where.** 2026, as an official extension (SEP-2663). Under 2025-11-25, servers MUST NOT treat the capability as
enabling tasks.
- **mcpx @ 05c78b2.** As a server it advertises the key to 2025-11-25 and 2026 hosts
(`internal/mcpserver/server.go:1415-1417`) while implementing only the 2025-11-25 task wire shape (tasks register). As
a client it never declares the key (`internal/mcpclient/modern.go:46-58`).
- **mcpx (current).** Server and modern client declare the extension; client polls task results, but upstream task input relay remains open (`internal/mcpserver/server.go:capabilities`; `internal/mcpclient/modern.go:capabilities`; `internal/mcpclient/tasks.go:finishModernTask`, `TaskInputRequiredError`; #1554).
The assessment and source references below preserve the original 05c78b2 comparison; implementation-specific claims there are historical, not current.
- **Value to mcpx.** + long-running upstream jobs through modern servers; honest advertising to modern hosts.
- **Effort.** M — the extension's shapes (`resultType: "task"`, `tasks/update`, `DetailedTask`) differ from 2025-11-25.
- **Risk.** If not done: 2026 hosts are promised an extension whose wire format mcpx does not speak.
Expand Down
Loading
Loading