Skip to main content

Module catalog

Module catalog 

Source
Expand description

The built-in MCP server catalog (RFC-102).

tuff add mcp github resolves against this list instead of a path or git URL. Each entry is turned into an in-memory CapabilityManifest and installed through exactly the same path as one loaded from tuff.toml, so every lifecycle verb works on catalog installs without special cases — the only catalog-aware code is in update, outdated, and diff, which re-resolve here instead of cloning a git repository.

Functions§

ids
Every catalog id, in file order.
lookup
Resolve a catalog id into a manifest ready for resolve_capability. Returns Ok(None) for an unknown id so callers can fall through to other source kinds with their own error message.
required_env
Environment variables a server declaration expects the developer to export, in a stable order, across both [server.env] and [server.headers]. Used to print a post-install reminder.