Skip to main content

Module mcp_seed

Module mcp_seed 

Source
Expand description

Starter MCP Servers catalog seed: preloads a small set of curated global, credential-free MCP servers (db_mcp_servers, the v1 standalone catalog) on fresh install.

The actual “run exactly once, ever” gating lives in migrations::m0016_seed_starter_mcp_servers, tracked in the channel’s db_migrations table — NOT in this module, and NOT gated on “is the catalog currently empty” (that gate can’t distinguish “never seeded” from “seeded then the user deleted every starter server on purpose”, which would silently resurrect the defaults on the next restart after a full deletion (#2141), as the starter-skills seed this was modelled on showed). This module exposes only the pure insert logic; the migration owns invocation.

Only credential-free, fully local servers belong in this manifest — see docs/specs/SPEC_ARMORY_MCP_SERVER_DEFAULT_SEED_CATALOG_2026_07_13.md §2: every is_global MCP server is auto-injected into every agent’s .mcp.json at launch with no per-agent opt-in, so a seeded row needing an API key or OAuth token would break every agent’s launch by default. The Filesystem reference server is deliberately NOT included despite being credential-free — it requires an allowlisted directory as a CLI arg with no environment-agnostic default (spec §9 open question 3); it can be added once that’s resolved, either by computing a per-agent default at config-build time or shipping it with an explicit prereq the user fills in via the existing catalog-picker mechanism instead.

Ids are deterministic, not randomly minted — same reasoning as the retired starter-skills seed’s ids (keyed on trigger), mirrored here for MCP servers via entry.name (there is no separate slug field for a server the way a skill has trigger; name already plays that role — it’s the catalog key mcp_server_upsert_unique_global enforces uniqueness on). See Phase 1 of SPEC_DURABLE_BINDINGS_2026_09_10.md.