couchloop-eq-mcp 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -50
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# CouchLoop EQ
|
|
1
|
+
# CouchLoop EQ - MCP Server
|
|
2
2
|
|
|
3
3
|
Behavioral governance layer for safer, more consistent AI conversations.
|
|
4
4
|
|
|
@@ -31,7 +31,7 @@ Behavioral governance layer for safer, more consistent AI conversations.
|
|
|
31
31
|
|
|
32
32
|
## What is CouchLoop EQ?
|
|
33
33
|
|
|
34
|
-
CouchLoop EQ
|
|
34
|
+
CouchLoop EQ is a behavioral governance layer for AI assistants. Built on MCP (Model Context Protocol), it monitors for hallucination, inconsistency, and unsafe reasoning patterns while managing stateful AI sessions.
|
|
35
35
|
|
|
36
36
|
## Why CouchLoop EQ?
|
|
37
37
|
|
|
@@ -48,32 +48,19 @@ Unlike raw LLMs that can hallucinate packages, generate insecure code, and lose
|
|
|
48
48
|
| 🔍 **Sloppy AI code** | `verify` pre-checks AI responses for hallucinated APIs and bad imports |
|
|
49
49
|
| 💡 **Unstructured thinking** | `brainstorm` helps think through trade-offs, compare options, decompose ideas |
|
|
50
50
|
|
|
51
|
-
##
|
|
51
|
+
## Architecture
|
|
52
52
|
|
|
53
|
-
CouchLoop EQ
|
|
53
|
+
CouchLoop EQ uses a modular pipeline:
|
|
54
54
|
|
|
55
|
-
### Architecture Evolution
|
|
56
55
|
```
|
|
57
|
-
|
|
58
|
-
V2: Request → Classify → Policy → Plan → Execute → Compose (fast, flexible)
|
|
56
|
+
Request -> Classify -> Policy -> Plan -> Execute -> Compose
|
|
59
57
|
```
|
|
60
58
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|--------|-----|-----|------------|
|
|
64
|
-
| **P95 Latency** | 4.5s | < 3.0s | 33% faster |
|
|
65
|
-
| **Direct Routing** | 0% | 60%+ | Bypasses router for high confidence |
|
|
66
|
-
| **Parallel Execution** | No | Yes | 2-4x throughput |
|
|
67
|
-
| **Circuit Breakers** | No | Yes | Auto-recovery from failures |
|
|
68
|
-
| **Observability** | Basic logs | Full tracing | 100% request visibility |
|
|
69
|
-
|
|
70
|
-
### V2 Core Components
|
|
71
|
-
- **Intent Classifier**: Confidence-based routing (no more regex-only)
|
|
72
|
-
- **Policy Engine**: Health-aware decisions with fallbacks
|
|
59
|
+
- **Intent Classifier**: Confidence-based routing with multi-intent detection
|
|
60
|
+
- **Policy Engine**: Health-aware routing with fallbacks and crisis override
|
|
73
61
|
- **Execution Planner**: DAG generation for parallel operations
|
|
74
|
-
- **Tool Registry**:
|
|
62
|
+
- **Tool Registry**: Health tracking and circuit breakers
|
|
75
63
|
- **OpenTelemetry**: Distributed tracing across all stages
|
|
76
|
-
- **Feature Flags**: Gradual rollout control (0-100%)
|
|
77
64
|
|
|
78
65
|
## Key Safety Features
|
|
79
66
|
|
|
@@ -100,7 +87,7 @@ V2: Request → Classify → Policy → Plan → Execute → Compose (fast, flex
|
|
|
100
87
|
|
|
101
88
|
## Quick Start
|
|
102
89
|
|
|
103
|
-
CouchLoop EQ is a standard MCP server that works with **any MCP-compatible client
|
|
90
|
+
CouchLoop EQ is a standard MCP server that works with **any MCP-compatible client** - Claude Desktop, ChatGPT, Cursor, Windsurf, VS Code, and more.
|
|
104
91
|
|
|
105
92
|
### Option 1: Connect to Hosted Server (Easiest)
|
|
106
93
|
|
|
@@ -121,7 +108,7 @@ For Claude Desktop (v0.7.0+), add to `~/Library/Application Support/Claude/claud
|
|
|
121
108
|
|
|
122
109
|
Restart Claude and try: **"Start a daily reflection session"**
|
|
123
110
|
|
|
124
|
-
### Option 2: Run Locally
|
|
111
|
+
### Option 2: Run Locally
|
|
125
112
|
|
|
126
113
|
```bash
|
|
127
114
|
npm install -g couchloop-eq-mcp
|
|
@@ -142,7 +129,7 @@ Add to Claude Desktop configuration:
|
|
|
142
129
|
}
|
|
143
130
|
```
|
|
144
131
|
|
|
145
|
-
|
|
132
|
+
Sessions automatically persist locally to `~/.couchloop-mcp/identity.json` - no signup required.
|
|
146
133
|
|
|
147
134
|
### For ChatGPT (Developer Mode)
|
|
148
135
|
|
|
@@ -169,40 +156,44 @@ For local development:
|
|
|
169
156
|
- Use ngrok or deploy your own server
|
|
170
157
|
- Follow setup in [CHATGPT_SETUP.md](CHATGPT_SETUP.md)
|
|
171
158
|
|
|
172
|
-
## Available Tools (
|
|
159
|
+
## Available Tools (10 Primary)
|
|
173
160
|
|
|
174
|
-
CouchLoop EQ
|
|
175
|
-
|
|
176
|
-
> **v2.0:** Direct routing for high confidence (bypasses router), parallel execution for multi-intent requests, circuit breakers for automatic recovery, and full OpenTelemetry tracing.
|
|
161
|
+
CouchLoop EQ provides 10 MCP tools with intelligent routing. The `couchloop` intent router handles ambiguous or multi-intent requests, while high-confidence intents can call tools directly.
|
|
177
162
|
|
|
178
163
|
### Universal Entry Point
|
|
179
164
|
|
|
180
165
|
| Tool | Description |
|
|
181
166
|
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
182
|
-
| `couchloop` | **Intent router**
|
|
167
|
+
| `couchloop` | **Intent router** - Routes any loose command to the right tool. Use for: "end session", "save this", "review code", "brainstorm this", "help me", etc. |
|
|
168
|
+
|
|
169
|
+
### Governance
|
|
170
|
+
|
|
171
|
+
| Tool | Description |
|
|
172
|
+
| ------- | -------------------------------------------------------------------------------------------------------- |
|
|
173
|
+
| `guard` | **Per-turn governance** - Evaluates draft responses before delivery. Actions: pass, modified, or blocked |
|
|
183
174
|
|
|
184
175
|
### Core Tools
|
|
185
176
|
|
|
186
177
|
| Tool | Description |
|
|
187
178
|
| --------------- | --------------------------------------------------------------------------------------------------------------------- |
|
|
188
|
-
| `verify` | **Pre-delivery verification**
|
|
189
|
-
| `status` | **Dashboard**
|
|
179
|
+
| `verify` | **Pre-delivery verification** - Catches AI hallucinations, validates packages, checks code before presenting to users |
|
|
180
|
+
| `status` | **Dashboard** - Session progress, history, context window usage, protection status, preferences |
|
|
190
181
|
| `conversation` | AI conversation with crisis detection and session memory. Actions: start, send, end, resume, status |
|
|
191
|
-
| `brainstorm` | **Standalone dev thinking partner**
|
|
192
|
-
| `code_review` | Complete code analysis
|
|
193
|
-
| `package_audit` | Dependency audit
|
|
182
|
+
| `brainstorm` | **Standalone dev thinking partner** - trade-off analysis, feature design, architecture decisions |
|
|
183
|
+
| `code_review` | Complete code analysis - security vulnerabilities, code smells, AI-generated errors |
|
|
184
|
+
| `package_audit` | Dependency audit - validates packages exist, checks versions, finds vulnerabilities |
|
|
194
185
|
| `remember` | Save and recall context, checkpoints, insights across sessions |
|
|
195
|
-
| `protect` | File protection
|
|
186
|
+
| `protect` | File protection - backup, freeze, rollback, restore |
|
|
196
187
|
|
|
197
188
|
### Usage Examples
|
|
198
189
|
|
|
199
190
|
```
|
|
200
191
|
# Via intent router (recommended for loose commands)
|
|
201
|
-
"end session"
|
|
202
|
-
"save this for later"
|
|
203
|
-
"review my code"
|
|
204
|
-
"brainstorm a feature"
|
|
205
|
-
"what can you do"
|
|
192
|
+
"end session" -> couchloop routes to conversation(action: end)
|
|
193
|
+
"save this for later" -> couchloop routes to remember(action: save)
|
|
194
|
+
"review my code" -> couchloop routes to code_review
|
|
195
|
+
"brainstorm a feature" -> couchloop routes to brainstorm
|
|
196
|
+
"what can you do" -> couchloop returns capabilities list
|
|
206
197
|
|
|
207
198
|
# Direct tool calls (for precise control)
|
|
208
199
|
conversation(action: "start", message: "Begin daily reflection")
|
|
@@ -214,7 +205,7 @@ code_review(code: "function foo()...") # Analyze code
|
|
|
214
205
|
|
|
215
206
|
## Real-World Usage
|
|
216
207
|
|
|
217
|
-
CouchLoop EQ is actively used in production development. Here
|
|
208
|
+
CouchLoop EQ is actively used in production development. Here is what 2 weeks of actual usage looked like:
|
|
218
209
|
|
|
219
210
|
### Usage Statistics
|
|
220
211
|
|
|
@@ -268,22 +259,22 @@ This insight was captured mid-debugging session, preserved across context window
|
|
|
268
259
|
|
|
269
260
|
| Feature Size | Recommended Actions |
|
|
270
261
|
| --------------------- | -------------------------------------------------------------------------------------------- |
|
|
271
|
-
| **Small fix** | `
|
|
272
|
-
| **Medium feature** | `
|
|
273
|
-
| **Large feature set** | `
|
|
262
|
+
| **Small fix** | `remember` with type `insight` - Quick note of what was done and why |
|
|
263
|
+
| **Medium feature** | `remember` with type `insight` + `checkpoint` - Capture decisions and state |
|
|
264
|
+
| **Large feature set** | Multiple `remember` calls (insight, checkpoint, decision) - Full architecture context |
|
|
274
265
|
|
|
275
|
-
**Why this matters:** When you need to review or debug later, you can retrieve the exact context of what was just built
|
|
266
|
+
**Why this matters:** When you need to review or debug later, you can retrieve the exact context of what was just built - even weeks later, across different AI sessions.
|
|
276
267
|
|
|
277
268
|
```
|
|
278
|
-
"Get my insights tagged 'auth-refactor'"
|
|
279
|
-
"Resume my Sprint 42 session"
|
|
269
|
+
"Get my insights tagged 'auth-refactor'" -> Instant recall of decisions made
|
|
270
|
+
"Resume my Sprint 42 session" -> Pick up exactly where you left off
|
|
280
271
|
```
|
|
281
272
|
|
|
282
273
|
## Available Journeys
|
|
283
274
|
|
|
284
|
-
- **Daily Reflection** (5 min)
|
|
285
|
-
- **Gratitude Practice** (3 min)
|
|
286
|
-
- **Weekly Review** (10 min)
|
|
275
|
+
- **Daily Reflection** (5 min) - A brief check-in to process your day
|
|
276
|
+
- **Gratitude Practice** (3 min) - Notice and name three things you appreciate
|
|
277
|
+
- **Weekly Review** (10 min) - Look back on your week and set intentions
|
|
287
278
|
|
|
288
279
|
## Example Usage
|
|
289
280
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "couchloop-eq-mcp",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "Behavioral governance layer for LLMs - monitors for hallucination, inconsistency, tone drift, and unsafe reasoning while managing stateful AI sessions",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|