Pact Tooling
Pact 5 tooling: REPL test runs, trap scanning, gas estimation, interface diff, format…
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.2.2
- Listing updated
- 5 days ago
About Pact Tooling
Pact Tooling is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Pact 5 tooling: REPL test runs, trap scanning, gas estimation, interface diff, format checks.
Install
Run in a terminal
claude mcp add pact --env PACT_COMMUNITY_WORKSPACE_ROOT='<PACT_COMMUNITY_WORKSPACE_ROOT>' -- npx -y @pact-community/mcp-pactAdd to claude_desktop_config.json
{
"mcpServers": {
"pact": {
"command": "npx",
"args": [
"-y",
"@pact-community/mcp-pact"
],
"env": {
"PACT_COMMUNITY_WORKSPACE_ROOT": "<PACT_COMMUNITY_WORKSPACE_ROOT>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"pact": {
"command": "npx",
"args": [
"-y",
"@pact-community/mcp-pact"
],
"env": {
"PACT_COMMUNITY_WORKSPACE_ROOT": "<PACT_COMMUNITY_WORKSPACE_ROOT>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"pact": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@pact-community/mcp-pact"
],
"env": {
"PACT_COMMUNITY_WORKSPACE_ROOT": "<PACT_COMMUNITY_WORKSPACE_ROOT>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"pact": {
"command": "npx",
"args": [
"-y",
"@pact-community/mcp-pact"
],
"env": {
"PACT_COMMUNITY_WORKSPACE_ROOT": "<PACT_COMMUNITY_WORKSPACE_ROOT>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"pact": {
"command": "npx",
"args": [
"-y",
"@pact-community/mcp-pact"
],
"env": {
"PACT_COMMUNITY_WORKSPACE_ROOT": "<PACT_COMMUNITY_WORKSPACE_ROOT>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
PACT_COMMUNITY_WORKSPACE_ROOTWorkspace root directory; all file access is confined inside it.RequiredPACT_COMMUNITY_PACT_BINPath to the pact binary (default: pact on PATH).
Pricing
Open source
Pact Tooling FAQ
Is Pact Tooling free?
Yes. Pact Tooling is open source, so you can use and self-host it for free.
How do I add Pact Tooling to Claude Code?
Run this command in your terminal: claude mcp add pact --env PACT_COMMUNITY_WORKSPACE_ROOT='<PACT_COMMUNITY_WORKSPACE_ROOT>' -- npx -y @pact-community/mcp-pact
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.