Repository navigation
Closed
Description
Context
Area 10 of the request asks that the documentation tool "be able to say where each remaining setting lives" — including settings that are intentionally not MCP-editable (secrets, credential paths, environment-only values). The previous issue produced an audit table in docs/mcp-coverage.md. A table in prose is hard for an agent to query reliably and drifts easily. This issue turns it into structured data served by MCP and a generated docs page, and adds a drift test.
Requirements
- New
packages/api/mcp/settingsCatalog.tsexportingSETTINGS_CATALOG: SettingEntry[]:Seed it from the audit ininterface SettingEntry { id: string; // stable slug, e.g. 'trigger.bot_allowlist' label: string; // "Allowed bot accounts" aliases: string[]; // "bot whitelist", "exempt bots", "github_bot_whitelist" scope: 'instance' | 'repository' | 'user' | 'environment'; ui?: string; // "Settings → Automation → Access" mcp?: { read?: string; write?: string }; // tool names cli?: string; // "propr setting update github_user_whitelist <csv>" env?: string[]; // ["GITHUB_USER_WHITELIST"] restartRequired?: boolean; mcpStatus: 'read_write' | 'read_only' | 'browser_only' | 'environment_only'; reason?: string; // why browser/env only (e.g. "credential entry") docs?: string; // docs page path for get_doc, e.g. 'operations/configuration-reference' }
docs/mcp-coverage.mdanddocs/docs/operations/configuration-reference.md(every documented env variable group gets an entry; group closely related variables, e.g. all*_TIMEOUT_MSagent timeouts as one entry with severalenvvalues). - New tool
find_setting(scoperead, intoolsDocs.ts):{ query (2..100 chars), limit ≤ 10 }→ matching entries ranked by label/alias/id/env-name match, each with a one-sentencehowToChangebuilt from the entry (e.g. "Change it with update_trigger_access_configuration, or in Settings → Automation → Access."). Entries whose MCP tool requires a permission the caller lacks still appear (location info is not secret) but say "requires instance.manage_settings". - Script
scripts/generate-settings-docs.mjsrenders the catalog todocs/docs/operations/settings-locations.md(front mattertitle: Where Each Setting Lives,sidebar_position), grouped by scope, one table per group. Add the page todocs/sidebars.tsunder Operations next to Configuration Reference.- The script imports the catalog via
tsx(already a dev dependency) or reads a JSON export; choose the simplest that works in CI without building.
- The script imports the catalog via
- Drift tests (
packages/api/test/settingsCatalog.test.ts):- every
mcp.read/mcp.writename exists increateToolCatalog(...); - every tool whose name matches
/^(get|update)_.*(settings|configuration|keywords|labels|label|tag|policy)$/appears in at least one catalog entry (so new config tools must be catalogued); - every
docspath exists in the docs index; - the committed
settings-locations.mdequals the generator's output (run generator in-memory and compare).
- every
docs/mcp-coverage.md"Settings reachability" section is replaced by a pointer to the generated page andfind_setting(single source of truth).
Implementation Specification
- New
packages/api/mcp/settingsCatalog.ts, editpackages/api/mcp/toolsDocs.ts(find_setting), newscripts/generate-settings-docs.mjs, newdocs/docs/operations/settings-locations.md(generated, committed), editdocs/sidebars.ts,docs/mcp-coverage.md, new test. - Add an npm script
docs:settingsin the rootpackage.jsonrunning the generator.
Acceptance Criteria
-
find_setting({ query: 'bot whitelist' })returns the bot allowlist entry withmcp.write === 'update_trigger_access_configuration'and the UI location. -
find_setting({ query: 'CODEX_TIMEOUT_MS' })returns the agent timeout entry withmcpStatus: 'environment_only',restartRequired: trueanddocs: 'operations/configuration-reference'. -
find_setting({ query: 'visual preview token' })explains it is browser-only (credential entry) and where. - Drift tests fail if a new
update_*_settingstool is added without a catalog entry, or the generated page is stale. - The docs site builds with the new page (
cd docs && npm run build).
Created by ProPR AI Planner
Activity
propr-dev commentedon Sep 28, 2026
Suggested Implementation:
Implementation Approach
We make the setting-location knowledge data (a typed catalog in the API package), render the docs page from it, and test both directions (tools ↔ catalog, catalog ↔ docs). Hand-maintained prose was rejected because it silently drifts, and scraping the Settings UI at runtime is brittle. Placing the catalog in
packages/apilets the drift test import the live tool catalog directly.find_settinglives with the docs tools because it answers a documentation question ("where do I change X?") and works even for settings MCP cannot edit.File:
packages/api/mcp/settingsCatalog.ts(new file)Why this file: Single source of truth for where each setting lives.
File:
packages/api/mcp/toolsDocs.tsWhy this file:
find_settingis a documentation lookup; it sits withsearch_docs.File:
scripts/generate-settings-docs.mjs(new file)Why this file: Renders the catalog to Markdown so the docs site and
get_docshow the same data.Root
package.json:"docs:settings": "node --import tsx scripts/generate-settings-docs.mjs".File:
docs/sidebars.ts'operations/configuration-reference', + 'operations/settings-locations',File:
packages/api/test/settingsCatalog.test.ts(new file)Why this file: Enforces that catalog, tools and docs stay in sync.
propr-dev commentedon Sep 30, 2026
🤖 AI processing has started for this issue using codex agent with gpt-5.6-sol model.
I'll analyze the problem and work on a solution. This may take a few minutes.
Processing Details:
codexgpt-5.6-sol2608/gpt-5.6-sol-settings-location-catalog-20260930-0149-j1c2593-epic-mcp-observability-cf6issue-2608-20260930-0149-gpt-5.6-sol-j1c🔍 Track Task Execution
fix(ai): Resolve issue #2608 - Settings location catalog: find_settin…
fix(ai): Resolve issue #2608 - Settings location catalog: find_settin…