feat: expose loop-audit and circuit breaker over MCP - #360
Merged
Conversation
THRISHAL12345
force-pushed
the
expose-mcp-tools
branch
from
July 23, 2026 08:45
4a100a7 to
6739337
Compare
3 tasks
This was referenced Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Exposes the
loop_audit_scoreandloop_check_breakertools through the Model Context Protocol (MCP) server, enabling AI agents to dynamically query a project's readiness score and circuit breaker (stagnation) status.Changes
templates/pattern-template.mdand updatedregistry.yaml)mcp-server)Checklist (from CONTRIBUTING)
README.md,patterns/README.md,starters/README.md, anddocs/index.mdSTATE.mdexamples use the.examplesuffixdocs/safety.mdnode tools/loop-audit/dist/cli.js .(or on the starter) and addressed all findingsTesting / Dogfooding
loop-auditpasses on the affected starters or this repositoryScreenshots / Examples
loop_audit_scorevia MCP (JSON-RPC over stdio)Response
{ "result": { "content": [ { "type": "text", "text": "## Loop Readiness: 100/100 (L3)\nStrong loop readiness — good candidate for L3 with explicit gates.\n\n- ✅ State file(s): STATE.md\n- ✅ Triage skill present.\n- ✅ Verifier skill present.\n- ✅ Safety documentation present.\n..." } ] }, "jsonrpc": "2.0", "id": 2 }loop_check_breakervia MCP (JSON-RPC over stdio)Response (inactive state)
{ "result": { "content": [ { "type": "text", "text": "No loop-ledger.json found. Circuit breaker is inactive." } ] }, "jsonrpc": "2.0", "id": 3 }