Repository navigation
fix(docs): repair the macOS onboarding path and carry Quick Start to a real tool call - #1219
Merged
Merged
Conversation
A first-time-developer UX audit (2026-09-05, v0.65.0) hit three onboarding
failures in a row. All three reproduce on the live site; each has a distinct
cause.
1. /getting-started and /configuration 404. The marketing site's two
documentation cards point at exactly these URLs. Both categories already
declared `link: {type: 'generated-index'}` in docs/*/_category_.json — but
website/sidebars.js is hand-authored, and Docusaurus reads _category_.json
only for AUTOGENERATED sidebars, so that config was dead. Declaring the
link in sidebars.js generates both index pages.
2. Quick Start leaked its own source. docs/getting-started/quick-start.md is
the only doc using `import Tabs from '@theme/Tabs'`, and the site sets
`format: 'detect'`, under which a .md file is parsed as plain CommonMark —
so the imports rendered as body text and the platform/client blocks ran
together with no tabs. Renamed to .mdx; the page now renders two real tab
groups.
3. The navbar showed the literal string "v__VERSION__". The `sed` that
substitutes that placeholder lives in release.yml, which does not deploy
this site — docs.yml does, and it never substituted anything. The config
now reads DOCS_VERSION and omits the badge entirely rather than shipping a
placeholder; docs.yml derives the value from the latest release tag, with
fetch-depth: 0 so the tags are actually present.
Separately, the macOS installation section told users to drag MCPProxy into
Applications. The published artifact is mcpproxy-<v>-darwin-<arch>-installer
.dmg, which contains a .pkg and a README.txt and nothing to drag. Rewritten to
describe what actually happens, including the two things the audit flagged as
unexplained and unverified:
- the package installs for all users, so the admin prompt is expected;
- it copies a CA certificate to disk but does NOT alter system trust. Trust is
only modified if the user later runs `mcpproxy trust-cert` themselves
(cmd/mcpproxy/trust_cert_cmd.go); the default mode is plain HTTP and needs
no certificate. Confirmed by reading scripts/postinstall.sh, which contains
no `security add-trusted-cert` call.
Added the installed-paths table and an uninstall section, since neither
existed.
Verified against a real build (`DOCS_VERSION=v0.65.0 npm run build`):
build/getting-started/index.html and build/configuration/index.html are now
emitted; the rendered Quick Start contains zero `import Tabs` occurrences and
two `role="tablist"` groups; index.html carries `v0.65.0` and zero
`v__VERSION__`. The badge fallback was exercised at DOCS_VERSION='' and
DOCS_VERSION='__VERSION__' — both hide the badge rather than rendering junk.
Co-Authored-By: Claude Opus 5 <[email protected]>
Audit F05: the guide ended at "ask it to list available tools", so a reader who followed it exactly finished with a configured endpoint and had never seen the product do anything. It never mentioned quarantine — the gate that makes the whole path fail closed — and never invoked an upstream tool. Every command and label below was executed against an isolated instance (port 18631, scratch --data-dir and --config, v0.65.0 built from this branch) and the output is pasted from that run. - Delete the fabricated startup banner. "MCPProxy server started" and "Web UI available at" appear nowhere in the Go source (zero grep hits); the real process emits zap console lines. Point at `mcpproxy status` instead. - Repair step 2. `GET /ui/` returns 200 without a key but the REST API behind it does not (`/api/v1/servers` -> 401 "Invalid or missing API key"), so the terminal reader stalled here with a dashboard that failed every panel. Use `mcpproxy status --web-url`, which prints the URL with the key embedded. The UI then persists it (services/api.ts:75, localStorage). - Fix the two wrong lines in "Via Web UI". The submit button is "Add Server", not "Save" (AddServerModal.vue:285), and the URL field does not exist until Server Type is switched to HTTP/HTTPS (Remote) — a reader on the old text never found it. Trust Mode's default is Manual, quoted from the UI. - Add "5. Approve It Out of Quarantine". A remote server added through any path lands quarantined (QuarantineDefaultForServer + EffectiveTrustMode: anything but trust_mode auto quarantines, empty resolves to manual), with 0 tools exposed. Covers the review surface, the scan report, both approve paths, and the reload needed before the Tools tab refills. - Rewrite "Verify Connection" as "6. Make a Real Tool Call": retrieve_tools finds the tool, call_tool_read invokes it, activity list/show records it. - Add an undo block. The audit persona wanted the reversal before making the change. Delete is deliberately called out as absent from the server page's Actions menu, because it is. - docs/features/security-quarantine.md: the new section links here, and its "Click Quarantine in the navigation" step named a sidebar item that does not exist. Quarantined servers are a filter tab on the Servers page. Assumptions made rather than stopping, per the zero-interruption rule: - Section order is unchanged. Connecting the client (3) before adding a server (4) still means the reader's agent sees an empty proxy at that moment, but reordering is a product decision, not a doc bug, and would break the #3-connect-your-ai-client anchor referenced from the prerequisites. - UI micro-copy is quoted sparingly and only where stable. The parallel branch integration/webui-ux-fixes is actively rewriting the quarantined-tools empty state and the health wording, so this text leans on CLI output and on labels that are identical on main. - Two output blocks are trimmed, not invented: `security report` omits the per-run Scan ID, timing and temp Path, and the retrieve_tools JSON is marked "(abbreviated)". Every line shown is byte-accurate. Not documented because it could not be executed safely: `mcpproxy upstream disable` and `mcpproxy disconnect`. `upstream enable|disable|add|remove|inspect` silently ignore -c/--config (upstream_cmd.go:705 reads upstreamConfigPath, which is registered only on the list and logs subcommands), so running them would have targeted the machine's real daemon rather than the isolated instance. The undo block uses the Web UI paths that were actually exercised. That CLI flag defect needs its own issue and tests; it is not smuggled into this diff. Verified: website build (prepare-docs.sh + DOCS_VERSION=v0.65.0 npm run build) succeeds with onBrokenLinks:'throw'; rendered HTML keeps 2 real tablists, leaks no imports, and contains none of the removed strings. Co-Authored-By: Claude Opus 5 <[email protected]>
…adge
Cross-model review (opencode, gpt-6-astra) found three defects in the version
badge plumbing. All three are genuine.
1. The premise was half wrong, and it cost the release deploy its badge.
release.yml DOES deploy this site: its deploy-docs job runs
`pages deploy website/build --project-name=mcpproxy-docs` on every stable
tag, the same Cloudflare project docs.yml publishes from main. What is true
is that docs.yml never substituted anything, which is why main's deploys
shipped the literal "v__VERSION__". But removing the placeholder without
telling release.yml about DOCS_VERSION left its `sed` matching nothing, so
the next release would have overwritten the site with a badge-less build.
deploy-docs now passes DOCS_VERSION=${{ github.ref_name }} and the dead sed
and its now-unused MCPPROXY_VERSION step are gone. The comments in both
workflows and in the config said "release.yml does not deploy this site";
they now say what actually happens.
2. An RC could badge the stable site. RCs are tagged on main (v0.65.0-rc.1),
they match `--match 'v[0-9]*'`, and `git describe` picks the nearest tag
reachable from HEAD — so a docs deploy from main between an RC tag and the
stable tag would have labelled docs.mcpproxy.app with the RC. Added
`--exclude '*-*'`, which is the same rule release.yml's deploy-docs job
already applies via `!contains(github.ref_name, '-')`.
3. The badge interpolated an unvalidated string into raw HTML. The only guard
was `!includes('__')`, and the value comes from a git tag, which may hold
almost any byte: `git check-ref-format 'refs/tags/v1<img/src=x/onerror=
alert(1)>'` succeeds, and that value rendered its <img> unescaped inside
the navbar. Exploiting it needs control of a tag or the build env, so this
is hardening rather than a live hole — but validating is as cheap as
escaping and stricter. Only /^v[0-9]+(\.[0-9]+){0,3}$/ now reaches the
navbar; anything else hides the badge, which also subsumes the old `__`
check and gives the RC rule a second line of defence.
Verified:
node, over the normalize+validate expression —
v0.65.0 -> v0.65.0 | 0.65.0 -> v0.65.0 | v0.65 -> v0.65
"" / __VERSION__ / v__VERSION__ / v0.65.0-rc.1 / vX /
v1<img/src=x/onerror=alert(1)> -> badge hidden
DOCS_VERSION=v0.65.0 npm run build (website) -> SUCCESS, onBrokenLinks:'throw'
build/index.html carries badge--primary">v0.65.0 and zero __VERSION__
build/{getting-started,configuration,cli,api}/index.html all emitted
python3 yaml.safe_load on both edited workflows -> parses
Deploying mcpproxy-docs with
|
| Latest commit: |
4ea874d
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d002e1db.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://fix-install-docs-and-quickst.mcpproxy-docs.pages.dev |
Contributor
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 34048776701 --repo smart-mcp-proxy/mcpproxy-go
|
Round-2 cross-model review (opencode, gpt-6-astra) checked the rewritten macOS section against scripts/postinstall.sh, cmd/mcpproxy/trust_cert_cmd.go and internal/logs/paths.go. Five claims did not survive; all five are fixed. 1. Wrong keychain, twice. `mcpproxy trust-cert` defaults to --keychain=system (trust_cert_cmd.go:51) and installs into /Library/Keychains/System.keychain (:158-170). The page said the login keychain, and the uninstall step sent the reader to Keychain Access -> login -> Certificates, where the certificate is not — so following the uninstall left a trusted CA behind. Both now say System, and name the --keychain=login opt-out. 2. Wrong log location. The paths table folded logs into ~/.mcpproxy/. On macOS they go to ~/Library/Logs/mcpproxy (internal/logs/paths.go:46-53 via cmd/mcpproxy/logdir.go), so the uninstall commands left that directory behind too. Split into its own row and added to the rm. 3. ca.pem promised unconditionally. postinstall.sh:57-70 copies it only when it can resolve a non-root $USER AND the build bundled a certificate — and unlike the app-launch block further down, it has no stat -f%Su /dev/console fallback. The row is now qualified, with the reason it does not matter (trust-cert generates one when absent). This is the same conditional that kept the PKG welcome pane from naming the path in the sibling installer change. 4. "Launch mcpproxy from Applications" — postinstall.sh:151-181 has already launched it via `open -a` by the time the installer finishes. Step 4 now says so, with Applications as the fallback. 5. No minimum OS. The page distinguished Apple Silicon from Intel but never mentioned that the app requires macOS 13 (Info.plist LSMinimumSystemVersion 13.0), so a reader on an older macOS could pick the right architecture and install something that cannot launch. Also added a quit step before the uninstall commands: removing the bundle does not stop a running process, and the tray is what shuts the managed core down. NOT fixed — out of scope, reported separately: the reviewer also flagged docs/features/security-quarantine.md:41-59 (the config-load admission conditions omit trust_mode: auto and the globally-disabled case, and the "scan is the human review step" wording predates automatic baseline scanning). Those lines are pre-existing and untouched by this PR; the only edit here is the navigation fix at :198. Verified: DOCS_VERSION=v0.65.0 npm run build succeeds with onBrokenLinks:'throw'; the rendered installation page carries the Ventura requirement.
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A first-time-developer UX audit (2026-09-05, v0.65.0) hit three onboarding failures in a row on the live docs site, plus a macOS install section describing an artifact that no longer exists and a Quick Start that never showed the product doing anything. Docs and docs-deploy only — no Go, no frontend.
1.
/getting-startedand/configurationreturned 404The marketing site's two documentation cards point at exactly those URLs. Both categories already declared
link: {type: 'generated-index'}indocs/*/_category_.json— butwebsite/sidebars.jsis hand-authored, and Docusaurus reads_category_.jsononly for AUTOGENERATED sidebars. That config was dead.Declared the link in
sidebars.jsinstead, for all seven top-level categories (/getting-started,/configuration,/cli,/api,/web-ui,/features,/development), so every category URL resolves rather than only the two that were reported.2. Quick Start rendered its own imports as body text
docs/getting-started/quick-start.mdis the only doc usingimport Tabs from '@theme/Tabs', and the site setsformat: 'detect', under which a.mdfile is parsed as plain CommonMark. So the import lines rendered as visible text and the platform/client blocks ran together with no tabs at all.Renamed to
.mdx. The page now renders two real tab groups.3. The navbar showed the literal string
v__VERSION__The
sedthat substitutes that placeholder runs only inrelease.yml'sdeploy-docsjob.docs.yml— which deploys the same Cloudflare Pages project on every push tomain— never substituted anything, somain's deploys shipped the raw placeholder to production.docusaurus.config.jsnow builds the badge fromDOCS_VERSION, and omits it entirely rather than shipping a placeholder. Both workflows supply the value:docs.ymlderives it from the latest stable release tag viagit describe(withfetch-depth: 0, since the default shallow checkout fetches no tags, and--exclude '*-*'so an RC tagged onmaincannot badge the stable site), andrelease.yml'sdeploy-docspasses the tag it is releasing — without that, the next release would have overwritten the site with a badge-less build. The deadsedand its now-unusedMCPPROXY_VERSIONstep are gone.The value reaches a raw-HTML navbar item and originates in a git tag, which may contain almost any byte, so it is validated rather than escaped: only
/^v[0-9]+(\.[0-9]+){0,3}$/renders, and anything else hides the badge.4. The macOS install section told users to drag an app that isn't there
The published artifact is
mcpproxy-<v>-darwin-<arch>-installer.dmg, which contains a.pkgand aREADME.txtand nothing to drag. Rewritten to describe what actually happens, including the two things the audit flagged as unexplained:mcpproxy trust-certthemselves (cmd/mcpproxy/trust_cert_cmd.go), which defaults to the System keychain; the default mode is plain HTTP on127.0.0.1:8080and needs no certificate. Confirmed by readingscripts/postinstall.sh, which contains nosecurity add-trusted-certcall.Added an installed-paths table and an uninstall section, since neither existed. The page also states the macOS 13 minimum, that the installer launches the app itself, that logs live in
~/Library/Logs/mcpproxyrather than~/.mcpproxy/, and that theca.pemcopy is conditional onpostinstall.shresolving a non-root$USER— all five corrected in review after being checked against the scripts rather than assumed.5. Quick Start ended before the product did anything
The guide stopped at "ask it to list available tools", so a reader who followed it exactly finished with a configured endpoint having never seen a tool run. It never mentioned quarantine — the gate that makes the whole path fail closed — and never invoked an upstream tool.
Every command, label and output block below was executed against an isolated instance (port 18631, scratch
--data-dirand--config, v0.65.0 built from this branch). The output is pasted from that run.MCPProxy server startedandWeb UI available atappear nowhere in the Go source (zero grep hits); the real process emits zap console lines. Points atmcpproxy statusinstead.GET /ui/returns 200 without a key but the REST API behind it does not (/api/v1/servers→ 401), so a terminal reader stalled with a dashboard failing every panel. Now usesmcpproxy status --web-url, which prints the URL with the key embedded; the UI then persists it.AddServerModal.vue:285), and the URL field does not exist until Server Type is switched to HTTP/HTTPS (Remote) — a reader on the old text never found it.retrieve_toolsfinds it,call_tool_readinvokes it,activity list/showrecords it.docs/features/security-quarantine.md: its "Click Quarantine in the navigation" step named a sidebar item that does not exist — quarantined servers are a filter tab on the Servers page.Assumptions made rather than stopping (zero-interruption rule)
#3-connect-your-ai-clientanchor referenced from the prerequisites.integration/webui-ux-fixesis actively rewriting the quarantined-tools empty state and health wording, so this text leans on CLI output and on labels identical onmain.security reportomits the per-run Scan ID, timing and temp path; theretrieve_toolsJSON is marked "(abbreviated)". Every line shown is byte-accurate.Deliberately not documented
mcpproxy upstream disableandmcpproxy disconnectcould not be executed safely:upstream enable|disable|add|remove|inspectsilently ignore-c/--config(upstream_cmd.go:705readsupstreamConfigPath, registered only on thelistandlogssubcommands), so running them would have targeted the machine's real daemon rather than the isolated instance. The undo block uses the Web UI paths that were actually exercised. That CLI flag defect needs its own issue and tests; it is not smuggled into this diff.Cross-model review (opencode, gpt-6-astra)
Reviewed in two parts — the build/deploy plumbing, then every factual claim in the prose against the Go and shell sources. Eight findings accepted:
Version badge (3):
release.yml'sdeploy-docsjob does publish to the samemcpproxy-docsPages project, so removing the__VERSION__placeholder would have left the next release deploying a badge-less site — it now passesDOCS_VERSION, and the deadsedand its unusedMCPPROXY_VERSIONstep are gone. RCs are tagged onmainand matchv[0-9]*, so a docs deploy between an RC tag and the stable tag would have badged the stable site with the RC —--exclude '*-*'now applies the same rulerelease.ymlalready uses. And the value reaches a raw-HTML navbar item from a git tag, which may hold almost any byte (git check-ref-format 'refs/tags/v1<img/src=x/onerror=alert(1)>'succeeds), so it is validated to/^v[0-9]+(\.[0-9]+){0,3}$/rather than escaped.macOS install page (5):
mcpproxy trust-certdefaults to--keychain=system, so the page named the wrong keychain twice — including in the uninstall step, which therefore left a trusted CA behind. Logs live in~/Library/Logs/mcpproxy, not~/.mcpproxy/, so the uninstall left those too.ca.pemwas promised unconditionally, butpostinstall.sh:57-70copies it only when it resolves a non-root$USERand the build bundled one, with no console-user fallback. "Launch mcpproxy from Applications" —postinstall.sh:151-181has already launched it. And the page distinguished Apple Silicon from Intel but never mentioned the macOS 13 minimum, so a reader could pick the right architecture and install something that cannot launch. A quit step was added before the uninstall commands, since deleting the bundle does not stop a running process.The Quick Start's own commands, output blocks, UI labels, quarantine claims and links were checked against
cmd/mcpproxy,internal/httpapi, the Vue sources and the sidebar, and no defects were found.Reported separately, not fixed here (pre-existing, outside this diff):
docs/features/security-quarantine.md:41-59— the config-load admission conditions omittrust_mode: autoand the globally-disabled case, and the "the scan is what the human review step performs" wording predates automatic baseline scanning. The only edit this PR makes to that file is the navigation fix at:198.Verification
prepare-docs.sh+DOCS_VERSION=v0.65.0 npm run buildsucceeds withonBrokenLinks: 'throw'.build/getting-started/index.htmlandbuild/configuration/index.htmlare now emitted; the rendered Quick Start contains zeroimport Tabsoccurrences and tworole="tablist"groups;index.htmlcarriesv0.65.0and zerov__VERSION__. The badge fallback was exercised atDOCS_VERSION=''andDOCS_VERSION='__VERSION__'— both hide the badge rather than rendering junk.🤖 Generated with Claude Code