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 Infinity Authoring opencode MCP server needs setup, authentication help, or troubleshooting. Confirm the MCP server is running first, then verify the bundled runtime and skills payload.

How to use this skill

Skill file

Pega Setup

Use this skill when the user needs to configure or troubleshoot the opencode MCP server for

pega-infinity-authoring.

Setup Rules

  1. Treat opencode.json as the source of truth for how the MCP server starts.
  2. The MCP server runs from the JAR and skills downloaded from the GitHub release page; the paths are set in opencode.json.
  3. Use OAuth for authentication.
  4. If the runtime exposes setup or auth helper tools, use them before suggesting manual env changes.
  5. Treat PEGA_BASE_URL as the Pega environment root URL only; do not include /prweb or any other path segment.
  6. Separate local plugin validation from remote Pega validation: list-skills confirms bundled skills availability, while list-available-applications or get-application confirms remote connectivity.

Configuration

The MCP server is configured via the mcp section of the project's opencode.json or the global ~/.config/opencode/opencode.json.

Minimum required fields

{
  "mcp": {
    "pega-infinity-authoring": {
      "type": "local",
      "command": ["java", "-jar", "/absolute/path/to/infinity-rules-mcp-<version>.jar", "--spring.profiles.active=stdio"],
      "environment": {
        "PEGA_SKILLS_PATH": "/absolute/path/to/skills",
        "PEGA_CLIENT_MODE": "opencode-plugin",
        "PEGA_BASE_URL": "https://your-pega-environment.example.com"
      },
      "enabled": true
    }
  }
}

Use absolute paths to the downloaded JAR and the extracted skills directory. Set PEGA_BASE_URL to the environment root URL only — do not include /prweb or any other path segment.

Applying configuration changes

Restart opencode after editing opencode.json for changes to take effect. There is no hot-reload for MCP server configuration.

Troubleshooting Focus

Troubleshooting Common Issues

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.