Skip to content
Cursor

Pact Tooling for Cursor

io.github.pact-community-organization/pact

Pact 5 tooling: REPL test runs, trap scanning, gas estimation, interface diff, format checks.

client:Cursor transport:stdio runtime:npm

Install Pact Tooling in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "pact": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@pact-community/mcp-pact"
      ],
      "env": {
        "PACT_COMMUNITY_WORKSPACE_ROOT": "<PACT_COMMUNITY_WORKSPACE_ROOT>",
        "PACT_COMMUNITY_PACT_BIN": "<PACT_COMMUNITY_PACT_BIN>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

Pact Tooling in other clients