Pega Setup
Use this skill when the user needs to configure or troubleshoot the Codex plugin for
pega-infinity-authoring.
Setup Rules
- Treat the plugin-bundled MCP server as the source of truth for how the bundled server starts.
- Prefer checking Codex MCP configuration first before suggesting manual edits.
- Confirm the plugin starts the pinned npm launcher, which downloads and verifies the runtime and skills on first use.
- Use OAuth for authentication with the standard client ID
34233104330833666523. - If the runtime exposes setup or auth helper tools, use them before suggesting manual env
changes.
- Treat
pega_base_url/PEGA_BASE_URLas the Pega environment root URL only; do not include/prwebor any other path segment. - Let the plugin supply
PEGA_SKILLS_PATHfor the bundled skills parent directory; do not ask users to setpega_skills_pathfor normal use. - Set
pega_infinity_versionexplicitly to26-1for a 26.1 environment. Use the version mapping above and the exact bundled directory name. - Separate local plugin validation from remote Pega validation:
list-skillsconfirms bundled skills availability, whilelist-available-applicationsorget-applicationconfirms remote connectivity. - Treat non-empty values in
~/.infinity-rules-mcp/config.jsonas higher priority thanPEGA_*environment variables.
Supported Infinity versions map to bundled directory names as follows:
- Infinity 24.2 ->
24-2 - Infinity 25.1 ->
25-1 - Infinity 26.1 ->
26-1
Check Existing Configuration
Call list-skills first to confirm the plugin runtime and bundled skills are available. Then use this
presence-only check; never print the config contents 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
Treat the base URL as configured only when it is a real environment root URL without /prweb or
another path segment. Treat the version as configured only when it exactly matches a bundled version.
Config File
Create or edit ~/.infinity-rules-mcp/config.json:
{
"pega_base_url": "<paste-your-pega-url-here>",
"pega_oauth_client_id": "34233104330833666523",
"pega_infinity_version": "26-1"
}
The plugin supplies the skills directory. 26-1 selects the matching skills version.
The runtime defaults to 26-1 when the version is omitted, but keep the key explicit for a deterministic
setup.
Keep this file private because it is stored in plaintext:
chmod 600 ~/.infinity-rules-mcp/config.json
Restart Codex after changing the file. If PEGA_* variables are also set, the non-empty config-file
values take precedence.
Troubleshooting Focus
- confirm the plugin MCP server is installed and enabled
- confirm bundled skills are discoverable through
list-skills - confirm remote Pega connectivity through
list-available-applicationsorget-application - confirm
pega_base_url/PEGA_BASE_URLuses the environment root URL without/prweb - confirm
pega_infinity_versionis a supported version, and that Node.js 22.14+ and GitHub access are available for the first-start download - confirm
javais available on the machine running Codex - confirm the bundled Codex skills are visible in
/skillsor plugin invocation - confirm stale
PEGA_*environment variables are not being mistaken for the effective values; the config file wins