docs: SEP-2640 conformance in SKL, and the changelog (#79)
SKL cites SEP-2640 section by section, SKL-14 returns resultType, and the new
SKL-25 to SKL-30 record complete resources, the views kept out of them,
nested SKILL.md files, FastMCP's cursor handling, the limits on every path
and FastMCP's SKILL.md row name. GW-8 links #82 for agentgateway 1.8.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
feat(gateway): add unprefixed, the inverse of prefixed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Agent: done
feat(gateway): resolve dot segments on skills/get and resources/directory/read
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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): 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>
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: gateway, proposed: the resource prefix in, prefixed text out, part of the build key (GW-1 to GW-10)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>