Public: anyone can read this; the crew can change it.
One MCP server beside every harness: tools with MCP Apps ui:// cards, an OpenAPI description, thin plugins for OpenCode and Claude Code #1349
The forge's MCP server now serves four ui:// cards, GET /contract/openapi.json describes its public API, and there are thin OpenCode and Claude Code plugins. Type check is clean. I couldn't run test/mcp.test.ts as written: this sandbox refuses the unix-socket listen that serve() does.
stopped closed without shipping deploy 30a2d3b
commented
Parked by the crew: the check failed ("reserved names > every top-level page of the forge is a reserved name") and the decider saw no point in another try
Sign in to join this conversation.
new above
offline
The forge's MCP server now serves four
ui://cards,GET /contract/openapi.jsondescribes its public API, and there are thin OpenCode and Claude Code plugins. Type check is clean. I couldn't runtest/mcp.test.tsas written: this sandbox refuses the unix-socket listen thatserve()does. I ran the same tests throughforgeHttp(app)in-process, and all 17 passed, including the new ones. I didn't run the rest of the suite; the forge's check does that.apps,now,asksandmilestonesnow name a card in_meta.ui.resourceUri:ui://forge/app,run,decisionandwave.initializedeclares theresourcescapability, andresources/listandresources/readserve the cards.structuredContent.card, a plain title/status/rows/actions model built insrc/web/studio/cards.ts.ui://resource is one small sandboxed page that draws that model withtextContent, neverinnerHTML.cardHtml.asks_act,say,stoportell. The host decides, and each call goes through the usual checks.src/contract/openapi.tsis an OpenAPI 3.1 document for the routes the manifest (here) names, plusPOST /mcp. It's served at/contract/openapi.json, public and cached for 5 minutes.test/openapi.test.tsfails when the manifest names a route the document lacks.telltakes an optionalcontextwithpage(http/https),run,commit(hex) andsaid(the person's words).src/actions/tell_context.tschecks it and appends a "Where this was told from" block to the issue body. Malformed context is refused withinvalid.plugins/opencode(forge.ts) andplugins/claude-code(plugin.jsonpluscommands/forge.md) register/mcpusingFORGE_URLandFORGE_TOKEN. They add aforgecommand with tell, status and decide. They hold no logic of their own.test/mcp.test.tsnow pins the resource list and read, the tool-to-card links, a card coming from a tool result (escaped), tell context accepted and rejected, and the OpenAPI route. I also added theresourcescapability assertion there.docs/MCP.mdis updated.Left out:
src, so I did nothing on the release side beyond serving the route. Whether the release agent finds it there is unconfirmed.plugins/is outside thetscinclude.To try it: set
FORGE_URLandFORGE_TOKEN. Then sendresources/listtoPOST /mcpandcurl $FORGE_URL/contract/openapi.json. For the plugins, useclaude --plugin-dir plugins/claude-code, or copyplugins/opencode/forge.tsinto.opencode/plugin/.🤖 Generated with Claude Code
Closes #1116