pi-pega-mcp-bridge
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@pi-pega-mcp-bridgeWhat case types are available in the Order Management application?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
pi-pega-mcp-bridge
Run Pega Infinity authoring inside the pi coding agent. This extension spawns Pega's own MCP server (infinity-rules-mcp.jar from pegasystems/infinity-ai-plugins) and registers its tools in pi as native tools. In a read-only session you get 22 tools: search and read rules, list case types, browse Pega's authoring skills, run data pages and PegaUnit tests. Enable write mode and you also get rule and case authoring through Pega's ChangeRequest workflow.
No MCP client plugin is installed into pi. The bridge spawns Pega's own server as a subprocess and speaks JSON-RPC over stdio, so the tools appear to the model exactly like built-in pi tools.
Not affiliated with or endorsed by Pegasystems Inc. This package ships no Pega code or binaries; it launches the server from Pega's own repository, which you clone separately.
How it works
pi session
└── extensions/pega-mcp.ts (this bridge)
└── spawns: java -jar infinity-rules-mcp.jar --spring.profiles.active=stdio
└── tools/list → registered as native pi tools (once per pi process)
└── tools/call → forwarded per tool call
└── OAuth: browser-based login, loopback callback on localhost:8888
└── talks to your Pega Infinity environment REST APIsRelated MCP server: lnwjud
Why not pi-mcp-adapter?
pi-mcp-adapter is a fine generic MCP client for pi, and pointing it at Pega's jar works. This package exists because generic gets you none of the Pega-specific decisions: all 29 tools registered with write access on day one, no integrity check on the jar, no setup flow for the OAuth client and redirect URI, and no help with the config mistakes Pega's docs invite (a /prweb suffix in the URL, a missing PEGA_SKILLS_PATH). If you want those safety defaults handled for you, use this bridge. If you want full control, the adapter is a reasonable path.
Prerequisites
Requirement | Notes |
pi coding agent | |
Java 17 or later | The Pega server is a Spring Boot jar and will not run on Java 11. |
Pega Infinity 26.1+ | 25.1.3+ and 24.2.5+ require engagement with Pega Support |
Pega environment access | You need an account that can author in the target application |
Pega repo clone |
|
Install Java
macOS:
brew install openjdk@17Linux (Debian/Ubuntu):
sudo apt install openjdk-17-jreLinux (RHEL/Fedora): sudo dnf install java-17-openjdk
Windows:
winget install EclipseAdoptium.Temurin.17.JREVerify with java -version.
Clone the Pega repo
The bridge looks for the jar at ~/.pi/agent/pega/infinity-ai-plugins/plugins/pega/infinity-ai-plugins/claude/resources/infinity-rules-mcp.jar (Windows: %USERPROFILE%\.pi\agent\pega\..., resolved automatically). Use a different location by setting PEGA_PLUGIN_DIR to the plugins/pega/infinity-ai-plugins/claude directory.
mkdir -p ~/.pi/agent/pega
git clone https://github.com/pegasystems/infinity-ai-plugins.git ~/.pi/agent/pega/infinity-ai-pluginsYou do not need to install the Pega plugin into Claude Code, Codex, or Copilot CLI. The clone is all this bridge uses.
Pega-side setup (one time per environment)
In Pega, create an OAuth 2.0 client registration (Records → Integration → Services):
Client credentials type: Public (no secret)
Grant type: Authorization code
Redirect URI:
http://localhost:8888/callback(exact scheme, port, and path)
Note the generated client ID.
The bridge connects as your Pega user. Everything it does happens with your permissions, so scope the client registration's access group accordingly.
Install
pi install git:github.com/WeekendNoobs/pi-pega-mcp-bridgeOr, to try it without installing:
pi -e git:github.com/WeekendNoobs/pi-pega-mcp-bridgeConfigure the connection
Create ~/.infinity-rules-mcp/config.json (%USERPROFILE%\.infinity-rules-mcp\config.json on Windows). This is the same file Pega's official plugins use:
{
"pega_base_url": "https://your-environment.example.com",
"pega_oauth_client_id": "<your-client-id>",
"pega_infinity_version": "26-1"
}pega_base_url: environment root only. No/prweb, no path segments.pega_infinity_version: one of24-2,25-1,26-1. Defaults to26-1.
Restrict the file on macOS/Linux: chmod 600 ~/.infinity-rules-mcp/config.json. The bridge warns at session start if the mode differs. The file is plaintext and gates access to your Pega environment; never commit it.
Start a new pi session. The first Pega tool call opens a browser for OAuth login. The session token is persisted, so you log in once, not per call.
Read-only by default
The bridge registers 22 read tools by default. Seven data-mutating tools are withheld unless you explicitly enable them:
create-case, perform-action, trigger-optional-process, initiate-authoring-change, copy-rule, create-rule, update-rule
To enable write access for a session:
PEGA_MCP_WRITE_TOOLS=1 piWrites go through Pega's ChangeRequest workflow (branch rulesets), which is Pega's own recommended authoring pattern. Ask the agent for get-skill("recipes/change-request-workflow") before your first write session.
Commands
/pega-status: server state, mode, registered tool count, config summary, last error/pega-restart: restart the jar, picks upconfig.jsonchanges and Pega repo updates
Configuration reference
~/.infinity-rules-mcp/config.json (Pega's format)
Key | Purpose |
| Your environment root URL |
| Client ID from the OAuth client registration |
| Bundled skills payload version: |
Bridge environment variables
Variable | Default | Purpose |
| unset (read-only) |
|
|
| Per-request timeout. Raise it for long PegaUnit runs. |
| pinned hash | Override the jar integrity pin |
|
| Alternate location of the cloned repo's |
Security model
Read-only default. Write tools are opt-in per session (see above).
Jar integrity pin. The bridge embeds the SHA-256 of the tested
infinity-rules-mcp.jar. A mismatch (for example aftergit pullin the Pega repo) refuses to start and prints the actual hash. Update the pin deliberately viaPEGA_MCP_EXPECTED_JAR_SHA256or by updating this package; never let a repo pull silently swap the executable.Loopback OAuth. Pega's server implements the authorization code flow over
http://localhost:8888/callbackwith no PKCE. On a single-user machine this is standard practice; on shared hosts any local process could race the callback port. If port 8888 is occupied, setPEGA_OAUTH_REDIRECT_PORTin the environment and register the matching redirect URI in Pega. Both sides must change together.Operator scope. Tool calls execute as your Pega user through the client registration you created. Treat agent-initiated writes like any other change made by your account.
Server logs. The jar writes logs into the clone under
plugins/pega/infinity-ai-plugins/claude/resources/logs/. They can contain API traffic and case data. Do not commit or share that directory.Pega license boundary. This repository contains no Pegasystems code, binaries, or content. The jar and its skills payload are cloned from Pega's repository and remain governed by the "Pega Infinity AI Plugins License" shipped there, which permits use solely in connection with Pegasystems software. See LICENSE in this repo for the third-party notice.
Troubleshooting
Symptom | Cause and fix |
| Java older than 17. Install 17+ and run |
| Java not on PATH. Install it, then restart pi or run |
| Pega repo not cloned to |
Hash mismatch at startup | The Pega repo changed the jar (usually after |
Browser login loops or times out | Check |
Tools registered but every call fails | Run |
| Write tools are withheld in read-only mode. That is expected. |
Platform note: developed and tested on macOS (Apple Silicon). Linux and Windows use standard Node.js APIs and are expected to work. If something breaks on your platform, include your OS, Java vendor and version, and the full /pega-status output in the issue.
Updating
This bridge:
pi update --extensionsPega's server:
git pullin the clone at~/.pi/agent/pega/infinity-ai-plugins, then/pega-restart. If the jar hash changed, the bridge will refuse to start until you update the pin (see Security model). This is intentional.
Verify the connection outside pi
node scripts/verify.mjsSpawns the jar directly, performs the MCP handshake, and calls list-available-applications. Useful to separate bridge problems from Pega environment problems.
License
MIT for this package's code. See LICENSE for details and the third-party notice regarding Pega components.
This server cannot be deployed
Maintenance
Related MCP Connectors
Governed app access for AI agents: 1,000+ apps & 12,000+ tools via Code Mode MCP.
Trust signals for AI agents: an open agent-readiness standard and developer tool guide. Read-only.
Agent-Native design tool - create and edit visual designs with agent assistance
MCP facade over the Nebelus Construction API. ~48 tools give full agent build parity: create/update/probe agents, edit graphs, attach knowledge and vector stores, wire connectors, set governance policies and locked guardrails, enable grounding-trace, and read deployment wiring. Purpose-built for regulated industries: data residency is enforced per region (EU / GCC-KSA), with PII controls and an audit trail. Agents are created as drafts — no deploy tool is exposed over MCP by design; publishing happens in the Nebelus console.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to view and control the local desktop through browser-based viewport and MCP tools.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to securely access local development capabilities such as files, Git, processes, browser control, Windows automation, WSL, and observability through MCP on Windows and macOS.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI assistants to securely access local machine capabilities such as file operations, shell commands, Skills, and Pi Tools through a controlled MCP interface with token authorization and multiple tunnel options.134 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to index and search local skill libraries, persist and resume task checkpoints, and run validated workflow plans with controlled approval and write permissions.MIT