Skip to content

docs(mcp): dedicated MCP tab with per-client copy-only setup prompts - #94

Merged
omsherikar merged 12 commits into
mainfrom
docs/mcp-tab
Aug 4, 2026
Merged

omsherikar merged 12 commits into
mainfrom
docs/mcp-tab

Conversation

@omsherikar

@omsherikar omsherikar commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

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.json moves from navigation.groups to navigation.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 servers and not mcpServers, 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_change call 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 not display: none or visibility: hidden. Those two remove an element from the rendered text, so a copy handler reading innerText would 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. If style.css ever fails to load, the block degrades to an ordinary visible code block that still copies.

Mintlify's copy button ships a backdrop-blur class. 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 icon as an img, which loads the SVG as its own document and cannot inherit the page's color, so a currentColor fill resolved to black and vanished on dark.

The first fix put a prefers-color-scheme query inside each SVG. That was wrong: it follows the operating system, while Mintlify's toggle sets a .dark class on html and its CSS bundle contains no prefers-color-scheme rules 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

  • 47 nav entries resolve, no broken internal links, 23 path-based icon references resolve
  • npm run format:check passes; docs.json and style.css are prettier-clean
  • Rendered against a local mint dev in both themes

Notes

No issue behind this one, so it did not go through /ship. Happy to run /review before 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, in 607e27a; say the word if that is worth a rewrite rather than leaving it in a private repo's history.

Summary by CodeRabbit

  • Documentation
    • Added a dedicated MCP documentation section with installation, quickstart, tool reference, troubleshooting, and supported-client setup guides.
    • Added configuration and verification guidance for Claude, Codex, Cursor, Gemini, VS Code, Windsurf, and other MCP clients.
    • Improved documentation navigation with separate Documentation and MCP tabs.
    • Updated links to the new MCP pages and refreshed MCP-related overview content.
  • Style
    • Added dark-mode client icon support and improved copyable prompt styling.

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.
Copilot AI lite review requested due to automatic review settings August 4, 2026 06:38
@mintlify

mintlify Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
refactron 🟢 Ready View Preview Aug 4, 2026, 6:39 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@coderabbitai

coderabbitai Bot commented Aug 4, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The 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.

Changes

MCP documentation

Layer / File(s) Summary
MCP navigation and link migration
docs/docs.json, docs/verification/mcp-server.mdx, docs/overview.mdx, docs/quickstart.mdx, docs/concepts/safety-model.mdx, docs/faq.mdx, docs/verification/verify-diff.mdx
Adds Documentation and MCP navigation tabs. Converts the existing MCP page into a navigation hub. Updates MCP links and icons.
MCP overview, quickstart, and tool contract
docs/mcp/index.mdx, docs/mcp/quickstart.mdx, docs/mcp/tool-reference.mdx
Documents installation, protocol checks, client registration, verification responses, verdicts, coverage, and the verify_change contract.
Claude and Codex setup workflows
docs/mcp/claude-code.mdx, docs/mcp/claude-desktop.mdx, docs/mcp/codex.mdx
Adds setup, configuration, connection checks, verification probes, troubleshooting, timeout guidance, and removal instructions.
Additional client setup workflows
docs/mcp/cursor.mdx, docs/mcp/gemini-cli.mdx, docs/mcp/vscode.mdx, docs/mcp/windsurf.mdx, docs/mcp/other-clients.mdx
Adds client-specific configuration, reload, tool discovery, verification, reporting, and troubleshooting guidance.
Documentation presentation support
docs/style.css, docs/styles/config/vocabularies/Mintlify/accept.txt
Adds client icon dark-mode styling, copy-only agent prompt styling, prompt labels, expanded copy-button areas, and accepted MCP-related vocabulary.

Estimated code review effort: 4 (Complex) | ~45 minutes

Possibly related PRs

Suggested reviewers: copilot

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main changes: a dedicated MCP tab and per-client copy-only setup prompts.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/mcp-tab

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

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

docs/concepts/safety-model.mdx

Parsing error: ESLint was configured to run on <tsconfigRootDir>/docs/concepts/safety-model.mdx using parserOptions.project: /tsconfig.eslint.json
The extension for the file (.mdx) is non-standard. You should add parserOptions.extraFileExtensions to your config.

docs/faq.mdx

Parsing error: ESLint was configured to run on <tsconfigRootDir>/docs/faq.mdx using parserOptions.project: /tsconfig.eslint.json
The extension for the file (.mdx) is non-standard. You should add parserOptions.extraFileExtensions to your config.

