fix(mcp): move setup_instructions to the catalog root in all 33 entries #2

Merged
arka-admin merged 2 commits from fix/mcp-setup-instructions-table-order into main 2026-10-18 12:42:34 +03:00
Owner

Content Type

  • MCP Server (mcp/)

Problem

Every mcp/*.toml declares setup_instructions after the [health_check] table. TOML therefore scopes that key to health_check, not to the document root:

[health_check]
interval_secs = 60
unhealthy_threshold = 3

setup_instructions = """..."""   # <- health_check.setup_instructions, not root

McpCatalogEntry::setup_instructions is a root-level String with #[serde(default)] and the struct does not deny unknown fields, so the misplaced key is silently ignored and the field deserialises to "".

Verified against the real deserializer: restoring the registry's field order in the agent-arka fixture makes registry_mcp_fixture_contract::every_mcp_fixture_keeps_setup_instructions_at_the_catalog_root fail with "lost top-level setup_instructions (check TOML table ordering)". The fixture files in agent-arka had to be hand-reordered to satisfy that test, which is why the fixture previously diverged from the shipped registry.

Net effect: all 33 MCP catalog entries ship with empty setup instructions, so the install/detail views that read entry.setup_instructions have nothing to display.

Changes

  • Relocate the setup_instructions key above the first table header in all 33 mcp/*.toml entries.

The change is a pure relocation: setup_instructions text is byte-identical and every other key in every file is untouched (verified programmatically across all 33 files). python3 scripts/validate.py passes.

Checklist

General

  • Content placed in the correct directory
  • TOML files parse without errors
  • Description is clear and concise

MCP Servers

  • [transport] config tested locally
  • [[required_env]] lists all needed variables
  • setup_instructions are clear for first-time users
  • python scripts/validate.py passes
## Content Type - [x] MCP Server (`mcp/`) ## Problem Every `mcp/*.toml` declares `setup_instructions` *after* the `[health_check]` table. TOML therefore scopes that key to `health_check`, not to the document root: ```toml [health_check] interval_secs = 60 unhealthy_threshold = 3 setup_instructions = """...""" # <- health_check.setup_instructions, not root ``` `McpCatalogEntry::setup_instructions` is a root-level `String` with `#[serde(default)]` and the struct does not deny unknown fields, so the misplaced key is silently ignored and the field deserialises to `""`. Verified against the real deserializer: restoring the registry's field order in the agent-arka fixture makes `registry_mcp_fixture_contract::every_mcp_fixture_keeps_setup_instructions_at_the_catalog_root` fail with *"lost top-level setup_instructions (check TOML table ordering)"*. The fixture files in agent-arka had to be hand-reordered to satisfy that test, which is why the fixture previously diverged from the shipped registry. Net effect: all 33 MCP catalog entries ship with empty setup instructions, so the install/detail views that read `entry.setup_instructions` have nothing to display. ## Changes - Relocate the `setup_instructions` key above the first table header in all 33 `mcp/*.toml` entries. The change is a pure relocation: `setup_instructions` text is byte-identical and every other key in every file is untouched (verified programmatically across all 33 files). `python3 scripts/validate.py` passes. ## Checklist ### General - [x] Content placed in the correct directory - [x] TOML files parse without errors - [x] Description is clear and concise ### MCP Servers - [x] `[transport]` config tested locally - [x] `[[required_env]]` lists all needed variables - [x] `setup_instructions` are clear for first-time users - [x] `python scripts/validate.py` passes
arka-admin added 1 commit 2026-10-18 12:05:05 +03:00
Every `mcp/*.toml` placed `setup_instructions` *after* the `[health_check]`
table, so TOML scoped it to that table rather than to the document root.
`McpCatalogEntry::setup_instructions` therefore deserialised as its
`#[serde(default)]` empty string for all 33 entries, and the install/detail
views that read `entry.setup_instructions` had nothing to show.

Relocate the key above the first table header. The text is byte-identical
and no other key is touched. `scripts/validate.py` passes.
arka-admin added 1 commit 2026-10-18 12:42:16 +03:00
# Conflicts:
#	mcp/fetch.toml
#	mcp/git.toml
#	mcp/sqlite-mcp.toml
arka-admin merged commit abf53a57df into main 2026-10-18 12:42:34 +03:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: arka/librefang-registry#2