Skip to content

docs(mcp): describe the built-in proxy, not npx mcp-remote - #448

Merged
christso merged 2 commits into
mainfrom
docs/mcp-proxy-stale-npx-reference
Aug 4, 2026
Merged

docs(mcp): describe the built-in proxy, not npx mcp-remote#448
christso merged 2 commits into
mainfrom
docs/mcp-proxy-stale-npx-reference

Conversation

@christso

@christso christso commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

The MCP proxy guide, its example workspace, and a configuration reference all still described the pre-#367 design that shelled out to the third-party npx mcp-remote package. This is stale — since #367, allagents mcp proxy <url> has been a from-scratch, built-in bridge with no external runtime dependency. Discovered this while answering a question about connecting to a real OAuth-protected MCP server, prompted by these exact docs.

What changed

  • docs/.../guides/mcp-proxy.mdx — replaced every mcp-remote reference with the actual built-in proxy: no npx/Node.js requirement, OAuth client registration + tokens cached per-server under ~/.allagents/oauth-proxy/<hash>/ (not ~/.mcp-auth/), removed the now-fictional "Metadata File" section (~/.allagents/mcp-remote/mcp-metadata-settings.json doesn't exist in the current implementation), added a new "OAuth & Token Cache" section describing what actually happens.
  • docs/.../reference/configuration.mdx — one sentence fix, same issue.
  • examples/workspaces/mcp-proxy/README.md and its .allagents/workspace.yaml comments — updated the documented .codex/config.toml output to match reality.

Verification

Ran allagents update against the example workspace and confirmed the generated .codex/config.toml matches what the docs now show:

[mcp_servers.deepwiki]
command = "allagents"
args = ["mcp", "proxy", "https://mcp.deepwiki.com/mcp"]

bun test (1362 pass), bun run typecheck, bun run lint all clean. Docs/example-only change — no src/ code touched.

The MCP proxy guide, its example workspace, and a configuration
reference all still described the pre-#367 design that shelled out to
the third-party `npx mcp-remote` package, with OAuth state cached
under ~/.mcp-auth/ and a ~/.allagents/mcp-remote/mcp-metadata-settings.json
metadata file. None of that matches the current implementation:
`allagents mcp proxy <url>` is a from-scratch, built-in bridge (no npx,
no Node.js requirement beyond allagents itself), and its OAuth client
registration/tokens are cached per-server under
~/.allagents/oauth-proxy/<hash>/ (see src/core/mcp-http-stdio-proxy.ts).

Verified the example workspace's documented transform output against
the actual generated `.codex/config.toml` by running `allagents update`
against it.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Aug 3, 2026

Copy link
Copy Markdown

Deploying allagents with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8e8abf6
Status: ✅  Deploy successful!
Preview URL: https://8021b325.allagents.pages.dev
Branch Preview URL: https://docs-mcp-proxy-stale-npx-ref.allagents.pages.dev

View logs

The proxy feature writes a bare `command: "allagents"` into generated
client configs (.mcp.json, .codex/config.toml, etc.), which the MCP
client spawns directly later -- not through npx. Someone who only ever
runs `npx allagents` for ad hoc commands would hit a "command not
found" failure the first time a proxied server actually starts,
without any indication why. Cross-referenced from the general
installation guide's npx section too.

Verified: a bare `allagents` on PATH only resolves when actually
installed (npm/bun global install symlinks it), confirmed on this
machine's real global install at /usr/lib/node_modules/allagents.
@christso
christso merged commit 0c3fbf9 into main Aug 4, 2026
5 checks passed
@christso
christso deleted the docs/mcp-proxy-stale-npx-reference branch August 4, 2026 00:27
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.

1 participant