docs: one listing per mode in DLV and SKL, the changelog, and a guard on _skill_uris
The living spec takes the plan's text: DLV-2, 4, 5, 8-11 and 17, SKL-8, 9,
23 and 26, with Where each kind comes from, Edge cases, Captured
declarations and Known limits. As Dr K asked, a test through FastMCP's real
skills/list handler fails if an upgrade renames _skill_uris or stops calling
it, and the override's docstring names fastmcp 4.2.6. From the whole-branch
review: a huge via, listed or resources from delivery_default falls through
with a warning instead of failing the request, and a server mounted on a
QuickMCP follows its mode, tested and documented. Task 5 of #80's plan.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
docs: the skills cap in DLV-17, and the changelog (#81)
DLV-17 states the cap and the order that chooses which skills a listing
keeps; DLV-2, 4, 8, 11, 12 and 16, SKL-23 and CMP-4 gain their lines,
and [Unreleased] its Added entry.
From the whole-branch review: a server's own catalogue that fails to
load counts as no skills, so it no longer hides every plugin skill from
both listings; under local the count makes no build; and the failing-pin
test runs in both protocol eras.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
docs: CMP-2 to 6 and TEL-20 built; the app, config, telemetry, delivery and facade rows; README and changelog
The spec rows say what was built, the components page gains the built-ins'
tables and a component example, and [Unreleased] gains the Added lines and
the BREAKING ones. The whole-branch review's fixes come with them: run()
refuses serving keys in its options, LOG_LEVEL is read case-insensitively,
the telemetry line never shows userinfo however the address is written, a
clash with a built-in's name suggests hooking it, and the runtime masking
and cancellation paths are tested.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
feat(delivery): instructions per request, and the handshake echoes what it resolved
mcp.instructions(fn) is called with the request's Resolved once per
initialize and once per server/discover; its string is the result's
instructions, written with the gateway prefix. None, a raise or a
non-string keeps the built instructions, the last two logged at error.
Every QuickMCP server's initialize and server/discover result carries
_meta["io.kubed/delivery"] (resources, listed, via, prefix), merged into
any _meta there: the one change to the handshake's bytes. FastMCP 4.2
runs server/discover through the public Middleware.on_discover, so
_handshake._Describe touches no private.
Resolved.extensions is the extension ids the client declares, from
initialize's capabilities or the session's. Resolved.resources and
Resolved.via are Literal types, and the resolver asserts that Via's and
Listed's levels line up.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
feat(delivery): a client's default from its clientInfo, and VS Code's built in
mcp.delivery_default(fn) answers each request's inputs at level 4 of
DLV-3, from the client's clientInfo: initialize's params, else the
request's _meta["io.modelcontextprotocol/clientInfo"], else the
session's. kubed-mcp's table of known clients is level 6, matched by
the longest case-sensitive prefix of the name: Visual Studio Code gets
resources off. A server's own settings beat the table.
Every input with a Delivery attribute has every level, so Via and
Listed stay aligned and a Via from delivery_default or the table puts
its preset at that level. An fn that raises, or answers with no
Delivery, is logged at error and gives nothing.
The default-mode client stamps its own clientInfo into each request's
_meta, so the malformed-_meta tests send a raw tools/call on a legacy
session.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(delivery): X-MCP-Via presets what each listing shows
X-MCP-Via (Kb-Via, ?via=, a config's via) is mcp, extension or local.
Under extension prompts/list leaves out the plugins' prompts; under
local prompts/list, skills/list and agents/list leave out all of the
plugins' material. Every get and read still answers, and the server's
own prompts and skills.serve catalogue are always listed.
The preset ranks at the level its Via came from (DLV-3, DLV-9): Via is
walked first, and Listed only up to that level, so a client's local
beats a config's listed. Via and Listed keep the same levels for that,
so an input with a Delivery attribute always has a config level.
skills/list is hidden through _Skills._list_skill_entries, which
FastMCP 4.2's skills/list asks and skills/get does not; prompts/get
reaches every plugin prompt through _Prompts._get_prompt.
kubed.mcp.delivery.Resolved replaces _Resolved and is public.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merge wiki issue-16 into issue-22
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
# superpowers/plans/2026-11-24-material-delivery-design.md
# superpowers/specs/delivery.md
fix(delivery): title the resource tools in their annotations too
list_resources and read_resource had a top-level title but none in
their ToolAnnotations, where selenium-flow's tool rules look for it. The
shared annotations are now built per tool with its title, and the
listing test checks that each matches. DLV-6 says so.
The material-delivery design's release plan gains 0.2.0rc3, cut right
after #22 merges so both servers move before the epic merges; rc2 is
recorded as covering #20, #37 and #21. The docs pointer moves to the
wiki commit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(delivery): list_resources and read_resource for clients that cannot read resources
A server with a plugin now serves two read-only tools, list_resources
and read_resource, over every resource it has. They show in tools/list
under X-MCP-Resources: off and are always callable by name.
list_resources returns the request's resources/list rows, less ui://,
with each row's uri written under the gateway prefix. read_resource
reads through the server's middleware, as resources/read does:
- images come back as image content;
- UTF-8 text/* and SVG blobs come back as text;
- other binaries come back as a JSON description, with the pointer
mcp.binary_pointer(fn) gives;
- ui:// is refused;
- a miss carries resources/read's message.
A server's own list_resources or read_resource tool now refuses the
first add_plugin or serve, and mcp.tool, now QuickMCP's own method,
refuses either name once there is a plugin. Both messages name the
plugin layer's replacement.
From the whole-branch review: gateway.prefix() in a custom route reads
the server's own prefix header, a tool miss logs at info, the tools'
JSON keeps non-ASCII, and the Via parts of DLV-2, DLV-4 and DLV-16
are tagged (proposed). DLV-6 and DLV-7 are built; APP-4 and APP-12
follow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
feat(delivery): X-MCP-Listed chooses the kinds resources/list shows
resources/list now shows the kinds the request's X-MCP-Listed resolves
to. With skills, the default, it shows one SKILL.md row per plugin
skill, as before. With prompts and agents it adds one row per
prompts:// or agents:// file, each exactly the row its folder lists it
by. Folders and indexes are never listed, and the server's own
resources always are. A prompt or agent file is now a _FileResource,
whose to_mcp_resource passes its own _meta, so the listed row and the
folder row share one wire form with no fastmcp key. DLV-8 is built,
and SKL-8 notes it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(delivery): read every input under the server's own header prefix
QuickMCP(..., header_prefix="Kb") makes every header input read as
Kb-<Name> first, then the shared X-MCP-<Name> alias, then the query
parameter. A bad Kb-* value falls to the alias with one warning naming
it. A background task's worker on the server reads its own headers too.
A prefix that is not a header-name token, or X-MCP itself, is refused
with a ValueError before anything is built. DLV-16 is built; APP-2,
GW-1 and GW-2 follow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(delivery): resolve the delivery inputs and the prefix by levels, falling through
Each request resolves X-MCP-Resource-Prefix, X-MCP-Resources and
X-MCP-Listed once, in a new _ResolveScope middleware between the call
scope and the plugin pin. Each input walks its sources in order: the
header, then the query parameter, then the config's delivery default,
then the built-in one. An invalid value, the gateway prefix's included,
falls through to the next source, with one warning that names the
source. Warn-once is keyed on (session, source, value) and bounded at
4096, the least recently warned forgotten first. FastMCP 4.2.5 gives a
middleware no signal when a session ends. The handshake resolves without
warning, since its session has no id yet.
gateway.prefix() now reads the resolution, and HEADER, QUERY,
_VALID and request._first_time are removed. kubed.mcp exports Delivery.
DLV-1 to DLV-5 are built; GW-1, GW-3, FAC-1 and FAC-2 follow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs(delivery): spec and plan of record for the delivery inputs (#21)
Rewrite DLV-1 to DLV-8 for the resolver, the fall-through warnings, the
resource tools and the listing, and add DLV-16, the server's own header
prefix. All stay (proposed) until the task that builds each one. The plan
builds them in four tasks: the resolver and warn-once, header_prefix,
X-MCP-Listed, and the resource tools with binary_pointer and the DLV-7
name check.
docs(delivery): plan X-MCP-Via, instructions per request and a client's default
Write the plan of record for #22, step 6 of material delivery, and the
delivery rows it builds: DLV-3's seven levels, DLV-9's listing table,
DLV-10 (hiding is unlisting), DLV-11's Resolved and extensions, DLV-12's
echo, DLV-14's clientInfo sources and the new DLV-15 table of known
clients. The rows stay (proposed) until the task that builds each one.
feat(delivery): list_resources and read_resource for clients that cannot read resources
A server with a plugin now serves two read-only tools, list_resources
and read_resource, over every resource it has. They show in tools/list
under X-MCP-Resources: off and are always callable by name.
list_resources returns the request's resources/list rows, less ui://,
with each row's uri written under the gateway prefix. read_resource
reads through the server's middleware, as resources/read does:
- images come back as image content;
- UTF-8 text/* and SVG blobs come back as text;
- other binaries come back as a JSON description, with the pointer
mcp.binary_pointer(fn) gives;
- ui:// is refused;
- a miss carries resources/read's message.
A server's own list_resources or read_resource tool now refuses the
first add_plugin or serve, and mcp.tool, now QuickMCP's own method,
refuses either name once there is a plugin. Both messages name the
plugin layer's replacement.
From the whole-branch review: gateway.prefix() in a custom route reads
the server's own prefix header, a tool miss logs at info, the tools'
JSON keeps non-ASCII, and the Via parts of DLV-2, DLV-4 and DLV-16
are tagged (proposed). DLV-6 and DLV-7 are built; APP-4 and APP-12
follow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
feat(delivery): X-MCP-Listed chooses the kinds resources/list shows
resources/list now shows the kinds the request's X-MCP-Listed resolves
to. With skills, the default, it shows one SKILL.md row per plugin
skill, as before. With prompts and agents it adds one row per
prompts:// or agents:// file, each exactly the row its folder lists it
by. Folders and indexes are never listed, and the server's own
resources always are. A prompt or agent file is now a _FileResource,
whose to_mcp_resource passes its own _meta, so the listed row and the
folder row share one wire form with no fastmcp key. DLV-8 is built,
and SKL-8 notes it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(delivery): read every input under the server's own header prefix
QuickMCP(..., header_prefix="Kb") makes every header input read as
Kb-<Name> first, then the shared X-MCP-<Name> alias, then the query
parameter. A bad Kb-* value falls to the alias with one warning naming
it. A background task's worker on the server reads its own headers too.
A prefix that is not a header-name token, or X-MCP itself, is refused
with a ValueError before anything is built. DLV-16 is built; APP-2,
GW-1 and GW-2 follow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
feat(delivery): resolve the delivery inputs and the prefix by levels, falling through
Each request resolves X-MCP-Resource-Prefix, X-MCP-Resources and
X-MCP-Listed once, in a new _ResolveScope middleware between the call
scope and the plugin pin. Each input walks its sources in order: the
header, then the query parameter, then the config's delivery default,
then the built-in one. An invalid value, the gateway prefix's included,
falls through to the next source, with one warning that names the
source. Warn-once is keyed on (session, source, value) and bounded at
4096, the least recently warned forgotten first. FastMCP 4.2.5 gives a
middleware no signal when a session ends. The handshake resolves without
warning, since its session has no id yet.
gateway.prefix() now reads the resolution, and HEADER, QUERY,
_VALID and request._first_time are removed. kubed.mcp exports Delivery.
DLV-1 to DLV-5 are built; GW-1, GW-3, FAC-1 and FAC-2 follow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
docs(delivery): spec and plan of record for the delivery inputs (#21)
Rewrite DLV-1 to DLV-8 for the resolver, the fall-through warnings, the
resource tools and the listing, and add DLV-16, the server's own header
prefix. All stay (proposed) until the task that builds each one. The plan
builds them in four tasks: the resolver and warn-once, header_prefix,
X-MCP-Listed, and the resource tools with binary_pointer and the DLV-7
name check.
feat(plugins): prefix prompt and agent names with the namespace's first segment
Under a namespace other than the server's name, a prompt's and an
agent's prefix is now the namespace's first segment and a `_`, so
`greet` under `kit/tools` is `kit_greet`, and two plugins under
`grafana/loki` and `grafana/k6` clash on `grafana_greet` (PLUG-63,
PLUG-17, PLUG-37).
The wiki takes #28's branch first, as Dr K asked: PLUG-50 to PLUG-61
built and the GW rows, with this branch's PLUG-62 to PLUG-74 on top.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
spec: material delivery, proposed: plugin sets, views, rewriters, prompt and agent resources (PLUG-50 to PLUG-72), delivery (DLV-1 to DLV-14), bundles (BND-1 to BND-12); the design
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>