Skip to main content
Glama
sole03

mcp-rule-engine

by sole03

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DATABASE_URLYesThe path to the SQLite database file. Example: file:D:/Desktop/mcp/prisma/data/rules.db

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}
resources
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
analyze_workspaceC

Analyze a git workspace diff for rule violations

capture_diffC

Capture and analyze a code diff for rule violations

query_rulesC

Query rules by language and file path

generate_rules_from_cognitionC

Explicitly learn a governance rule from a (language, pattern, suggestion) triple, building the cognition closure (PATTERN→INTENT→CONSTRAINT) and a pending shadow Rule

confirm_ruleC

Accept, reject, edit, or skip a suggested rule

resolve_conflictD

Resolve a rule conflict

list_rulesC

List rules with optional filters

cognition_queryC

Query the cognition graph from a context hash

cognition_validateC

Validate code content against an AST template

cognition_feedbackC

Submit feedback to adjust edge weights

cognition_approve_injectionC

Approve, reject, or override a pending injection proposal

cognition_update_configC

Update server configuration

governance_pause_arbitratorC

Pause the automatic constraint arbitrator for N minutes

governance_rollback_arbitrationC

Rollback auto-resolved conflicts since an ISO datetime

analyze_projectC

Scan a project directory to extract file stats, detect coding conventions, and batch-create cognition nodes for governance initialization

session_createC

Create a new collaborative session for multi-turn governance workflows

session_joinC

Join an existing collaborative session

session_leaveC

Leave a collaborative session

session_statusC

Get session details, participants, context, and optionally tool call history

session_listA

List all active sessions, optionally filtered by project

session_contextC

Set or get a shared context value within a session

webhook_registerB

Register a webhook URL to receive governance events (rule created, conflict resolved, etc.)

webhook_unregisterA

Remove a registered webhook by ID

webhook_listA

List all registered webhooks and delivery statistics

webhook_testB

Send a test ping to a registered webhook to verify connectivity

plugin_loadA

Load a GovernFlow plugin from an NPM package name or local file path

plugin_unloadB

Unload a loaded plugin by plugin name or instance ID

plugin_listA

List all loaded plugins with status and registered extensions

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
Cognition Graph SchemaJSON Schema of the cognition graph data model, including CognitionNode, CognitionEdge, and AstTemplate tables and their relationships.
Cognition Engine StatisticsCurrent graph statistics: node count, edge count, feedback event count, and average traversal latency. Useful for health checks and capacity planning.
Cognition Engine DocumentationGovernFlow project README. Agents can read this to understand the project architecture, quickstart guide, and available MCP tools.
Rules ChangelogVersioned changelog of global rule changes. Returns version = SHA-256 prefix of updated_at field. Agents must read this before making rule modifications.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/sole03/governflow'

If you have feedback or need assistance with the MCP directory API, please join our Discord server