Skip to content

feat(mcp): promote mcp to init --with and the signed extension-bundles release - #656

Merged
jimhoyd merged 5 commits into
mainfrom
claude/mcp-629-init-with-bundle-promotion
Sep 24, 2026
Merged

jimhoyd merged 5 commits into
mainfrom
claude/mcp-629-init-with-bundle-promotion

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Registers mcp in scripts/prepare-extension-bundles.ts's package set and packages/core/src/extension-bundles.ts's BUNDLE_CATALOG_NAMES, so it joins every extension-bundles@v… catalog and urlcode extension-bundles list.
  • Adds a scaffold export (packages/mcp/src/scaffold.ts) so urlcode init --with mcp works.
  • Also joins the pack-sources reproducible-build set (six packages going on seven).
  • Updates docs/FRAMEWORK.md, docs/VERSION-ALIGNMENT.md, root AGENTS.md, llms.txt/llms-full.txt, and the package's own README.md/AGENTS.md/llms.txt, all of which previously described mcp as not yet distributed.

Design note: why the scaffold declares no default server

Unlike store (no project handler code at all), every mcp tool needs a trusted project handler module under app/. init --with only ever writes reviewed scaffold files outside the route project (init-with.ts's filePath refuses anything under app/, the same boundary that keeps the reviewed project surface identical across every --with combination), so this scaffold cannot place a working handler module itself. Shipping a default server anyway would produce a project that fails urlcode validate --host-file ... on its very first run (a missing referenced file) — worse than declaring nothing.

So the scaffold wires createMcpExtension into the generated host.mjs (always valid — it never requires a project declaration to construct) and declares no server. The generated README walks the operator through adding one server, one tool and its handler module by hand, with a worked example. This is verified end to end in test/workspace-scaffold.integration.ts: a zero-config site validates and serves, and then, following exactly the README's steps, a hand-added echo tool answers a real tools/call JSON-RPC request.

Test plan

  • npm run typecheck (root and packages/mcp)
  • npm run build (root and ui/auth/admin/store/mcp workspaces)
  • npm run verify (full pipeline: lint, typecheck, docs checks, build, root tests, verify:workspaces, audit:packages, test:workspace-integration) — all green
  • packages/mcp package tests (mcp.test.ts, new scaffold.test.ts)
  • test/workspace-scaffold.integration.ts, including the new init --with mcp end-to-end test
  • test/extension-bundles.test.ts, test/cli.test.ts, test/init-with.test.ts updated for the new catalog member
  • scripts/check-agent-facts.ts / scripts/check-trust-model-prose.ts / full check:docs pipeline

Closes #629

🤖 Generated with Claude Code

jimhoyd and others added 5 commits September 24, 2026 08:21
…s release

Registers mcp in scripts/prepare-extension-bundles.ts's package set and
packages/core/src/extension-bundles.ts's BUNDLE_CATALOG_NAMES, so it joins
every extension-bundles@v… catalog and urlcode extension-bundles list, and
adds a scaffold export so urlcode init --with mcp works.

Unlike store, every mcp tool needs a trusted project handler module under
app/, and init --with only ever writes reviewed files outside the route
project (init-with.ts's filePath refuses anything under app/). The scaffold
therefore wires createMcpExtension into the generated host.mjs and declares
no default server; the generated README walks the operator through adding
one server, one tool and its handler module by hand with a worked example,
verified end to end in test/workspace-scaffold.integration.ts.

Also joins the pack-sources reproducible-build set (six packages going on
seven) and updates docs/FRAMEWORK.md, docs/VERSION-ALIGNMENT.md, AGENTS.md,
llms.txt and the package's own README/AGENTS.md/llms.txt, which previously
described mcp as not yet distributed.

Closes #629

Co-Authored-By: Claude Sonnet 5 <[email protected]>
ci-build-fidelity.ts's SOURCE_PACKAGES was still the pre-promotion
six-package list; pack-sources.mjs already builds seven now that mcp
is a distributed package, so the fidelity check's own expectation
needed the same update.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
# Conflicts:
#	packages/mcp/AGENTS.md
#	packages/mcp/llms.txt
@jimhoyd
jimhoyd enabled auto-merge (squash) September 24, 2026 13:54
@jimhoyd
jimhoyd merged commit a297828 into main Sep 24, 2026
23 checks passed
@jimhoyd
jimhoyd deleted the claude/mcp-629-init-with-bundle-promotion branch September 24, 2026 13:57
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.

[Request]: promote @jimhoyd/urlcode-mcp to init --with and the signed extension-bundles release

1 participant