Skip to content

Agent plugin: the .mcp.json MCP launcher is a syntax error, so the DiffCI MCP server never starts #166

Closed

Description

@FredApps

What went wrong?

DiffCI crashed or printed an error

DiffCI version

0.3.54 (integrations/agent-plugin/.mcp.json on main, 40aa308). Broken since 0.3.11.

Command you ran

The MCP launcher in integrations/agent-plugin/.mcp.json, which the Codex plugin manifest names (.codex-plugin/plugin.json: "mcpServers": "./.mcp.json") and Claude Code reads from the plugin root:

node -e "$(node -p 'require("./integrations/agent-plugin/.mcp.json").mcpServers.diffci.args[1]')"

Environment

Any OS; Node 22/24. Reproduced on Linux with Node 24.

Output

const child = process.platform === 'win32' ? spawn(process.env.ComSpec || 'cmd.exe', ['/d', '/s', '/c', 'npx', ...npxArgs], { stdio: 'inherit' }); child.once(...
                                                                                                                                                  ^
Expected ':', got ';'

SyntaxError: Unexpected token ';'

The node -e script has a ternary with no : branch. The non-Windows : spawn('npx', npxArgs, { stdio: 'inherit' }) was dropped by the version bump in 1bb4bb7 ("chore: point public integrations at CLI v0.3.11"), so the DiffCI MCP server never starts from .mcp.json on any platform. integrations/agent-plugin/mcp.json (used by the Cursor manifest) still has both branches.

npm run agent:check doesn't catch it, because scripts/check-agent-packaging.mjs only checks that each launcher contains the pinned version string.

What you expected

The .mcp.json launcher starts npx --yes --package @diffci.com/diffci@<version> diffci-mcp like mcp.json does, and a check fails when either launcher stops being valid JavaScript or the two drift apart.

Activity

  1. added a commit that references this issue on Nov 18, 2026
    a52ae2c
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