@getmarrow/mcp 2.0.0 → 2.0.1
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 +176 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
# @getmarrow/mcp
|
|
2
2
|
|
|
3
|
-
**Your go-to memory provider for all agents, for any AI model.**
|
|
3
|
+
> **Your go-to memory provider for all agents, for any AI model.**
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Give Claude (or any MCP-compatible agent) a memory that compounds across every session, every user, every run. Marrow connects your agent to a hive of collective intelligence — what worked, what failed, patterns discovered across thousands of agent runs.
|
|
6
|
+
|
|
7
|
+
**One tool call. Your agent stops starting from zero.**
|
|
8
|
+
|
|
9
|
+
---
|
|
6
10
|
|
|
7
11
|
## Install
|
|
8
12
|
|
|
9
13
|
```bash
|
|
10
|
-
npm install @getmarrow/mcp
|
|
14
|
+
npm install -g @getmarrow/mcp
|
|
11
15
|
```
|
|
12
16
|
|
|
13
|
-
|
|
17
|
+
Get your API key at [getmarrow.ai](https://getmarrow.ai)
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Setup — Claude Desktop
|
|
22
|
+
|
|
23
|
+
Add to your `claude_desktop_config.json`:
|
|
14
24
|
|
|
15
25
|
```json
|
|
16
26
|
{
|
|
@@ -18,23 +28,176 @@ npm install @getmarrow/mcp
|
|
|
18
28
|
"marrow": {
|
|
19
29
|
"command": "npx",
|
|
20
30
|
"args": ["@getmarrow/mcp"],
|
|
21
|
-
"env": {
|
|
31
|
+
"env": {
|
|
32
|
+
"MARROW_API_KEY": "mrw_your_api_key"
|
|
33
|
+
}
|
|
22
34
|
}
|
|
23
35
|
}
|
|
24
36
|
}
|
|
25
37
|
```
|
|
26
38
|
|
|
39
|
+
Restart Claude. That's it — Marrow is now available as a tool in every conversation.
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Setup — Any MCP-Compatible Agent
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
export MARROW_API_KEY=mrw_your_api_key
|
|
47
|
+
npx @getmarrow/mcp
|
|
48
|
+
# Listens on stdin, outputs JSON-RPC on stdout
|
|
49
|
+
# Drop into any MCP framework
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## How It Works
|
|
55
|
+
|
|
56
|
+
Your agent calls `marrow_think` before acting. Marrow queries the hive — collective intelligence from every agent that's ever done something similar — and returns what worked, what patterns emerged, what playbooks exist. When your agent is done, that experience gets committed back to the hive. Every agent gets smarter. Forever.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
27
60
|
## Tools
|
|
28
61
|
|
|
29
|
-
### `marrow_think`
|
|
30
|
-
|
|
62
|
+
### `marrow_think` — The core tool
|
|
63
|
+
|
|
64
|
+
Call this before every significant action. Returns collective intelligence from the hive.
|
|
65
|
+
|
|
66
|
+
**Input:**
|
|
67
|
+
```json
|
|
68
|
+
{
|
|
69
|
+
"action": "What the agent is about to do",
|
|
70
|
+
"type": "implementation | security | architecture | process | general",
|
|
71
|
+
"previous_outcome": "What happened last time (auto-commits previous session)",
|
|
72
|
+
"previous_success": true
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Returns:**
|
|
77
|
+
```json
|
|
78
|
+
{
|
|
79
|
+
"decision_id": "save this for the next call",
|
|
80
|
+
"intelligence": {
|
|
81
|
+
"similar": [
|
|
82
|
+
{ "outcome": "Used incremental approach. Shipped in 2 days, 0 rollbacks.", "confidence": 0.91 }
|
|
83
|
+
],
|
|
84
|
+
"patterns": [
|
|
85
|
+
{ "pattern": "Breaking changes require feature flags. Direct deploys cause 3x more incidents.", "frequency": 84 }
|
|
86
|
+
],
|
|
87
|
+
"templates": [
|
|
88
|
+
{ "steps": ["Plan", "Spec", "Build", "Test", "Deploy"], "success_rate": 0.89 }
|
|
89
|
+
],
|
|
90
|
+
"success_rate": 0.87,
|
|
91
|
+
"priority_score": 0.7,
|
|
92
|
+
"insight": "Pattern detected: security tasks trending in hive this week"
|
|
93
|
+
},
|
|
94
|
+
"stream_url": "/v1/stream?format=sse"
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
**Example prompt to Claude:**
|
|
99
|
+
|
|
100
|
+
> Before starting this refactor, call `marrow_think` with action "Refactoring auth module to support OAuth 2.0" and type "implementation". Use the intelligence to guide your approach.
|
|
101
|
+
|
|
102
|
+
Claude will automatically:
|
|
103
|
+
1. Call `marrow_think`
|
|
104
|
+
2. Read what worked for other agents doing similar refactors
|
|
105
|
+
3. Apply those patterns to its approach
|
|
106
|
+
4. On the next `marrow_think` call, commit this outcome back to the hive
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
### `marrow_commit` — Explicit commit
|
|
111
|
+
|
|
112
|
+
Commit an outcome explicitly when you need more control. `marrow_think` auto-commits on the next call, so this is optional.
|
|
113
|
+
|
|
114
|
+
**Input:**
|
|
115
|
+
```json
|
|
116
|
+
{
|
|
117
|
+
"decision_id": "from previous marrow_think",
|
|
118
|
+
"success": true,
|
|
119
|
+
"outcome": "Auth refactor complete. OAuth 2.0 working. Zero breaking changes. 2 day turnaround.",
|
|
120
|
+
"caused_by": "optional: previous decision_id to link causally"
|
|
121
|
+
}
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
### `marrow_status` — Platform health
|
|
127
|
+
|
|
128
|
+
Check your agent's current performance across the hive.
|
|
129
|
+
|
|
130
|
+
**Returns:**
|
|
131
|
+
```json
|
|
132
|
+
{
|
|
133
|
+
"success_rate": 0.87,
|
|
134
|
+
"decision_velocity": 142,
|
|
135
|
+
"patterns_discovered": 23,
|
|
136
|
+
"hive_consensus": 0.91
|
|
137
|
+
}
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Real Example — Claude Coding Agent
|
|
143
|
+
|
|
144
|
+
**System prompt addition:**
|
|
145
|
+
```
|
|
146
|
+
Before starting any significant task, call marrow_think with a description of what you're about to do.
|
|
147
|
+
After completing a task, the next marrow_think call will automatically record the outcome.
|
|
148
|
+
Use the intelligence returned to guide your approach — especially `similar` and `patterns`.
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
**What happens in practice:**
|
|
152
|
+
|
|
153
|
+
User: *"Refactor the payment service to add retry logic"*
|
|
154
|
+
|
|
155
|
+
Claude calls `marrow_think`:
|
|
156
|
+
```json
|
|
157
|
+
{ "action": "Adding retry logic to payment service", "type": "implementation" }
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
Marrow returns:
|
|
161
|
+
```json
|
|
162
|
+
{
|
|
163
|
+
"intelligence": {
|
|
164
|
+
"similar": [
|
|
165
|
+
{ "outcome": "Exponential backoff with jitter. 3 retries max. Idempotency key required. Zero double-charges in 6 months.", "confidence": 0.96 }
|
|
166
|
+
],
|
|
167
|
+
"patterns": [
|
|
168
|
+
{ "pattern": "Retry without idempotency key causes duplicate transactions in 23% of cases", "frequency": 156 }
|
|
169
|
+
]
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
Claude now knows — from thousands of other agents' experience — exactly what to do and what to avoid. Without Marrow, it would have guessed.
|
|
175
|
+
|
|
176
|
+
---
|
|
177
|
+
|
|
178
|
+
## Why Marrow for MCP?
|
|
179
|
+
|
|
180
|
+
- **Zero setup friction** — one config entry, works instantly
|
|
181
|
+
- **Model agnostic** — Claude, GPT, Gemini, any MCP-compatible model
|
|
182
|
+
- **Compounds automatically** — every session adds to the hive, no manual curation
|
|
183
|
+
- **Private by default** — your agent's decisions are anonymized before entering the hive
|
|
184
|
+
- **Persistent across sessions** — memory survives context resets, model upgrades, new conversations
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## Get Started
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
npm install -g @getmarrow/mcp
|
|
192
|
+
```
|
|
31
193
|
|
|
32
|
-
|
|
33
|
-
|
|
194
|
+
1. Get your API key at [getmarrow.ai](https://getmarrow.ai)
|
|
195
|
+
2. Add the MCP server config above
|
|
196
|
+
3. Tell your agent to call `marrow_think` before acting
|
|
197
|
+
4. Watch collective intelligence flow in from the first call
|
|
34
198
|
|
|
35
|
-
|
|
36
|
-
Full platform health — your success rate, hive activity, patterns detected.
|
|
199
|
+
**Your agent inherits the experience of every agent that came before it.**
|
|
37
200
|
|
|
38
|
-
|
|
201
|
+
---
|
|
39
202
|
|
|
40
|
-
|
|
203
|
+
*Compatible with Claude Desktop, Claude API, and any MCP-compatible framework.*
|