Repository navigation
feat(mcp): promote mcp to init --with and the signed extension-bundles release - #656
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mcpinscripts/prepare-extension-bundles.ts's package set andpackages/core/src/extension-bundles.ts'sBUNDLE_CATALOG_NAMES, so it joins everyextension-bundles@v…catalog andurlcode extension-bundles list.scaffoldexport (packages/mcp/src/scaffold.ts) sourlcode init --with mcpworks.pack-sourcesreproducible-build set (six packages going on seven).docs/FRAMEWORK.md,docs/VERSION-ALIGNMENT.md, rootAGENTS.md,llms.txt/llms-full.txt, and the package's ownREADME.md/AGENTS.md/llms.txt, all of which previously describedmcpas not yet distributed.Design note: why the scaffold declares no default server
Unlike
store(no project handler code at all), everymcptool needs a trusted project handler module underapp/.init --withonly ever writes reviewed scaffold files outside the route project (init-with.ts'sfilePathrefuses anything underapp/, the same boundary that keeps the reviewed project surface identical across every--withcombination), so this scaffold cannot place a working handler module itself. Shipping a default server anyway would produce a project that failsurlcode validate --host-file ...on its very first run (a missing referenced file) — worse than declaring nothing.So the scaffold wires
createMcpExtensioninto the generatedhost.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 intest/workspace-scaffold.integration.ts: a zero-config site validates and serves, and then, following exactly the README's steps, a hand-addedechotool answers a realtools/callJSON-RPC request.Test plan
npm run typecheck(root andpackages/mcp)npm run build(root andui/auth/admin/store/mcpworkspaces)npm run verify(full pipeline: lint, typecheck, docs checks, build, root tests,verify:workspaces,audit:packages,test:workspace-integration) — all greenpackages/mcppackage tests (mcp.test.ts, newscaffold.test.ts)test/workspace-scaffold.integration.ts, including the newinit --with mcpend-to-end testtest/extension-bundles.test.ts,test/cli.test.ts,test/init-with.test.tsupdated for the new catalog memberscripts/check-agent-facts.ts/scripts/check-trust-model-prose.ts/ fullcheck:docspipelineCloses #629
🤖 Generated with Claude Code