Skip to main content
Glama
zotodev

pega-code-review

by zotodev

Pega Code Review MCP Server

MCP server for exploring Pega branches and fetching full rule XML (LSA-style reviews).

Auth: Uses your existing browser session (no client ID / secret).

Tools

Tool

Purpose

pega_list_branches

List available branches

pega_get_branch_rules

List rules inside a branch

pega_get_rule_xml

Fetch full XML of a rule by pzInsKey

pega_get_referenced_rules

Fetch XMLs of referenced rules

Related MCP server: graphward

How to get your session token

  1. Open your Pega app in the browser and log in normally.

  2. Open DevTools (F12) → Network tab.

  3. Click any API request (look for /api/ or /prweb/).

  4. In Request Headers find Authorization: Bearer ...

  5. Copy the whole value (including Bearer or just the token).

Alternatively copy the cookies from Application → Cookies.

Config

PEGA_BASE_URL=https://your-pega-instance.com/prweb
PEGA_ACCESS_TOKEN=Bearer eyJhbGciOi...

Claude / Cursor config

{
  "mcpServers": {
    "pega-code-review": {
      "command": "python",
      "args": ["/absolute/path/to/pega-code-review-mcp/server.py"],
      "env": {
        "PEGA_BASE_URL": "https://your-pega-instance.com/prweb",
        "PEGA_ACCESS_TOKEN": "Bearer eyJhbGciOi..."
      }
    }
  }
}

Note: Tokens expire. When tools start failing with 401, just copy a fresh token from the browser.

License

MIT

Related MCP Connectors

Related MCP Servers