Pact Tooling for VS Code
io.github.pact-community-organization/pact
Pact 5 tooling: REPL test runs, trap scanning, gas estimation, interface diff, format checks.
client:VS Code
transport:stdio
runtime:npm
Install Pact Tooling in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "pact-community-workspace-root",
"description": "PACT_COMMUNITY_WORKSPACE_ROOT",
"password": true
},
{
"type": "promptString",
"id": "pact-community-pact-bin",
"description": "PACT_COMMUNITY_PACT_BIN",
"password": true
}
],
"servers": {
"pact": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@pact-community/mcp-pact"
],
"env": {
"PACT_COMMUNITY_WORKSPACE_ROOT": "${input:pact-community-workspace-root}",
"PACT_COMMUNITY_PACT_BIN": "${input:pact-community-pact-bin}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs