Skip to content

docs(mcp-proxy): add copy-and-run example workspace#360

Merged
christso merged 2 commits intomainfrom
docs/mcp-proxy-example
Apr 10, 2026
Merged

docs(mcp-proxy): add copy-and-run example workspace#360
christso merged 2 commits intomainfrom
docs/mcp-proxy-example

Conversation

@christso
Copy link
Copy Markdown
Contributor

Summary

The MCP Proxy guide explains how the feature works but never showed a complete, runnable example. This PR fixes that:

  • Adds examples/workspaces/mcp-proxy/ — a minimal workspace that installs the official deepwiki plugin (a real public HTTP MCP server at https://mcp.deepwiki.com/mcp) and proxies it to Codex via mcp-remote.
  • Adds a Quick Start section at the top of docs/guides/mcp-proxy.mdx with the full workspace.yaml users can copy directly, plus a link to the example directory.

The example was chosen so it works end-to-end with zero setup: DeepWiki is public, no-auth, and mcp-remote is fetched on demand via npx.

Test plan

Green E2E verification (using a fresh temp workspace):

bun run build

rm -rf /tmp/mcp-proxy-test && mkdir -p /tmp/mcp-proxy-test/.allagents
cp examples/workspaces/mcp-proxy/.allagents/workspace.yaml \
   /tmp/mcp-proxy-test/.allagents/workspace.yaml

cd /tmp/mcp-proxy-test
/path/to/worktree/dist/index.js update

cat .mcp.json            # Expect Claude to get { "deepwiki": { "type": "http", "url": "https://mcp.deepwiki.com/mcp" } }
cat .codex/config.toml   # Expect Codex to get command="npx", args=["mcp-remote", "https://mcp.deepwiki.com/mcp", "--http", ...]

Observed result:

  • .mcp.json → HTTP config preserved for Claude

  • .codex/config.toml[mcp_servers.deepwiki] with command = "npx" and args = ["mcp-remote", "https://mcp.deepwiki.com/mcp", "--http", "--static-oauth-client-metadata", "@~/.allagents/mcp-remote/mcp-metadata-settings.json"]

  • Build passes

  • Lint / Typecheck / Test pre-push hooks pass

  • Green E2E: example workspace produces correct HTTP+stdio split

  • CI green

The MCP Proxy guide lacked a working, copyable example. This adds:

- examples/workspaces/mcp-proxy/ — a minimal workspace that installs
  the deepwiki plugin (a real public HTTP MCP server at
  https://mcp.deepwiki.com/mcp) and proxies it to Codex via mcp-remote
- A Quick Start section in docs/guides/mcp-proxy.mdx with the full
  workspace.yaml users can copy directly and a link to the example

Verified end-to-end: running 'allagents update' against the example
produces an HTTP config for Claude and a stdio config (npx mcp-remote)
for Codex.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Apr 10, 2026

Deploying allagents with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0562fca
Status: ✅  Deploy successful!
Preview URL: https://a32cbe78.allagents.pages.dev
Branch Preview URL: https://docs-mcp-proxy-example.allagents.pages.dev

View logs

Scaffolding the example via 'allagents workspace init --from
EntityProcess/allagents/examples/workspaces/mcp-proxy' is simpler than
asking users to drop a workspace.yaml into a fresh directory, and it
runs the initial sync in one step.
@christso christso merged commit 389f8cd into main Apr 10, 2026
1 check passed
@christso christso deleted the docs/mcp-proxy-example branch April 10, 2026 06:12
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