Title: feat(mcp): call_remote_pod tool — bot-to-bot federation primitive · Issue #495 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: feat(mcp): call_remote_pod tool — bot-to-bot federation primitive · Issue #495 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: feat(mcp): call_remote_pod tool — bot-to-bot federation primitive · Issue #495 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Follow-up to #490 (the MCP capstone in v0.0.200). Why The headline pitch of #490 — bot-to-bot federation falls out of MCP+WAC+DID — is currently only true in principle. Today, an agent talking to two pods has to register both as separate...
Open Graph Description: Follow-up to #490 (the MCP capstone in v0.0.200). Why The headline pitch of #490 — bot-to-bot federation falls out of MCP+WAC+DID — is currently only true in principle. Today, an agent talking to t...
X Description: Follow-up to #490 (the MCP capstone in v0.0.200). Why The headline pitch of #490 — bot-to-bot federation falls out of MCP+WAC+DID — is currently only true in principle. Today, an agent talking to t...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/495
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat(mcp): call_remote_pod tool — bot-to-bot federation primitive","articleBody":"Follow-up to #490 (the MCP capstone in v0.0.200).\n\n## Why\n\nThe headline pitch of #490 — *bot-to-bot federation falls out of MCP+WAC+DID* — is currently only true *in principle*. Today, an agent talking to two pods has to register both as separate MCP servers in its client. That works but isn't federation; it's just client-side aggregation.\n\nA real federation primitive lets a bot on pod A invoke an MCP tool on pod B, with WAC enforced on both ends. No new wire format, no new identity model — just the existing primitives composed.\n\n## What\n\nA new MCP tool:\n\n\\`\\`\\`\ncall_remote_pod — Invoke an MCP tool on another pod by URL.\n arguments:\n pod_url: string — the remote pod's origin\n tool: string — tool name to call on the remote\n arguments: object — arguments to the remote tool\n auth: object (optional) — credentials for the remote\n type: \"bearer\" | \"nip98\" | \"dpop\"\n ... type-specific fields\n\\`\\`\\`\n\nThe MCP server:\n\n1. Validates the caller has \\`acl:Write\\` on a designated \\`/private/federation/\\` resource (the WAC gate on outbound federation — owner decides which agents are allowed to initiate)\n2. Constructs an MCP request to the remote pod with the provided credentials\n3. Forwards the response back as the local tool result\n4. Logs the exchange (for audit)\n\n## Scope\n\n- New tool handler in \\`src/mcp/tools.js\\`\n- Local WAC gate on \\`/private/federation/\\` (or configurable)\n- HTTP client for remote MCP calls (with timeout, error handling)\n- Audit log entry per call\n- Test: spin up two test servers, have one call the other's \\`read_resource\\`\n- Doc with bot-to-bot worked example\n\nEstimated ~200-350 lines including tests.\n\n## Open design questions\n\n1. **Where does the federation gate live in the ACL tree?** Proposed: \\`/private/federation/\\` with default \\`acl:Write\\` = owner only. Agents the owner trusts get explicit \\`acl:agent\\` entries.\n2. **Credential storage**: do bots store remote-pod credentials in their pod, or get them per-call from the user? Pod-resident credentials are convenient but a security surface.\n3. **Cycle detection**: should we set a max federation depth to prevent A → B → A loops? Probably yes; a header like \\`MCP-Federation-Depth\\` capped at 3.\n\n## Acceptance\n\n- [ ] \\`call_remote_pod\\` invokes an MCP tool on another pod\n- [ ] Local WAC gates outbound federation\n- [ ] Remote response is forwarded faithfully\n- [ ] Tested with a two-pod harness\n- [ ] Cycle/depth limit in place\n- [ ] Documented with a worked example in \\`docs/mcp.md\\`\n\n## Related\n\n- #490 — parent MCP capstone (mentions federation as a follow-up)","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-05-18T07:55:39Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/495"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:11ea5726-c4eb-d5a0-fa7c-b9ccdbe1e2e4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADD6:364252:30DC14:422F7F:6B03CE7D |
| html-safe-nonce | c07a3fa4a4d7c2b13d9c84116d6aa6982bcbbe8f7aa3425f6e0b926eb47488ad |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREQ2OjM2NDI1MjozMERDMTQ6NDIyRjdGOjZCMDNDRTdEIiwidmlzaXRvcl9pZCI6IjM3OTc4NDEwMDM4MzUyODEwMjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ff0d360aff82f6fe28e3f4d5bd2e3239c0d53557602a2f29e6537a1f8a44ca49 |
| hovercard-subject-tag | issue:4467300965 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/495/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c82eb79df16662ed4706ca551310ffb670058304beb9608dbe15ca6caf0ea5bd/JavaScriptSolidServer/JavaScriptSolidServer/issues/495 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c82eb79df16662ed4706ca551310ffb670058304beb9608dbe15ca6caf0ea5bd/JavaScriptSolidServer/JavaScriptSolidServer/issues/495 |
| og:image:alt | Follow-up to #490 (the MCP capstone in v0.0.200). Why The headline pitch of #490 — bot-to-bot federation falls out of MCP+WAC+DID — is currently only true in principle. Today, an agent talking to t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width