Title: feat: expose JSS as an MCP server (--mcp) — proposed v0.0.200 · Issue #490 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: feat: expose JSS as an MCP server (--mcp) — proposed v0.0.200 · Issue #490 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: feat: expose JSS as an MCP server (--mcp) — proposed v0.0.200 · Issue #490 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Why The agent ecosystem (Claude Desktop, Cursor, custom agents, …) has no shared answer for sovereign, ACL-gated storage. Every agent today bolts on its own DB, vector store, or secrets vault. Solid's pitch — user-owned data, queryable, ...
Open Graph Description: Why The agent ecosystem (Claude Desktop, Cursor, custom agents, …) has no shared answer for sovereign, ACL-gated storage. Every agent today bolts on its own DB, vector store, or secrets vault. Soli...
X Description: Why The agent ecosystem (Claude Desktop, Cursor, custom agents, …) has no shared answer for sovereign, ACL-gated storage. Every agent today bolts on its own DB, vector store, or secrets vault. Soli...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/490
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: expose JSS as an MCP server (--mcp) — proposed v0.0.200","articleBody":"## Why\n\nThe agent ecosystem (Claude Desktop, Cursor, custom agents, …) has no shared answer for **sovereign, ACL-gated storage**. Every agent today bolts on its own DB, vector store, or secrets vault. Solid's pitch — user-owned data, queryable, access-controlled — is exactly what agents need, but the wire connecting them doesn't exist yet.\n\n[MCP (Model Context Protocol)](https://modelcontextprotocol.io) is becoming that wire. If JSS speaks MCP, every MCP-compatible agent gets a sovereign data layer for free, with WAC, WebIDs, and Nostr identities all already in place.\n\n**Thesis statement: \"MCP needs a backend. Solid is the backend.\"**\n\nThis is the proposed v0.0.200 capstone — completing the feature-development phase before consolidation.\n\n## What\n\n\\`\\`\\`bash\njss start --mcp # exposes /mcp endpoint speaking MCP\n\\`\\`\\`\n\n### Initial tools\n\nTiny surface to start; expand once the foundation is in:\n\n| Tool | Maps to |\n|---|---|\n| \\`list_resources\\` | LDP container GET (lists \\`ldp:contains\\`) |\n| \\`read_resource\\` | GET resource (any content type, including JSON-LD) |\n| \\`write_resource\\` | PUT / POST resource |\n| \\`subscribe\\` | Existing JSS WebSocket notifications wrapped as MCP events |\n\nDeferred: \\`query\\` (SPARQL or JSON-LD frame), \\`delete_resource\\`, \\`patch_resource\\`.\n\n### Auth\n\nReuse existing JSS layers — no new auth code:\n\n- **WebID-OIDC + DPoP** — for Claude Desktop and other browser-OIDC agents\n- **NIP-98** — for Nostr-native agents\n- **Bearer token** — for headless agents / CI\n\nThe MCP server enforces WAC the same way every other JSS endpoint does. \\`acl:agent \u003cdid:agent:claude>\\` can grant a specific agent specific resources. \\`acl:agentClass\\` with a new \\`acl:Agent\\` term could grant agent-class-wide access.\n\n### Wire format\n\nMCP supports stdio, HTTP+SSE, and WebSocket transports. HTTP+SSE is the natural fit — JSS already serves HTTP, and SSE composes with the existing notification infrastructure. Stdio is irrelevant (JSS is a long-running daemon).\n\n## Scope estimate\n\n~500 lines. The protocol is thin, JSS already has all the backend primitives. The work is an adapter layer:\n\n- MCP handshake (initialize, list_tools, capabilities)\n- Tool dispatch (route MCP tool calls to existing JSS internals)\n- SSE event stream wrapping the WS notification pipe\n\n## Why it's distinctive\n\n- **No other Solid server** has this\n- **No other MCP server** has WAC, WebID, or sovereign storage\n- The combination is what's unique — Solid's strength (data sovereignty) becomes MCP's missing piece\n\n## Acceptance\n\n- [ ] \\`jss start --mcp\\` exposes \\`/mcp\\` endpoint\n- [ ] Claude Desktop can register the endpoint as an MCP server and read/write a resource\n- [ ] WAC applies: agent without \\`acl:Write\\` gets 403 on \\`write_resource\\`\n- [ ] \\`subscribe\\` emits events on resource changes via SSE\n- [ ] Tested end-to-end with at least one external MCP-compatible client\n- [ ] \\`docs/mcp.md\\` covers wiring up Claude Desktop / generic MCP clients\n\n## Out of scope (for v0.0.200)\n\n- \\`query\\` tool (deferred to v0.0.201+)\n- Agent-class WAC term (\\`acl:Agent\\`) — proposed but not blocking\n- MCP \"prompts\" or \"resources\" surface (we expose tools first)\n- Local LLM hosting / inference inside JSS","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-05-18T06:02:06Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/490"}
| 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:c9d4680e-4235-f354-07c6-51f89d262920 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 88B6:1827E:365CCC6:47EFE31:6B03CBF3 |
| html-safe-nonce | 2f6fada8e7c8a50adea8194c96dbbc98df1c55a4545d2285b64a841dbd0ed312 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OEI2OjE4MjdFOjM2NUNDQzY6NDdFRkUzMTo2QjAzQ0JGMyIsInZpc2l0b3JfaWQiOiI2NjE4MDEzNjk5NzI4OTg1MDc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b7480397f5255a62d3f3fbb446f20fcd4060c4603b3b47d77d550055bc6d64c3 |
| hovercard-subject-tag | issue:4466659078 |
| 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/490/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9990cb2bfdac034745b60099415f6f47e08c6b42b15a6273644932c6e60d133f/JavaScriptSolidServer/JavaScriptSolidServer/issues/490 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9990cb2bfdac034745b60099415f6f47e08c6b42b15a6273644932c6e60d133f/JavaScriptSolidServer/JavaScriptSolidServer/issues/490 |
| og:image:alt | Why The agent ecosystem (Claude Desktop, Cursor, custom agents, …) has no shared answer for sovereign, ACL-gated storage. Every agent today bolts on its own DB, vector store, or secrets vault. Soli... |
| 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