Skip to content

MCP run_tests ignores the operator host's plugins, which urlcode test and run_test apply #1112

Closed

Description

@jimhoyd

Runtime revision and environment

main at 6b8a54d, found while implementing #1095 item 2 (shared fixture core).

Minimal reproduction

Observed in source, not reproduced end to end:

  • urlcode test --host-file host.mjs (and so MCP run_test, which spawns it) passes operatorHost.plugins into runProjectTests (packages/core/src/cli.ts, hostOptions).
  • MCP run_tests (packages/core/src/mcp.ts) loads its own hermetic host per run and passes only extensions; the host's plugins never reach the in-process run. It also takes no --alias-origin.

A host file that exports operator plugins (request/response hooks, packages/core/src/plugins.ts) can therefore make the same fixture pass under one tool and fail under the other.

Relevant output

None yet; unverified with a real plugin. The #1095 PR keeps run_tests' existing inputs unchanged on purpose and documents the difference in docs/TOOLING.md. The fix would be to pass host.plugins through runHermeticFixtures (packages/core/src/fixture-run.ts), with a test that a plugin's response header is seen by both tools.

Activity

  1. added
    bug
    on Sep 30, 2026
  2. jimhoyd commented on Sep 30, 2026

    @jimhoyd
    CollaboratorAuthor

    Taking this: coordinator session.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions