
opa mcp
Exposes a rego language server (from OpenPolicyAgent/OPA) for MCP
Repository Info
About This Server
Exposes a rego language server (from OpenPolicyAgent/OPA) for MCP
Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.
Documentation
OPA MCP
Exposes a rego language server for MCP
Pre-requisites
Install mcp language server:
go install github.com/isaacphi/mcp-language-server@latest
Install regal from github.com/StyraInc/regal
Code Guidelines
This project follows the coding guidelines specified in .github/copilot-instructions.md. These guidelines ensure consistent code generation and AI-assisted development practices across the codebase.
Demo queries
- whats the definition of amount_allowed?
- give me diagnostics of the simple.rego file
- display the metadata and documentation of amount_allowed
Problems
- rename all symbols from "allow" to "allowed"
- method not supported: textDocument/references (code: -32601)
- give me all references of the "user" function
- method not supported: textDocument/references (code: -32601)
Quick Start
Clone the repository
git clone https://github.com/mheers/opa-mcpInstall dependencies
cd opa-mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.