Repository navigation
docs(mcp): dedicated MCP tab with per-client copy-only setup prompts - #94
Conversation
Covers Claude Code, Claude Desktop, Cursor, Windsurf, VS Code, Cline, Zed, and a generic stdio fallback. Each client page carries the exact config path per OS, the exact JSON or command, how to confirm the connection in that client's UI, and client-specific troubleshooting. Facts checked against a live stdio handshake with refactron 0.3.0: server identity, the single verify_change tool, and its argument schema. The npx form needs -p because refactron-mcp is a secondary bin of the refactron package; npx refactron-mcp alone 404s on a machine without the global install. VS Code uses the root key servers and Zed uses context_servers, both called out explicitly since a copied mcpServers block fails silently in each.
agent-instructions carries three paste-ready blocks addressed to the agent: install and register for the client it runs in, verify before applying with per-verdict behavior, and a rules-file block so the behavior persists across sessions in AGENTS.md, CLAUDE.md, or .cursorrules. The blocks state repeatedly that SAFE is suite-approved and not proven correct, that it is a per-file and not a per-statement check, and that the two UNPROVEN reasons mean different things: 'not exercised by any test' is fixable by writing the named test, 'coverage could not be determined' is not. tool-reference examples are captured from real stdio calls, including the error results for a missing change argument, a nonexistent repoRoot, and a diff that deletes a file.
Every existing group and page moves unchanged under a Documentation tab, in the same order. A second MCP tab adds three groups: Get started, Connect your client, and Using it. 48 nav entries verified to resolve to a real file.
The page predated the tab and competed with it as a second setup guide. Its unique content is folded into the tab: the flow diagram and the local, non-mutating, deterministic, no-login properties into /mcp/index; the source checkout into /mcp/other-clients; the list caps and the auth contrast into /mcp/tool-reference. What remains is a short signpost, kept in nav so existing links and bookmarks still resolve. Inbound links from overview, faq, quickstart, verify-diff, and safety-model now point at the tab page that answers them.
Cline, Windsurf, Zed, Codeium, Cascade, Copilot, stdio, mcp, JSON-RPC, globalStorage, Jinja.
Three changes from review. Client cards now carry real brand marks from docs/assets/clients rather than generic glyphs. Sidebar icons stay Font Awesome, because frontmatter icons take named-library names only and this site has no icons.library key, so Lucide names would render blank. Trimmed to the leading agents: Claude Code, Claude Desktop, Codex CLI, Cursor, GitHub Copilot, Gemini CLI, Windsurf. Cline and Zed lose their own pages and fold into the generic client page, which keeps Zed's context_servers key, the gotcha most likely to break a setup silently. The agent page is now one end-to-end prompt that takes an agent from nothing to a verified setup, kept inside a collapsed accordion so the page reads as an instruction plus a copy affordance instead of a wall of prose. Two shorter accordions hold the standing verify-before-apply rule and the project-rules snippet, each titled for what it does.
The downloaded brand SVGs ship near-black fills (#000000, #0B100F) and openai.svg carried no fill at all, which defaults to black. Every one of those disappears against the dark theme, so half the client grid looked empty depending on which theme you were viewing. Each mark now uses currentColor and inherits the surrounding text color, so the set is visible and consistent in both themes.
Page frontmatter icon accepts a path to an icon file in the project, not only named-library names, so the sidebar can carry the actual client marks instead of stand-in glyphs. I had this wrong earlier and told the docs to keep Font Awesome names there. Paired with the currentColor change, each mark now inherits the sidebar text color, so it stays legible in both themes.
Three fixes from review. The marks were invisible on the dark theme. Mintlify renders a path-based icon as an img, and an img cannot inherit the page's CSS color, so currentColor resolved to black inside the SVG's own document. An SVG loaded through img does honor prefers-color-scheme in its own style block, so each mark now carries the media query itself and flips between near-black and near-white with the theme. Claude Code and Claude Desktop collapse into one expandable group in the sidebar, since they are the same product with two surfaces. The MCP tab now uses the official Model Context Protocol mark instead of a generic plug glyph.
The generic plug glyph appeared in seven places: three page icons (mcp overview, other clients, the verification-section mcp page) and four cards linking into the mcp section from overview, verify-diff, and the mcp index. All now carry the official Model Context Protocol mark, matching the tab icon, so the section reads as one thing rather than a plug in some places and a real mark in others.
The setup prompt was one page and one wall of text that switched on whichever client the agent decided it was. Each client page now carries its own prompt instead, written for that client specifically: its exact registration command, its own reload step, its own confirmation. The shared steps are generated from one skeleton so eight copies cannot drift apart. The dedicated page is gone; its two behavioural prompts, the standing verify-before-you-apply rule and the project rules file rule, moved onto the section index. Those prompts are addressed to an agent, not to a reader, so a screen of scrolling bought nothing. Each is now a single bar that copies on click. The code body is collapsed with max-height rather than display:none, because display:none drops an element from the rendered text and a copy handler reading innerText would put an empty string on the clipboard. Verified in the browser: the block reports 0 height and still yields all 117 lines. If the stylesheet ever fails to load the block degrades to an ordinary visible code block that still copies. The marks needed a second fix. They render through an img tag, which cannot inherit the page colour, and the media query added earlier follows the operating system while the theme toggle sets a class on html. The bundle contains no prefers-color-scheme rules at all, so that query could contradict the toggle. The marks now ship one fixed fill and dark mode inverts them, which follows the toggle in both directions.
A `git add docs/` while staging the icon sweep picked up four untracked planning documents that have nothing to do with this branch. They are back to untracked and still on disk, so committing them stays a separate and deliberate decision.
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
📝 WalkthroughWalkthroughThe PR reorganizes MCP documentation into a dedicated navigation area. It adds overview, quickstart, tool-reference, and client-specific setup pages. It also updates links, styling, and vocabulary entries. ChangesMCP documentation
Estimated code review effort: 4 (Complex) | ~45 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
docs/concepts/safety-model.mdxParsing error: ESLint was configured to run on docs/faq.mdxParsing error: ESLint was configured to run on docs/mcp/claude-code.mdxParsing error: ESLint was configured to run on
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Adds a dedicated MCP documentation tab (separate from the existing documentation navigation) and introduces per-client MCP setup pages. This centralizes verify_change setup/usage guidance and standardizes “copy-only” setup prompts via shared styling.
Changes:
- Restructures
docs/docs.jsonnavigation fromgroupsto tabbed navigation, adding an MCP tab with client subpages. - Adds MCP docs pages (index, quickstart, tool reference, and per-client setup docs) and updates existing docs to link to the new MCP locations.
- Adds
docs/style.cssto support copy-only prompt blocks and dark-mode-safe client icons; adds new client SVG icons.
Reviewed changes
Copilot reviewed 20 out of 27 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| docs/verification/verify-diff.mdx | Updates MCP links/cards to point to the new MCP tab pages. |
| docs/verification/mcp-server.mdx | Refocuses this page into a pointer/portal to the MCP tab resources. |
| docs/styles/config/vocabularies/Mintlify/accept.txt | Expands accepted vocabulary for new MCP/client terminology. |
| docs/style.css | Adds styling for client icon inversion in dark mode and “copy-only” agent prompt blocks. |
| docs/quickstart.mdx | Updates MCP setup link to point to the MCP tab index. |
| docs/overview.mdx | Updates MCP card icon and link to the MCP tab index. |
| docs/mcp/index.mdx | New MCP tab landing page: overview, install/connect sections, and reusable agent prompts. |
| docs/mcp/quickstart.mdx | New MCP quickstart: install, smoke test, register with a client, first verification. |
| docs/mcp/tool-reference.mdx | New verify_change contract/reference page with request/response and error mapping. |
| docs/mcp/claude-code.mdx | New Claude Code setup page with copy-only agent prompt + manual instructions. |
| docs/mcp/claude-desktop.mdx | New Claude Desktop setup page with copy-only agent prompt + manual instructions. |
| docs/mcp/codex.mdx | New Codex CLI setup page (TOML config) with copy-only agent prompt + manual instructions. |
| docs/mcp/cursor.mdx | New Cursor setup page with copy-only agent prompt + manual instructions. |
| docs/mcp/vscode.mdx | New VS Code (GitHub Copilot) setup page highlighting servers root key and stdio type. |
| docs/mcp/gemini-cli.mdx | New Gemini CLI setup page with timeout unit guidance and trust-folder troubleshooting. |
| docs/mcp/windsurf.mdx | New Windsurf setup page with refresh-based reload guidance and tool cap note. |
| docs/mcp/other-clients.mdx | New catch-all page for other clients (incl. Zed/Cline) and config-shape differences. |
| docs/faq.mdx | Updates MCP server link to new MCP index. |
| docs/docs.json | Moves to tabbed navigation and adds the MCP tab + client pages. |
| docs/concepts/safety-model.mdx | Updates MCP tool link target to the new MCP index. |
| docs/assets/clients/mcp.svg | Adds MCP tab/client icon asset. |
| docs/assets/clients/claude.svg | Adds Claude client icon asset. |
| docs/assets/clients/openai.svg | Adds OpenAI/Codex client icon asset. |
| docs/assets/clients/cursor.svg | Adds Cursor client icon asset. |
| docs/assets/clients/githubcopilot.svg | Adds GitHub Copilot client icon asset. |
| docs/assets/clients/googlegemini.svg | Adds Gemini client icon asset. |
| docs/assets/clients/windsurf.svg | Adds Windsurf client icon asset. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| ```bash | ||
| refactron --version | ||
| refactron-mcp --help 2>/dev/null || echo "refactron-mcp is on PATH" |
There was a problem hiding this comment.
Actionable comments posted: 12
🧹 Nitpick comments (1)
docs/mcp/claude-code.mdx (1)
17-134: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winExtract the shared prompt into a reusable snippet.
This 118-line prompt repeats in all eight client pages. Only STEP 3, STEP 4, STEP 5, and the "You are running in ..." line differ. STEP 1, STEP 2, STEP 6, and STEP 7 are byte-identical across the cohort. The version string
refactron@0.3.0also appears five times on this page alone, and again on every other page.A single Mintlify snippet with per-client parameters keeps the steps and the pinned version in one place. The next release then needs one edit instead of forty.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@docs/mcp/claude-code.mdx` around lines 17 - 134, Extract the repeated setup instructions from the Claude Code page into a reusable Mintlify snippet parameterized by client name, version, and the client-specific STEP 3–5 content, including the “You are running in …” line. Replace the inline prompt in this page with the snippet invocation, preserving the byte-identical STEP 1, STEP 2, STEP 6, and STEP 7 text and centralizing the pinned refactron version.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/concepts/safety-model.mdx`:
- Line 22: Reword the repository-safety claims to promise only that verification
writes occur in an isolated shadow copy, without asserting that the repository
is never mutated. Apply this wording consistently at
docs/concepts/safety-model.mdx:22, docs/mcp/index.mdx:9, docs/mcp/index.mdx:239,
and docs/mcp/quickstart.mdx:132; no write-isolation implementation change is
requested.
In `@docs/mcp/claude-code.mdx`:
- Around line 15-16: Update the styling for the collapsed prompt within the
agent-prompt code block so keyboard users can reach its hidden content: either
make the collapsed region scrollable or add a focus-within rule that expands it
when focused. Preserve the existing collapsed appearance for non-focused
prompts.
In `@docs/mcp/claude-desktop.mdx`:
- Around line 23-45: Update the Claude Desktop setup prompt so it does not
instruct the agent to execute shell commands, edit files, or access git
directly; either direct the user through those prerequisites and setup steps or
state upfront that a filesystem-capable MCP server or separate terminal is
required. Preserve STEP 6 as the only agent-executed tool call after the server
is registered, and apply the same capability clarification to the surrounding
setup instructions.
In `@docs/mcp/codex.mdx`:
- Around line 200-206: Update the timeout guidance around tool_timeout_sec and
the failure diagnosis near the “about a minute” wording to name the documented
60-second default with its release and the longer current-build default with its
release. Ensure both sections consistently explain that timeout failures depend
on the Codex version, while preserving the recommendation to set
tool_timeout_sec explicitly.
In `@docs/mcp/gemini-cli.mdx`:
- Line 224: Update the trust guidance near the refactron configuration to state
that "trust": true automatically approves verifier command execution, including
verify_change testCmd commands run with the reader’s privileges. Clarify that
the shadow tree only scopes file writes, recommend trust only for repositories
already trusted, and advise keeping confirmations when the agent may read
untrusted content.
- Around line 88-90: Update the troubleshooting guidance in the disconnected
stdio-server section to remove the unsupported gemini trust command and direct
readers to run /permissions within the Gemini CLI session; alternatively
reference the security.folderTrust.enabled setting or
~/.gemini/trustedFolders.json.
In `@docs/mcp/index.mdx`:
- Line 240: Qualify the deterministic-result statement in the documentation to
apply only under a fixed execution environment and when the tests themselves are
deterministic. Account for the documented flakyTests behavior rather than
claiming identical repository states always produce the same verdict.
In `@docs/mcp/other-clients.mdx`:
- Around line 11-13: Rewrite the opening sentence in the MCP client
documentation so it names the intended audience once, then clearly states what
the prompt does; avoid separating the subject and verb with the long descriptive
noun phrase.
In `@docs/mcp/quickstart.mdx`:
- Line 21: Replace the `refactron-mcp --help` PATH check with a non-executing
`command -v refactron-mcp` check, and ensure the fallback message is printed
only when the command is unavailable.
In `@docs/mcp/tool-reference.mdx`:
- Around line 61-87: Document the MCP result envelope before the decoded report:
in docs/mcp/tool-reference.mdx lines 61-87, show content[0].text containing the
existing report and label it as decoded text; in docs/mcp/quickstart.mdx lines
102-125, label the example as the decoded report rather than a direct response;
and in lines 129-131, state that the tool returns JSON text whose decoded value
contains verdict and reportVersion.
In `@docs/mcp/windsurf.mdx`:
- Around line 55-57: Update the prompt text in the Windsurf documentation so the
ownership pronoun in “every server I have” refers to the user as “every server
you have,” without changing the surrounding merge or JSON-validation
instructions.
In `@docs/styles/config/vocabularies/Mintlify/accept.txt`:
- Line 56: Update the Mintlify vocabulary entries in accept.txt to include the
canonical uppercase MCP alongside the existing lowercase mcp entry, allowing
documentation to use MCP without requiring lowercase variants.
---
Nitpick comments:
In `@docs/mcp/claude-code.mdx`:
- Around line 17-134: Extract the repeated setup instructions from the Claude
Code page into a reusable Mintlify snippet parameterized by client name,
version, and the client-specific STEP 3–5 content, including the “You are
running in …” line. Replace the inline prompt in this page with the snippet
invocation, preserving the byte-identical STEP 1, STEP 2, STEP 6, and STEP 7
text and centralizing the pinned refactron version.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: 560385ee-bf1c-482e-8fc6-fa4d4355eec5
⛔ Files ignored due to path filters (7)
docs/assets/clients/claude.svgis excluded by!**/*.svgdocs/assets/clients/cursor.svgis excluded by!**/*.svgdocs/assets/clients/githubcopilot.svgis excluded by!**/*.svgdocs/assets/clients/googlegemini.svgis excluded by!**/*.svgdocs/assets/clients/mcp.svgis excluded by!**/*.svgdocs/assets/clients/openai.svgis excluded by!**/*.svgdocs/assets/clients/windsurf.svgis excluded by!**/*.svg
📒 Files selected for processing (20)
docs/concepts/safety-model.mdxdocs/docs.jsondocs/faq.mdxdocs/mcp/claude-code.mdxdocs/mcp/claude-desktop.mdxdocs/mcp/codex.mdxdocs/mcp/cursor.mdxdocs/mcp/gemini-cli.mdxdocs/mcp/index.mdxdocs/mcp/other-clients.mdxdocs/mcp/quickstart.mdxdocs/mcp/tool-reference.mdxdocs/mcp/vscode.mdxdocs/mcp/windsurf.mdxdocs/overview.mdxdocs/quickstart.mdxdocs/style.cssdocs/styles/config/vocabularies/Mintlify/accept.txtdocs/verification/mcp-server.mdxdocs/verification/verify-diff.mdx
| </Frame> | ||
|
|
||
| For [`verify-diff`](/verification/verify-diff) and the [MCP `verify_change` tool](/verification/mcp-server), this is the whole story: the shadow tree is built, the gates run, the verdict is returned, and the copy is cleaned up. **Your repo is never mutated.** Landing the change is the caller's decision. | ||
| For [`verify-diff`](/verification/verify-diff) and the [MCP `verify_change` tool](/mcp/index), this is the whole story: the shadow tree is built, the gates run, the verdict is returned, and the copy is cleaned up. **Your repo is never mutated.** Landing the change is the caller's decision. |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/usr/bin/env bash
set -euo pipefail
# Locate shadow-tree construction and test-process launch behavior.
rg -n -C 8 --type ts \
'linkSync|link\(|copyFile|copyFileSync|chmod|mkdtemp|shadow' src
rg -n -C 8 --type ts \
'testCmd|spawn\(|exec\(|execa|child_process' srcRepository: Refactron-ai/Refactron_Lib_TS
Length of output: 50386
🏁 Script executed:
#!/usr/bin/env bash
set -euo pipefail
# Inspect the only implementation path that builds the shadow tree.
sed -n '1,130p' src/verify/shadow-tree.ts
# Search for any chmod/chown/read-only/namespace/container/test-write protection around test execution.
rg -n --type ts 'chmod|fchmod|chown|fchown|readonly|read-only|readonlyFs|noexec|nosuid|namespace|container|mockFs|writeFile|createWriteStream|access\(' src docsRepository: Refactron-ai/Refactron_Lib_TS
Length of output: 15243
🏁 Script executed:
#!/usr/bin/env bash
set -euo pipefail
# Inspect the only implementation path that builds the shadow tree.
sed -n '1,130p' src/verify/shadow-tree.ts
# Search for any chmod/chown/read-only/namespace/container/test-write protection around test execution.
rg -n --type ts 'chmod|fchmod|chown|fchown|readonly|read-only|readonlyFs|noexec|nosuid|namespace|container|mockFs|writeFile|createWriteStream|access\(' src docsRepository: Refactron-ai/Refactron_Lib_TS
Length of output: 15243
Add write isolation before promising an unchanged repository.
Unchanged files can be hardlinked by fs.link(), and test execution in the shadow tree has no documented copy-on-write, read-only enforcement, or separate write namespace. Add that isolation or reword these docs to only promise verification writes to an isolated shadow copy.
Apply to:
docs/concepts/safety-model.mdx#L22docs/mcp/index.mdx#L9docs/mcp/index.mdx#L239docs/mcp/quickstart.mdx#L132
📍 Affects 3 files
docs/concepts/safety-model.mdx#L22-L22(this comment)docs/mcp/index.mdx#L9-L9docs/mcp/index.mdx#L239-L239docs/mcp/quickstart.mdx#L132-L132
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/concepts/safety-model.mdx` at line 22, Reword the repository-safety
claims to promise only that verification writes occur in an isolated shadow
copy, without asserting that the repository is never mutated. Apply this wording
consistently at docs/concepts/safety-model.mdx:22, docs/mcp/index.mdx:9,
docs/mcp/index.mdx:239, and docs/mcp/quickstart.mdx:132; no write-isolation
implementation change is requested.
| <div className="agent-prompt"> | ||
|
|
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Inspect the .agent-prompt rules that control the collapsed prompt container.
fd -t f 'style.css' docs --exec rg -n -C 12 'agent-prompt'Repository: Refactron-ai/Refactron_Lib_TS
Length of output: 3887
🏁 Script executed:
#!/bin/bash
set -euo pipefail
# Inspect how agent-prompt is constructed and whether anything addresses the full block/root on interactions.
fd -t f 'claude-code.mdx|style.css' docs -0 | xargs -0 -n1 sh -c '
echo "===== $0 ====="
if [ "$(wc -l < "$0")" -gt 300 ]; then
wc -l "$0"
rg -n -C 8 "agent-prompt|code-block|copy" "$0" || true
else
cat -n "$0"
fi
'
# Focused read-only model of the collapsed block styles: identify whether any collapsed target has explicit overflow: hidden with max-height, and whether any keyboard/focus rule expands it.
python3 - <<'PY'
from pathlib import Path
p = Path('docs/style.css')
text = p.read_text()
checks = [
('.agent-prompt has selector', '.agent-prompt {' in text),
('collapsed .code-block root/fade target has max-height: 0', '.agent-prompt .code-block [data-component-part="code-block-root"],\n.agent-prompt .code-block [data-fade-overlay] {...') in text),
('collapsed target has overflow: hidden', '.agent-prompt .code-block [data-component-part="code-block-root"],\n.agent-prompt .code-block [data-fade-overlay] {' in text and ' overflow: hidden;' in text),
('collapsed target has overflow: hidden immediately', 'overflow: hidden;' in text[text.find('.agent-prompt .code-block [data-component-part="code-block-root"],'):text.find('.agent-prompt .code-block {')] if '.agent-prompt .code-block [data-component-part="code-block-root"],' in text else False),
('any .agent-prompt rule contains :focus', ':focus' in text[text.find('.agent-prompt'):text.find('.agent-prompt')+4000]),
('any .agent-prompt .code-block max-height target', 'overflow: hidden;' in text[text.find('.agent-prompt .code-block [data-component-part="code-block-root"],'):text.find('.agent-prompt .code-block {')] if '.agent-prompt .code-block [data-component-part="code-block-root"],' in text else False),
]
for name, value in checks:
print(f'{name}: {value}')
# Print the compact collapsed block rules and any nearby target.
start = text.find('.agent-prompt .code-block [data-component-part="code-block-root"],')
if start != -1:
end = text.find('.agent-prompt .code-block {', start + 1)
print('COLLAPSED_RULES:')
print(text[start:end])
PYRepository: Refactron-ai/Refactron_Lib_TS
Length of output: 15129
Keep the collapsed prompt reachable for keyboard users.
.agent-prompt .code-block [data-component-part='code-block-root'] and [data-fade-overlay] are collapsed with max-height: 0; overflow: hidden;, but no focus/expansion rule restores access. The full prompt remains rendered hidden; either make the collapsed region scrollable or expand it on keyboard focus.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/mcp/claude-code.mdx` around lines 15 - 16, Update the styling for the
collapsed prompt within the agent-prompt code block so keyboard users can reach
its hidden content: either make the collapsed region scrollable or add a
focus-within rule that expands it when focused. Preserve the existing collapsed
appearance for non-focused prompts.
| STEP 1 - Check the prerequisites. | ||
|
|
||
| Run `node --version`. Refactron needs Node.js 18 or newer. If it is older or | ||
| missing, stop and tell me. | ||
|
|
||
| Run `python3 --version`, then check that `pytest` and `coverage` are | ||
| importable. Coverage attestation is Python-only, and it is what makes a | ||
| coverage-backed SAFE verdict possible. Without it the server still runs and | ||
| still gates the change, but every verdict caps at UNPROVEN. | ||
|
|
||
| STEP 2 - Install the server. | ||
|
|
||
| Run `which refactron-mcp`, or `where refactron-mcp` on Windows. If it prints a | ||
| path, go to step 3. Otherwise install it: | ||
|
|
||
| npm install -g refactron@0.3.0 | ||
|
|
||
| That puts two binaries on PATH: `refactron` (the CLI) and `refactron-mcp` (the | ||
| MCP server). If you cannot install globally, install nothing and use the npx | ||
| form in step 3 instead. | ||
|
|
||
| Do not use `pip install refactron` for this. The PyPI wrapper provides the | ||
| `refactron` command only. It does not ship `refactron-mcp`. |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift
Reconcile the prompt with Claude Desktop's capabilities.
Line 7 states that Claude Desktop has no CLI. A default Claude Desktop session also has no terminal, no filesystem write access, and no git access. The prompt still instructs the agent directly to run node --version, run which refactron-mcp, run npm install -g refactron@0.3.0, edit claude_desktop_config.json (lines 49-74), pipe an initialize request (line 100), and run git status (line 141).
STEP 4 is the only step that says "You cannot do this yourself". A reader who pastes this prompt stalls at STEP 1 instead.
Two options work here:
- Rewrite the Claude Desktop prompt so the agent instructs the user for every shell and file step, and keeps only the tool call in STEP 6 for itself.
- State the precondition explicitly at the top of the prompt: the setup steps require a filesystem-capable MCP server or a separate terminal, and the agent must ask the user to perform them.
The STEP 6 tool call is the one step Claude Desktop can genuinely perform once the server is registered.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/mcp/claude-desktop.mdx` around lines 23 - 45, Update the Claude Desktop
setup prompt so it does not instruct the agent to execute shell commands, edit
files, or access git directly; either direct the user through those
prerequisites and setup steps or state upfront that a filesystem-capable MCP
server or separate terminal is required. Preserve STEP 6 as the only
agent-executed tool call after the server is registered, and apply the same
capability clarification to the surrounding setup instructions.
| ## Set `tool_timeout_sec` yourself | ||
|
|
||
| Codex applies a per-tool timeout, and its default has changed between releases: the published config reference documents 60 seconds, while current builds use a longer one. Either number can be shorter than a real test suite, and `verify_change` runs your whole suite. | ||
|
|
||
| Set `tool_timeout_sec` explicitly to comfortably more than a full suite run. Without it, a slow project reports a tool failure that is really a client-side timeout, and you lose a verdict you had already paid for. | ||
|
|
||
| `startup_timeout_sec` is a separate key covering only process launch and the MCP handshake. The default is fine for this server, which starts in well under a second. |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🌐 Web query:
Codex CLI config.toml mcp_servers tool_timeout_sec startup_timeout_sec default value
💡 Result:
In the Codex CLI config.toml file, the configuration settings for MCP servers include specific timeouts to manage server lifecycle and tool execution [1][2][3]. Both settings have the following default values: - startup_timeout_sec: The default value is 10 seconds [1][4][5][3]. This parameter controls the time the CLI waits for an MCP server to initialize and become ready [1][5]. - tool_timeout_sec: The default value is 60 seconds [1][4][5][3]. This parameter sets the maximum time allowed for the server to complete the execution of a requested tool [1][5]. These options are configured within the [mcp_servers.<name>] table in your ~/.codex/config.toml (or project-scoped .codex/config.toml) file [1][6][7]. They are optional and can be overridden if you have servers that require more time to start or tools that perform long-running operations [8][6][3].
Citations:
- 1: https://learn.chatgpt.com/docs/extend/mcp.md
- 2: https://learn.chatgpt.com/docs/extend/mcp
- 3: https://codex.danielvaughan.com/2026/05/19/codex-cli-mcp-server-management-cli-commands-oauth-streamable-http-production-patterns/
- 4: https://developers.openai.com/codex/mcp
- 5: https://github.com/byebye-code/codex/blob/main/docs/config.md
- 6: https://www.usecarly.com/blog/codex-mcp-servers/
- 7: https://codex.danielvaughan.com/2026/04/24/codex-cli-mcp-debugging-diagnostics-troubleshooting-guide/
- 8: https://dev.to/owen_fox/codex-cli-configtoml-deep-dive-every-setting-explained-5gpm
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "== file excerpts =="
sed -n '180,245p' docs/mcp/codex.mdx || true
echo "== search timeouts and mcp subcommands in docs and repo =="
rg -n "tool_timeout_sec|startup_timeout_sec|codex mcp (add|list|get|remove)|config\.toml|mcp_servers|timeout" -S . | head -200
echo "== tracked files around likely CLI/docs sources =="
git ls-files | rg -i "(^docs/|codex|mcp|config\.toml|README)" | head -200
echo "== version/config references =="
rg -n "defaults|default|version|released|current build|60 |900|refactron|tool_timeout_sec|startup_timeout_sec" docs README* . -g '!node_modules' -g '!dist' -g '!build' | head -300Repository: Refactron-ai/Refactron_Lib_TS
Length of output: 50387
Reconcile the timeout default claims.
Line 202 says the current build default is longer than the documented 60 seconds, but it does not give that value or release. Line 230 still tells users that a failure after “about a minute” is tool_timeout_sec, which can mislead readers on builds with a newer default. Tie the wording and diagnosis to a concrete documented default plus version, and the current default plus version.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/mcp/codex.mdx` around lines 200 - 206, Update the timeout guidance
around tool_timeout_sec and the failure diagnosis near the “about a minute”
wording to name the documented 60-second default with its release and the longer
current-build default with its release. Ensure both sections consistently
explain that timeout failures depend on the Codex version, while preserving the
recommendation to set tool_timeout_sec explicitly.
| If it shows Disconnected and the command is right, the folder is not trusted. A | ||
| stdio server only starts in a trusted folder, so tell me to run `gemini trust` | ||
| here. This is the failure that looks like a broken install and is not one. |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🌐 Web query:
Gemini CLI trusted folders stdio MCP server trust command
💡 Result:
In the Gemini CLI, the "trusted folders" and MCP (Model Context Protocol) server mechanisms work together as a security layer to prevent the execution of arbitrary or unverified code [1][2]. When a project folder is untrusted, the Gemini CLI operates in a restricted "safe mode," which explicitly disables the connection to all MCP servers [1][2]. Consequently, MCP servers will not appear in the /mcp list command and will remain in a "Disconnected" state [3][4]. To enable MCP servers in a specific folder, you must explicitly trust the workspace [3][2]. You can manage this using the following commands and settings: 1. Trusted Folders Command: To change the trust level of your current working directory, run the /permissions command within the Gemini CLI [1][2]. This will trigger an interactive dialog allowing you to "Trust folder" or "Trust parent folder," which enables MCP server connections for that scope [1][2]. 2. MCP Server Trust Setting: Within your MCP configuration file (typically found in your project settings), you can define a "trust" property for individual servers [5][3]. Setting "trust": true for a specific server bypasses all tool call confirmation prompts, but this should be used cautiously and only for servers you control [5][3]. Note that even if an individual server is marked as "trusted," it will still fail to connect if the underlying project folder itself is untrusted [4]. Security Context The "stdio" transport mechanism used by many MCP servers launches a local subprocess [6]. Because this process executes with the user's OS-level permissions, it represents a significant security boundary [6]. Research has identified that because these commands can be influenced by configuration files, they can present risks if an attacker is able to inject malicious configuration [7][8][9]. Always ensure that your MCP configurations—especially those using stdio—reference trusted, absolute paths and are not derived from untrusted user input [8]. If you are using VS Code instead of the standalone Gemini CLI, similar security principles apply through "Workspace Trust" [10]. You can manage or reset your MCP server trust decisions via the Command Palette by running "MCP: Reset Trust" [11][12].
Citations:
- 1: https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/trusted-folders.md
- 2: https://geminicli.com/docs/cli/trusted-folders/
- 3: https://github.com/google-gemini/gemini-cli/blob/HEAD/docs/tools/mcp-server.md
- 4: Skip MCP server connections in untrusted folders google-gemini/gemini-cli#7358
- 5: https://google-gemini.github.io/gemini-cli/docs/tools/mcp-server.html
- 6: https://www.anthropiccertifications.com/glossary/stdio-transport
- 7: https://dev.to/jfisher4002/mcp-stdio-the-command-runs-before-the-server-is-trusted-1m1j
- 8: https://labs.cloudsecurityalliance.org/research/csa-research-note-mcp-rce-design-vulnerability-20260423-csa/
- 9: https://www.ox.security/blog/mcp-supply-chain-advisory-rce-vulnerabilities-across-the-ai-ecosystem/
- 10: https://code.visualstudio.com/docs/editing/workspaces/workspace-trust
- 11: https://code.visualstudio.com/docs/agent-customization/mcp-servers
- 12: https://github.com/microsoft/vscode-docs/blob/main/docs/copilot/reference/mcp-configuration.md
🌐 Web query:
site:geminicli.com docs/cli/trusted-folders gemini trust /permissions gemini trust
💡 Result:
In the Gemini CLI, the Trusted Folders feature and trust settings are security mechanisms designed to control project permissions and prevent the execution of potentially malicious code [1]. Trusted Folders The Trusted Folders feature allows you to specify which project directories are trusted, enabling the CLI to load project-specific configurations [1]. - Functionality: When enabled, the CLI prompts you to "Trust folder," "Trust parent folder," or "Don’t trust" a directory [1]. If a folder is untrusted in a headless environment, the CLI will throw a FatalUntrustedWorkspaceError [1]. - Configuration: Trust settings are saved in ~/.gemini/trustedFolders.json by default [1]. You can modify the current folder's trust status by running the /permissions command within the CLI [1]. - Enabling: You can toggle this security feature via the security.folderTrust.enabled setting [2][3]. Tool and MCP Server Trust Separate from folder-level trust, the Gemini CLI manages permissions for tools and Model Context Protocol (MCP) servers [4][5]. - MCP Server Trust: When configuring an MCP server, you can set a trust flag. If set to true, this bypasses all confirmation dialogs for tool calls originating from that server [5]. - Enterprise Controls: Administrators can enforce global policies using an allowlist for MCP servers, which can mandate specific trust settings and override local user configurations [6]. - Safety Layers: For general tool execution (like shell commands), the CLI defaults to requesting explicit user approval for each action unless specific "Always allow" permissions are granted [4][7]. For detailed configuration, you can refer to the official Gemini CLI documentation on Trusted Folders [1] and Enterprise Admin Controls [6].
Citations:
- 1: https://geminicli.com/docs/cli/trusted-folders/
- 2: https://geminicli.com/docs/cli/settings/
- 3: https://geminicli.com/docs/reference/configuration/
- 4: https://geminicli.com/docs/reference/tools/
- 5: https://geminicli.com/docs/tools/mcp-server/
- 6: https://geminicli.com/docs/admin/enterprise-controls/
- 7: https://geminicli.com/docs/cli/tutorials/shell-commands/
🌐 Web query:
GitHub google-gemini/gemini-cli trusted-folders gemini trust command /permissions
💡 Result:
The Trusted Folders feature in the Gemini CLI is a security mechanism designed to control which workspaces are permitted to utilize the full capabilities of the CLI, preventing the execution of potentially malicious code from untrusted configurations [1][2]. Key aspects of this feature include: Enabling the Feature The Trusted Folders feature is disabled by default [1][3]. To activate it, you must add the following configuration to your user settings.json file [3][4]: { "security": { "folderTrust": { "enabled": true } } } How It Works Once enabled, the CLI checks the trust status of the current workspace directory before loading any project-specific configurations [1][2]. If a folder is untrusted, the CLI operates in a restricted safe mode [1][3]. Trust Management - Interactive Prompt: Upon entering a folder for the first time with this feature enabled, you will be prompted to either trust the current folder, trust the parent folder (which includes all subdirectories), or choose not to trust the folder [1][2]. - /permissions Command: To modify the trust level of your current directory at any time, run the /permissions command within the CLI [2][5]. This will trigger the interactive trust dialog [2][3]. - Storage: Trust decisions are stored in a central file, typically located at ~/.gemini/trustedFolders.json [1][4]. You can view all your configured trust rules by inspecting this file [1][2]. - Custom Paths: You can change the location of the trust file by setting the GEMINI_CLI_TRUSTED_FOLDERS_PATH environment variable to a specific absolute file path [1][4]. Trust Determination Hierarchy When determining the trust status of a workspace, the CLI uses the following priority [1][3]: 1. IDE Trust Signal: If you are using an IDE integration, the CLI first queries the IDE's trust status, which takes the highest priority [1][2]. 2. Local Trust File: If no IDE signal is available, the CLI falls back to checking the central ~/.gemini/trustedFolders.json file [1][3].
Citations:
- 1: https://github.com/google-gemini/gemini-cli/blob/main/docs/cli/trusted-folders.md
- 2: https://google-gemini.github.io/gemini-cli/docs/cli/trusted-folders.html
- 3: https://gemini-cli.xyz/docs/en/cli/trusted-folders
- 4: https://unpkg.com/@google/gemini-cli@0.47.0/bundle/docs/cli/trusted-folders.md
- 5: https://geminicli.com/docs/reference/commands/
Replace gemini trust with the supported trust workflow.
Gemini CLI does not document a gemini trust top-level command. If the folder is untrusted, tell the reader to run /permissions inside the Gemini CLI session, or reference the security.folderTrust.enabled setting and ~/.gemini/trustedFolders.json.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/mcp/gemini-cli.mdx` around lines 88 - 90, Update the troubleshooting
guidance in the disconnected stdio-server section to remove the unsupported
gemini trust command and direct readers to run /permissions within the Gemini
CLI session; alternatively reference the security.folderTrust.enabled setting or
~/.gemini/trustedFolders.json.
| One prompt, written for an MCP client that this documentation does not cover by name to read rather than you. It installs the | ||
| server, registers it, reloads, and proves the tool works with a real | ||
| verification. |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Rewrite the opening sentence.
The subject and the verb are separated by a long noun phrase, so the sentence does not parse on first read. Name the audience once, then describe the prompt.
✏️ Proposed wording
-One prompt, written for an MCP client that this documentation does not cover by name to read rather than you. It installs the
-server, registers it, reloads, and proves the tool works with a real
-verification.
+One prompt, written for your agent to read rather than you. Use it in any MCP
+client that this documentation does not cover by name. It installs the server,
+registers it, reloads, and proves the tool works with a real verification.📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| One prompt, written for an MCP client that this documentation does not cover by name to read rather than you. It installs the | |
| server, registers it, reloads, and proves the tool works with a real | |
| verification. | |
| One prompt, written for your agent to read rather than you. Use it in any MCP | |
| client that this documentation does not cover by name. It installs the server, | |
| registers it, reloads, and proves the tool works with a real verification. |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/mcp/other-clients.mdx` around lines 11 - 13, Rewrite the opening
sentence in the MCP client documentation so it names the intended audience once,
then clearly states what the prompt does; avoid separating the subject and verb
with the long descriptive noun phrase.
|
|
||
| ```bash | ||
| refactron --version | ||
| refactron-mcp --help 2>/dev/null || echo "refactron-mcp is on PATH" |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Do not start the server to check PATH.
Line 21 blocks when refactron-mcp exists because the server reads interactive stdin and has no help command. If the binary is missing, || still prints “refactron-mcp is on PATH.” Use command -v instead.
Proposed correction
refactron --version
-refactron-mcp --help 2>/dev/null || echo "refactron-mcp is on PATH"
+command -v refactron-mcp📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| refactron-mcp --help 2>/dev/null || echo "refactron-mcp is on PATH" | |
| command -v refactron-mcp |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/mcp/quickstart.mdx` at line 21, Replace the `refactron-mcp --help` PATH
check with a non-executing `command -v refactron-mcp` check, and ensure the
fallback message is printed only when the command is unavailable.
| ## Response | ||
|
|
||
| The tool returns the same report `verify-diff --json` prints, serialized as text content. A real `UNPROVEN` response: | ||
|
|
||
| ```json | ||
| { | ||
| "verdict": "UNPROVEN", | ||
| "reportVersion": 1, | ||
| "gates": { | ||
| "syntax": { "passed": true, "durationMs": 108 }, | ||
| "imports": { "passed": true, "durationMs": 45 }, | ||
| "tests": { "passed": true, "durationMs": 1423 } | ||
| }, | ||
| "changedFiles": ["calc.py"], | ||
| "testFilesChanged": [], | ||
| "coverage": { | ||
| "tool": "coverage.py", | ||
| "changedLinesCovered": false, | ||
| "uncovered": [{ "file": "calc.py", "line": 6 }], | ||
| "filesWithUncovered": 1, | ||
| "changedStatements": { "total": 1, "covered": 0 }, | ||
| "inertOnlyFiles": [] | ||
| }, | ||
| "reason": "Tests pass, but the changed code is not exercised by any test.", | ||
| "missingTests": [{ "file": "calc.py", "hint": "add a test exercising calc.py:6" }] | ||
| } | ||
| ``` |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
Show the MCP result envelope before the decoded report.
handleVerifyChange returns the report as JSON text in content[0].text. It does not return verdict at the top level. The error example already shows this envelope. These examples can make a client parse result.verdict and fail.
docs/mcp/tool-reference.mdx#L61-L87: Show thecontentenvelope, then label the existing object as decodedcontent[0].text.docs/mcp/quickstart.mdx#L102-L125: Label the example as the decoded report instead of a direct MCP response.docs/mcp/quickstart.mdx#L129-L131: State that the tool result contains JSON text whose decoded value hasverdictandreportVersion.
📍 Affects 2 files
docs/mcp/tool-reference.mdx#L61-L87(this comment)docs/mcp/quickstart.mdx#L102-L125docs/mcp/quickstart.mdx#L129-L131
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/mcp/tool-reference.mdx` around lines 61 - 87, Document the MCP result
envelope before the decoded report: in docs/mcp/tool-reference.mdx lines 61-87,
show content[0].text containing the existing report and label it as decoded
text; in docs/mcp/quickstart.mdx lines 102-125, label the example as the decoded
report rather than a direct response; and in lines 129-131, state that the tool
returns JSON text whose decoded value contains verdict and reportVersion.
| Merge into the existing object if the file already has servers, and validate | ||
| the JSON. Windsurf drops the whole file when it cannot parse it, so one stray | ||
| comma removes every server I have. |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Fix the pronoun in the prompt.
The prompt is written in the agent's voice and addresses the user as "me". Here the config belongs to the user, so "every server I have" assigns it to the agent. Use "yours".
✏️ Proposed wording
Merge into the existing object if the file already has servers, and validate
the JSON. Windsurf drops the whole file when it cannot parse it, so one stray
-comma removes every server I have.
+comma removes every server you have configured.📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| Merge into the existing object if the file already has servers, and validate | |
| the JSON. Windsurf drops the whole file when it cannot parse it, so one stray | |
| comma removes every server I have. | |
| Merge into the existing object if the file already has servers, and validate | |
| the JSON. Windsurf drops the whole file when it cannot parse it, so one stray | |
| comma removes every server you have configured. |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/mcp/windsurf.mdx` around lines 55 - 57, Update the prompt text in the
Windsurf documentation so the ownership pronoun in “every server I have” refers
to the user as “every server you have,” without changing the surrounding merge
or JSON-validation instructions.
| Cascade | ||
| Copilot | ||
| stdio | ||
| mcp |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/usr/bin/env bash
set -u
rg -n --hidden 'Vale\.Terms|BasedOnStyles|Vocab' \
-g '.vale.ini' -g '*.ini' -g '*.yml' -g '*.yaml' .
rg -n '\bMCP\b|\bmcp\b' docs --glob '*.md' --glob '*.mdx'Repository: Refactron-ai/Refactron_Lib_TS
Length of output: 50385
🏁 Script executed:
#!/usr/bin/env bash
set -u
printf '--- docs/.vale.ini ---\n'
cat -n docs/.vale.ini
printf '\n--- accept file line 56 context ---\n'
sed -n '49,62p' docs/styles/config/vocabularies/Mintlify/accept.txt | cat -n
printf '\n--- standalone pattern match for MCP/mcp acceptance ---\n'
python3 - <<'PY'
from pathlib import Path
accept = Path('docs/styles/config/vocabularies/Mintlify/accept.txt').read_text().splitlines()
terms = [line.strip() for line in accept if line.strip()]
check = ["MCP", "mcp", "Refactron MCP", "refactron-mcp"]
for term in terms:
import re
try:
pat = re.compile(term)
except Exception as exc:
print(f"{term!r}: invalid regex: {exc}")
continue
print(f"{term!r}: MCP={bool(pat.search('MCP'))}, mcp={bool(pat.search('mcp'))}, Refactron MCP={bool(pat.search('Refactron MCP'))}, refactron-mcp={bool(pat.search('refactron-mcp'))}")
PYRepository: Refactron-ai/Refactron_Lib_TS
Length of output: 5278
Add MCP to the vocabulary entries.
docs/.vale.ini enables this vocabulary, and the line mcp only accepts lowercase mcp. The docs use MCP as the canonical term, so add MCP too if lowercase form variants should not be required elsewhere.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@docs/styles/config/vocabularies/Mintlify/accept.txt` at line 56, Update the
Mintlify vocabulary entries in accept.txt to include the canonical uppercase MCP
alongside the existing lowercase mcp entry, allowing documentation to use MCP
without requiring lowercase variants.
Adds a dedicated MCP tab to the docs, with a page per client and a copy-only setup prompt on each.
What is here
A tab, not a buried group.
docs.jsonmoves fromnavigation.groupstonavigation.tabs: Documentation keeps the 36 existing pages, MCP gets 11 new ones. Claude Code and Claude Desktop sit in a nested, expandable Claude group, since they are one product with two surfaces.A page per leading client: Claude Code, Claude Desktop, Codex CLI, Cursor, GitHub Copilot in VS Code, Gemini CLI, Windsurf, plus one catch-all covering Zed and Cline. Each documents the config location, the exact block, how to verify the connection, and the failures specific to that client: VS Code's root key is
serversand notmcpServers, Codex takes TOML, Gemini counts a timeout in milliseconds where Cline counts seconds, a Gemini stdio server only starts in a trusted folder.A setup prompt per client, addressed to the agent. Rather than one prompt that switches on whichever client the agent believes it is, each page carries its own: that client's registration command, its own reload step, its own confirmation. The shared steps are generated from a single skeleton so eight copies cannot drift apart. Every prompt ends by proving the install with one real
verify_changecall and applying nothing.The two behavioural prompts, the standing verify-before-you-apply rule and the project rules file rule, live on the section index.
Two things worth reviewing
The prompts are copy-only. They are written for an agent to read, not a person, so a screen of scrolling bought nothing. Each renders as a single bar that copies on click.
The code body is collapsed with
max-height, deliberately notdisplay: noneorvisibility: hidden. Those two remove an element from the rendered text, so a copy handler readinginnerTextwould put an empty string on the clipboard. Verified in a browser: the collapsed body reports 0 height and the block still yields all 117 lines. Ifstyle.cssever fails to load, the block degrades to an ordinary visible code block that still copies.Mintlify's copy button ships a
backdrop-blurclass. Invisible behind a 26px icon, it blurred the label once stretched across the bar, so the filter is cleared.The client marks needed two passes. Mintlify renders a path-based
iconas animg, which loads the SVG as its own document and cannot inherit the page'scolor, so acurrentColorfill resolved to black and vanished on dark.The first fix put a
prefers-color-schemequery inside each SVG. That was wrong: it follows the operating system, while Mintlify's toggle sets a.darkclass onhtmland its CSS bundle contains noprefers-color-schemerules at all, so the query could contradict the toggle. The marks now ship one fixed fill and dark mode inverts them, which tracks the toggle in both directions.Checks
npm run format:checkpasses;docs.jsonandstyle.cssare prettier-cleanmint devin both themesNotes
No issue behind this one, so it did not go through
/ship. Happy to run/reviewbefore merge if you want the adversarial pass.A
git add docs/while staging the icon sweep picked up four untracked planning documents unrelated to this branch. They are untracked again and still on disk, so committing them stays a separate decision. Their content does remain in this branch's history, in607e27a; say the word if that is worth a rewrite rather than leaving it in a private repo's history.Summary by CodeRabbit