Repository navigation
MCP runners that execute project code require --allow-authoring; bounded docs search reaches installed add-on guides (#590, #759) - #762
Merged
Conversation
…t as executing project code (#590) Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
…talled schemas with coverage reporting (#759) searchDocs (MCP search_docs, urlcode docs search) now also reads, as data only, the urlcode.json descriptor, README and declared agent references of add-ons installed in the project's site whose lock entry matches core's pin. Release-catalog matches are returned apart from installed results. Every answer reports which sources were and were not searched and a focused next step (a guide section, a descriptor config path, or get_schema); an empty answer says "no match in the searched sources". Results stay bounded (three excerpts of 1800 chars, five catalog matches, four next steps). The generated AGENTS.md, skills, plugin copy, llms.txt, TOOLING.md and the MCP tool description permit this bounded fallback; check-agent-facts rejects prose that shrinks the search back to the core corpus or reads no-match as unsupported. Core package budgets rise to 746 KiB packed / 3000 KiB unpacked. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
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.
Problem and change
run_testsexecution contract): defaulturlcode mcpofferedrun_testsand labelled it read-only (readOnlyHint: true), but it runs the project's trusted Node functions, which can write files. That also contradicted SECURITY.md and TOOLING.md.run_testsis now offered only with the operator's--allow-authoringflag. Calling it without the flag returns an error that names that flag.run_tests,run_validate,run_testandrun_auditall execute trusted project code. They are now annotatedreadOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: true, and their descriptions say the scratch data directory is not confinement.sandbox: trueis unchanged.search_docsandurlcode docs search --projectnow also search, as data only, installed add-ons that are pinned and whose lock entry matches the pin. For each, they readurlcode.json,README.mdand the agent references its descriptor declares: at most 6 files of 256 KiB each, never imported.check-agent-factsrejects prose claiming search covers only the fixed core docs, or treating no match as meaning unsupported.Closes #759. Refs #590 (resolves the execution-contract gap reopened there).
Verification
All runs used Node 26.10.0.
npm run check,npm run audit:packagesandnpm run verifyexcept for one test.docs-search-packagefailed whilenpm installdownloaded the packed tarball, withECONNRESET(a network drop). It passed on its own re-run.checkandaudit:packagespass again.npm run test:packagepasses (763417 packed / 3076371 unpacked bytes, 464 files).run_testsis absent, calling it is refused, and 13 project-reading tools run without writing the marker.--allow-authoring,run_testsruns the fixture and the marker appears.test/docs-search.test.ts):requiredWhenfinds the forms section and its config path.form-recordsfinds its composition contract.Compatibility and security
Behavior change: an MCP client that called
run_testswithout--allow-authoringnow gets an error naming the flag. The operator must opt in, just as for the other runners.urlcode testis unchanged.Search without a project: installed guides are searched only when a project is given.
searchDocs(text)with no options searches the core docs and the catalog, and says so in its coverage.Pin check in tests: the tests pass the pin check through development-manifest local links. Release-manifest hashes go through the existing pin-check code and have no new test here.
Changes match the documented portable contract; docs/examples are updated where needed.
Relevant tests and package checks pass, or limitations are explained above.
No credentials, customer data or private project material are included.
Runtime/starter changes remain aligned where applicable.
🤖 Generated with Claude Code
https://claude.ai/code/session_014jmv9dMggduiprzSsNd7iP
Generated by Claude Code