Skip to content

fix(docs): repair the macOS onboarding path and carry Quick Start to a real tool call - #1219

Merged
Dumbris merged 4 commits into
mainfrom
fix/install-docs-and-quickstart
Sep 7, 2026
Merged

Dumbris merged 4 commits into
mainfrom
fix/install-docs-and-quickstart

Conversation

@Dumbris

@Dumbris Dumbris commented Sep 6, 2026 •

Copy link
Copy Markdown
Member

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-started and /configuration returned 404

The marketing site's two documentation cards point at exactly those 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. That config was dead.

Declared the link in sidebars.js instead, 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.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 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 sed that substitutes that placeholder runs only in release.yml's deploy-docs job. docs.yml — which deploys the same Cloudflare Pages project on every push to main — never substituted anything, so main's deploys shipped the raw placeholder to production.

docusaurus.config.js now builds the badge from DOCS_VERSION, and omits it entirely rather than shipping a placeholder. Both workflows supply the value: docs.yml derives it from the latest stable release tag via git describe (with fetch-depth: 0, since the default shallow checkout fetches no tags, and --exclude '*-*' so an RC tagged on main cannot badge the stable site), and release.yml's deploy-docs passes the tag it is releasing — without that, the next release would have overwritten the site with a badge-less build. The dead sed and its now-unused MCPPROXY_VERSION step 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 .pkg and a README.txt and nothing to drag. Rewritten to describe what actually happens, including the two things the audit flagged as unexplained:

  • 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), which defaults to the System keychain; the default mode is plain HTTP on 127.0.0.1:8080 and needs no certificate. Confirmed by reading scripts/postinstall.sh, which contains no security add-trusted-cert call.

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/mcpproxy rather than ~/.mcpproxy/, and that the ca.pem copy is conditional on postinstall.sh resolving 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-dir and --config, v0.65.0 built from this branch). The output is pasted from that run.

  • Deleted a 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. Points at mcpproxy status instead.
  • Repaired step 2. 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 uses mcpproxy status --web-url, which prints the URL with the key embedded; the UI then persists it.
  • Fixed 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.
  • New section 5, "Approve It Out of Quarantine". A remote server added through any path lands quarantined with 0 tools exposed. Covers the review surface, the scan report, both approve paths, and the reload needed before the Tools tab refills.
  • "Verify Connection" became "6. Make a Real Tool Call": retrieve_tools finds it, call_tool_read invokes it, activity list/show records it.
  • An undo block, because the audit persona wanted the reversal before making the change. Delete is explicitly called out as absent from the server page's Actions menu, because it is.
  • 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)

  • 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 health wording, so this text leans on CLI output and on labels identical on main.
  • Two output blocks are trimmed, not invented: security report omits the per-run Scan ID, timing and temp path; the retrieve_tools JSON is marked "(abbreviated)". Every line shown is byte-accurate.

Deliberately not documented

mcpproxy upstream disable and mcpproxy disconnect could not be executed safely: upstream enable|disable|add|remove|inspect silently ignore -c/--config (upstream_cmd.go:705 reads upstreamConfigPath, 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.

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's deploy-docs job does publish to the same mcpproxy-docs Pages project, so removing the __VERSION__ placeholder would have left the next release deploying a badge-less site — it now passes DOCS_VERSION, and the dead sed and its unused MCPPROXY_VERSION step are gone. RCs are tagged on main and match v[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 rule release.yml already 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-cert defaults 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.pem was promised unconditionally, but postinstall.sh:57-70 copies it only when it resolves a non-root $USER and the build bundled one, with no console-user fallback. "Launch mcpproxy from Applications" — postinstall.sh:151-181 has 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 omit trust_mode: auto and 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 build succeeds with onBrokenLinks: 'throw'. 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.

🤖 Generated with Claude Code

Dumbris and others added 3 commits September 6, 2026 12:50
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
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 6, 2026 •

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Sep 6, 2026 •

Copy link
Copy Markdown
Contributor

📦 Build Artifacts

Workflow Run: View Run
Branch: fix/install-docs-and-quickstart

Available Artifacts

  • archive-darwin-amd64 (29 MB)
  • archive-darwin-arm64 (26 MB)
  • archive-linux-amd64 (17 MB)
  • archive-linux-arm64 (16 MB)
  • archive-windows-amd64 (29 MB)
  • archive-windows-arm64 (26 MB)
  • frontend-dist-pr (0 MB)
  • installer-dmg-darwin-amd64 (23 MB)
  • installer-dmg-darwin-arm64 (21 MB)

How to Download

Option 1: GitHub Web UI (easiest)

  1. Go to the workflow run page linked above
  2. Scroll to the bottom "Artifacts" section
  3. Click on the artifact you want to download

Option 2: GitHub CLI

gh run download 34048776701 --repo smart-mcp-proxy/mcpproxy-go

Note: Artifacts expire in 14 days.

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-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Dumbris
Dumbris merged commit 519c1d2 into main Sep 7, 2026
41 checks passed
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