- Remote MCP: a hosted MCP server built into GoRules. Connect Claude, ChatGPT, or any MCP client with a URL, no installation required.
- Local MCP: a developer bridge through the GoRules CLI that connects local AI editors to the workspace open in your browser.
Remote MCP
Remote MCP gives AI assistants direct access to your GoRules organisation. An assistant can browse projects, read and edit graphs and policies, run tests and evaluations, and commit changes or open merge requests, always with your own permissions.Server URL
Point your MCP client at your GoRules host followed by/api/mcp:
eu1 instead of us1 for the Europe region, or https://<your-host>/api/mcp for a self-hosted installation.
There is nothing to configure in GoRules beforehand. The client registers itself automatically (OAuth dynamic client registration) and opens a GoRules sign-in page where you approve access.
Connect Claude
- In Claude, open Settings > Connectors.
- Click Add custom connector.
- Enter a Name (for example
GoRules) and the MCP server URL from above. - Click Continue, then sign in to GoRules and click Allow.
Connect ChatGPT
- Turn on developer mode in Settings > Security and login > Developer mode.
- Go to ChatGPT Plugins and click the + button.
- Enter a name and description, and under Connection enter the MCP server URL from above.
- Select OAuth as the authentication method and create the connection.
- Sign in to GoRules and click Allow.
Approval and access
The first time an app connects, it must be allowed for your organisation:- When an administrator connects it, the app is enabled for the whole organisation.
- When a member connects it first, the request waits for an administrator. Once approved in Settings > Integrations & Apps, the member connects again.
How changes are saved
Edits made by an assistant go to a private working copy for the branch, just like editing in the browser. Nothing is committed until the assistant commits the working copy. Committing frommain creates a new branch and opens a merge request for review.
Self-hosted prerequisites
- Secrets encryption: remote MCP signs its OAuth tokens with per-organisation keys that are stored encrypted with your KEK/DEK setup. Configure a production key provider first, see Secrets management.
- Public HTTPS URL: Claude and ChatGPT connect from the internet, so GoRules must be reachable over HTTPS at its configured app URL.
- Enabled flag: remote MCP is controlled by the
MCP_ENABLEDenvironment variable.
Local MCP
The local bridge is intended for developers using AI editors such as Claude Code or Cursor. The GoRules CLI runs an MCP server on your machine and forwards tool calls to the GoRules workspace open in your browser, so assistants work on exactly what you have open, including unsaved changes.Setup
-
Start the bridge:
The CLI listens on
localhost:41919and prints an 8-character token. - In GoRules, open Developer Tools, select MCP Server (local), and paste the token. The status changes to Connected.
- Add the server to your AI assistant:
- Claude Code
- Cursor
- Other clients
CLI options
Troubleshooting
- “Browser not connected”: open Developer Tools > MCP Server (local) and paste the token from the CLI.
- Connection blocked: the browser is blocking local network access. Allow it in the site permissions next to the address bar, then reload.
- “Tool execution timed out”: the GoRules tab may be in the background. Bring it to the foreground.