Skip to content

Specification

kubed-io[bot] edited this page Nov 28, 2026 · 13 revisions

The kubed-mcp spec

What the library does, one area per file. Each requirement is numbered, says one thing, and is true of the code unless it is tagged (proposed). An agent that reads every file here can rebuild the package: the requirements and use cases are in the area files.

The spec holds the present only. Why a requirement is the way it is, and what it replaced, is in the dated designs and plans in plans/, each of which opens with a History header naming the requirement ids that hold it now. Setting up the repo, running the tests and shipping are in CONTRIBUTING.md.

Areas

Area IDs Covers
Package PKG The distribution and its import path, the namespace, the Python range, the dependency on FastMCP, versions, publishing, the release notes
App APP QuickMCP: the FastMCP server it wraps, what it passes through, its lifespan and call middleware, mcp.auth and run()
Container DI Recipes keyed by type, the singleton, session and transient lifetimes, the order rule, teardown, overrides, Inject[T] and lookup
Facade FAC The FastMCP and MCP SDK names re-exported from kubed.mcp, .protocol and .auth, and request_values()
Plugins PLUG add_plugin, add_loader and the registry, loaders, the Claude plugin manifest, namespaces, and serving a plugin's skills, its commands as prompts and its agents
Skills SKL The serving rules the plugin layer applies to every skill: catalogues, strict loading, the entry-only listing, reserved names, hidden paths, folders and their indexes, the Skills extension and its SEP-2640 conformance
Telemetry TEL The telemetry section, the signals' lifetime, the start line, profiles to Pyroscope and their source links, OpenTelemetry from the standard OTEL_* variables, the link from spans to profiles, trace ids on log records, and FastMCP's call metrics
Delivery DLV What a client can take and what is listed for it: X-MCP-Resources and the resource tools, X-MCP-Listed, the X-MCP-Via preset, the X-MCP-Max skills cap, defaults per config and per client, instructions per request
Bundles BND A server's plugins as a Claude Code marketplace: the routes, the archive per bundle, and translating served text back into a local plugin's forms
Config CFG The one composed config: sections registered by key, items sourced from the file, env vars and arguments with explicit names, provenance, sensitive values, the schema, injection by section
Components CMP The component interface, start and stop, the built-ins (serving, telemetry, delivery) and the hook that supplies a built-in's section in code
Gateway GW Serving through a multiplexing gateway: the resource prefix a route injects, taken off incoming addresses and written into every address in served text

An area file avoids the names of the wiki's top-level pages. A GitHub wiki addresses a page by its basename, ignoring case and folder, so specs/home.md would answer to the same address as Home.md.

Ids

  • An id is the area's prefix and a number: PKG-3. Numbers count up within an area and are never reused. A removed requirement leaves a gap.
  • A requirement that is not built yet is written like the others and tagged (proposed). The tag comes off in the change that builds it. A proposed requirement that replaces a built one names it.
  • A behaviour change edits its area file in the same change.
  • Each rule has one owner, the area whose subject it is. Another area that needs it links the id instead of restating it, and a requirement reduced to a pointer keeps its id.
  • Requirements cite each other by id, and code by symbol name (kubed.mcp.__version__), never by line number.
  • Statements only: present tense, no dates, issue numbers or history. The repository is public, so no hostnames or personal names. The maintainer is Dr K, and examples use example.com.

Clone this wiki locally