docs/mcp/claude-code.mdx

Parsing error: ESLint was configured to run on <tsconfigRootDir>/docs/mcp/claude-code.mdx using parserOptions.project: /tsconfig.eslint.json
The extension for the file (.mdx) is non-standard. You should add parserOptions.extraFileExtensions to your config.

  • 15 others

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.json navigation from groups to 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.css to 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.

Comment thread docs/mcp/quickstart.mdx

```bash
refactron --version
refactron-mcp --help 2>/dev/null || echo "refactron-mcp is on PATH"
@omsherikar
omsherikar merged commit 63118a3 into main Aug 4, 2026
16 of 17 checks passed

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 12

🧹 Nitpick comments (1)
docs/mcp/claude-code.mdx (1)

17-134: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Extract 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.0 also 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

📥 Commits

Reviewing files that changed from the base of the PR and between d5c8df6 and 16b95c0.

⛔ Files ignored due to path filters (7)
  • docs/assets/clients/claude.svg is excluded by !**/*.svg
  • docs/assets/clients/cursor.svg is excluded by !**/*.svg
  • docs/assets/clients/githubcopilot.svg is excluded by !**/*.svg
  • docs/assets/clients/googlegemini.svg is excluded by !**/*.svg
  • docs/assets/clients/mcp.svg is excluded by !**/*.svg
  • docs/assets/clients/openai.svg is excluded by !**/*.svg
  • docs/assets/clients/windsurf.svg is excluded by !**/*.svg
📒 Files selected for processing (20)
  • docs/concepts/safety-model.mdx
  • docs/docs.json
  • docs/faq.mdx
  • docs/mcp/claude-code.mdx
  • docs/mcp/claude-desktop.mdx
  • docs/mcp/codex.mdx
  • docs/mcp/cursor.mdx
  • docs/mcp/gemini-cli.mdx
  • docs/mcp/index.mdx
  • docs/mcp/other-clients.mdx
  • docs/mcp/quickstart.mdx
  • docs/mcp/tool-reference.mdx
  • docs/mcp/vscode.mdx
  • docs/mcp/windsurf.mdx
  • docs/overview.mdx
  • docs/quickstart.mdx
  • docs/style.css
  • docs/styles/config/vocabularies/Mintlify/accept.txt
  • docs/verification/mcp-server.mdx
  • docs/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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ 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' src

Repository: 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 docs

Repository: 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 docs

Repository: 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#L22
  • docs/mcp/index.mdx#L9
  • docs/mcp/index.mdx#L239
  • docs/mcp/quickstart.mdx#L132
📍 Affects 3 files
  • docs/concepts/safety-model.mdx#L22-L22 (this comment)
  • docs/mcp/index.mdx#L9-L9
  • docs/mcp/index.mdx#L239-L239
  • docs/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.

Comment thread docs/mcp/claude-code.mdx
Comment on lines +15 to +16
<div className="agent-prompt">

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 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])
PY

Repository: 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.

Comment on lines +23 to +45
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`.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 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.

Comment thread docs/mcp/codex.mdx
Comment on lines +200 to +206
## 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 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:


🏁 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 -300

Repository: 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.

Comment thread docs/mcp/gemini-cli.mdx
Comment on lines +88 to +90
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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 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:


🌐 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:


🌐 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:


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.

Comment on lines +11 to +13
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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 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.

Suggested change
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.

Comment thread docs/mcp/quickstart.mdx

```bash
refactron --version
refactron-mcp --help 2>/dev/null || echo "refactron-mcp is on PATH"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 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.

Suggested change
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.

Comment on lines +61 to +87
## 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" }]
}
```

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🗄️ 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 the content envelope, then label the existing object as decoded content[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 has verdict and reportVersion.
📍 Affects 2 files
  • docs/mcp/tool-reference.mdx#L61-L87 (this comment)
  • docs/mcp/quickstart.mdx#L102-L125
  • docs/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.

Comment thread docs/mcp/windsurf.mdx
Comment on lines +55 to +57
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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📐 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.

Suggested change
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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 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'))}")
PY

Repository: 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.

omsherikar added a commit that referenced this pull request Aug 6, 2026
PR #94 and issue #96 shipped between v0.3.0 and this tag but had no
changelog entry: 29 docs files changed, including nine new per-client MCP
setup pages. A release note that omits what a user will visibly get is
incomplete.

This branch was successfully deployed

1 active deployment
staging - docs — 16b95c0a Deployed Aug 4, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants