@gorules/cli) is an open-source command-line tool that bridges GoRules BRMS projects to your local development environment. It exposes an MCP (Model Context Protocol) server so AI-powered editors like Claude Code, Cursor, and Windsurf can read, evaluate, and interact with your decision logic directly.
GitHub: github.com/gorules/cli
Installation
Quick start
Start the MCP bridge:- Exposes an MCP endpoint for AI tools to discover and call GoRules tools
- Exposes REST endpoints for evaluating decisions and fetching decision files
- Opens a WebSocket connection that the GoRules browser editor connects to
Commands
gorules mcp start
Start the MCP bridge server.
| Flag | Alias | Default | Description |
|---|---|---|---|
--port | -p | 41919 | Server port |
--host | -h | localhost | Server host |
--url | -u | - | GoRules server URL |
--open | - | false | Open browser on start |
REST API
When the bridge is running, it exposes HTTP endpoints for local development.Evaluate a decision
trace (boolean), maxDepth (number).
Retrieve a decision file
How it works
The CLI acts as a bridge between AI tools and the GoRules browser editor:- The CLI starts and generates a connection token
- The GoRules browser editor connects via WebSocket using the token
- The editor sends a tool manifest - the list of available tools for that project
- AI tools discover these tools via MCP and invoke them
- The CLI forwards tool calls to the browser, which executes them and returns results