Pega setup

From pegasystems/infinity-ai-plugins · View interactive version

Pega setup is an AI agent skill from the GitHub repository pegasystems/infinity-ai-plugins. Use when the user needs to configure, reconfigure, or troubleshoot the Infinity Authoring plugin connection. Guides first-time setup, OAuth configuration, and recovery from connection failures.

How to use this skill

Skill file

Pega Setup

This skill guides users through configuring the Infinity Authoring plugin for use with Claude Code.

Overview

The Claude plugin uses an OAuth-based connection flow. The shared configuration should contain:

  1. pega_base_url - the Pega environment root URL
  2. pega_oauth_client_id - use 34233104330833666523 unless the environment requires a custom override
  3. pega_infinity_version - use the exact bundled version, normally 26-1

The plugin's launcher downloads and verifies the skills and supplies the skills path itself. Do not ask users to set

pega_skills_path for normal use.

The MCP server defaults pega_oauth_client_id to 34233104330833666523, but keep that value in the

config file so the setup is explicit and portable. Do not ask the user to invent or provide a client

ID. Only replace the standard value if the user explicitly says their environment requires a custom

override.

The runtime defaults to 26-1 when no version is set, but this skill should still guide users to set

pega_infinity_version explicitly so the selected skills are unambiguous.

Supported Infinity versions map to bundled directory names as follows:

This is an interactive step-by-step guide. The agent detects the user's current configuration and provides tailored instructions.

Step 1: Check Existing Configuration

Check whether a connection is already configured.

First, try calling list-skills. If it succeeds, the bundled plugin runtime and local skills are available.

Do not treat this as proof that the remote Pega environment is reachable or configured. Check the

configuration separately even when list-skills succeeds.

Use a presence-only check. Never print the contents of the config file into the session transcript:

config="$HOME/.infinity-rules-mcp/config.json"
if [ -f "$config" ]; then
    printf 'config.json: present\n'
    grep -qE '"pega_base_url"[[:space:]]*:' "$config" && printf 'pega_base_url: [set]\n' || printf 'pega_base_url: [missing]\n'
    grep -qE '"pega_oauth_client_id"[[:space:]]*:' "$config" && printf 'pega_oauth_client_id: [set]\n' || printf 'pega_oauth_client_id: [missing]\n'
    grep -qE '"pega_infinity_version"[[:space:]]*:' "$config" && printf 'pega_infinity_version: [set]\n' || printf 'pega_infinity_version: [missing]\n'
    [ "$(stat -c '%a' "$config" 2>/dev/null)" = "600" ] && printf 'permissions: restricted\n' || printf 'permissions: check chmod 600\n'
else
    printf 'config.json: missing\n'
fi

Interpretation:

Partial Configuration Handling:

Step 2: Configure The Connection

Confirm the user has:

Use the standard OAuth client ID shown in the template. Only use a different

pega_oauth_client_id if the user explicitly says their environment requires a custom override.

Option A: Config File

First ensure the config directory exists:

mkdir -p ~/.infinity-rules-mcp

Instruct the user to create or edit ~/.infinity-rules-mcp/config.json directly with:

{
  "pega_base_url": "<paste-your-pega-url-here>",
  "pega_oauth_client_id": "34233104330833666523",
  "pega_infinity_version": "26-1"
}

The plugin supplies the skills directory automatically. 26-1 selects the matching skills version. The runtime defaults to 26-1 when the key is omitted, but keep it

explicit for a deterministic setup.

After creating the file, instruct the user to restrict permissions:

chmod 600 ~/.infinity-rules-mcp/config.json

~/.infinity-rules-mcp/config.json is stored in plaintext. Do not commit it to version control.

Option B: Claude `/plugin` UI

Alternatively, the user can set the connection URL through the Claude /plugin management UI:

  1. Run /plugin in Claude
  2. Select the Infinity Authoring plugin
  3. Fill in pega_base_url and leave the OAuth client ID at its standard default

The plugin passes these UI values as PEGA_BASE_URL and PEGA_OAUTH_CLIENT_ID.

If ~/.infinity-rules-mcp/config.json contains non-empty values, those config-file values win.

Set pega_infinity_version in the config file; it is not a Claude /plugin UI field. Reload the

plugin after changing either source.

Step 3: Verify And Next Steps

3.1 Reload The Plugin

The user must reload for changes to take effect:

3.2 Verify Connection

After reload, verify two things separately:

  1. Call list-skills to confirm the bundled plugin runtime and local skills are available.
  2. Call list-available-applications or get-application to confirm the remote Pega environment is reachable with the configured base URL.

Expected results:

If verification fails, check:

3.3 Next Steps

  1. Call list-available-applications to see available applications
  2. Call list-skills then get-skill to load Pega-specific guidance

Troubleshooting

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.