Skip to content

MCP run_validate/run_test/run_audit cannot review an edited extension site without a pin (follow-up to #932) #940

Closed

Description

@jimhoyd

#932 adds --local-review to validate, test, routes and audit: with no operator pin (no --policy, URLCODE_POLICY or PROJECT_SHA256) the CLI pins that one run to the current revision, reads no policy (no grants) and defaults the origin to http://localhost. The generated npm scripts pass it; serve/dev refuse it.

The authoring MCP runners (run_validate, run_test, run_audit in packages/core/src/mcp-authoring.ts) deliberately do not pass it: their tool descriptions promise that only the operator's own --host-file, --origin, --policy and a well-formed PROJECT_SHA256 are forwarded. So an agent that edits an extension site through MCP still gets revision-pin-required from the runners after every edit unless the operator started urlcode mcp with a pin, and the pin goes stale after the first edit.

Decide whether the runners should pass --local-review (an operator pin would still win), perhaps behind an operator opt-in flag on urlcode mcp, and update the tool descriptions and docs/TOOLING.md accordingly. Unverified: whether MCP clients rely on the current refusal as a signal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions