coherence-mcp-server 0.4.1 → 0.4.3
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 +23 -8
- package/README.template.md +23 -8
- package/coherence_mcp_server/__pycache__/__init__.cpython-314.pyc +0 -0
- package/coherence_mcp_server/__pycache__/__main__.cpython-314.pyc +0 -0
- package/coherence_mcp_server/__pycache__/server.cpython-314.pyc +0 -0
- package/coherence_mcp_server/server.py +58 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**Give your AI agent native access to every idea, spec, contributor, and value chain in the Coherence Network.**
|
|
4
4
|
|
|
5
|
-
An [MCP](https://modelcontextprotocol.io/) (Model Context Protocol) server that exposes the full Coherence Network API as
|
|
5
|
+
An [MCP](https://modelcontextprotocol.io/) (Model Context Protocol) server that exposes the full Coherence Network API as 56 typed tools — so Claude, Cursor, Windsurf, or any MCP-compatible agent can browse ideas, look up specs, trace value lineage, link identities, record contributions, execute tasks, discover resonant peers, and apply project blueprints without writing a single API call.
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npx coherence-mcp-server
|
|
@@ -25,6 +25,8 @@ This MCP server changes that. It gives any agent a typed interface to:
|
|
|
25
25
|
- **Evolve** — create new ideas, link dependencies, and navigate the universal graph
|
|
26
26
|
- **Finance** — track treasury balances, record deposits, and monitor assets
|
|
27
27
|
- **Signal** — ingest news, track trending keywords, and measure concept resonance
|
|
28
|
+
- **Peers** — discover resonant contributors by shared interests or proximity
|
|
29
|
+
- **Blueprint** — apply standardized project roadmaps (templates) to instantly seed work
|
|
28
30
|
- **Ontology** — explore the Living Codex (184 universal concepts, 53 axes)
|
|
29
31
|
- **Govern** — propose changes, vote on requests, and monitor network health
|
|
30
32
|
|
|
@@ -73,7 +75,7 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
|
|
|
73
75
|
|
|
74
76
|
---
|
|
75
77
|
|
|
76
|
-
## Tools (
|
|
78
|
+
## Tools (56)
|
|
77
79
|
|
|
78
80
|
### Ideas — the portfolio engine
|
|
79
81
|
|
|
@@ -93,7 +95,7 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
|
|
|
93
95
|
| Tool | What it does |
|
|
94
96
|
|------|-------------|
|
|
95
97
|
| `coherence_list_specs` | Specs with ROI metrics and value gaps. Searchable. |
|
|
96
|
-
| `coherence_get_spec
|
|
98
|
+
| `coherence_get_spec" | Full spec: summary, implementation plan, pseudocode, estimated ROI. |
|
|
97
99
|
|
|
98
100
|
### Value lineage — end-to-end traceability
|
|
99
101
|
|
|
@@ -138,6 +140,20 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
|
|
|
138
140
|
| `coherence_get_entity_edges` | Incoming and outgoing edges for any entity. |
|
|
139
141
|
| `coherence_create_edge` | Create a typed edge between two entities. |
|
|
140
142
|
|
|
143
|
+
### Peers — contributor discovery
|
|
144
|
+
|
|
145
|
+
| Tool | What it does |
|
|
146
|
+
|------|-------------|
|
|
147
|
+
| `coherence_get_resonant_peers` | Discover contributors with similar interests. |
|
|
148
|
+
| `coherence_get_nearby_peers` | Find contributors physically close to you. |
|
|
149
|
+
|
|
150
|
+
### Blueprints — project templates
|
|
151
|
+
|
|
152
|
+
| Tool | What it does |
|
|
153
|
+
|------|-------------|
|
|
154
|
+
| `coherence_list_blueprints` | List available project roadmap templates. |
|
|
155
|
+
| `coherence_apply_blueprint` | Seed a full roadmap of ideas and edges from a template. |
|
|
156
|
+
|
|
141
157
|
### Assets — tracked artifacts
|
|
142
158
|
|
|
143
159
|
| Tool | What it does |
|
|
@@ -195,7 +211,7 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
|
|
|
195
211
|
|
|
196
212
|
## CLI equivalent
|
|
197
213
|
|
|
198
|
-
The Coherence CLI (`npm i -g coherence-cli`) provides the same capabilities as the MCP tools. Run `cc help` for the full list of
|
|
214
|
+
The Coherence CLI (`npm i -g coherence-cli`) provides the same capabilities as the MCP tools. Run `cc help` for the full list of 58 commands.
|
|
199
215
|
|
|
200
216
|
---
|
|
201
217
|
|
|
@@ -206,9 +222,8 @@ Once connected, you can ask your agent things like:
|
|
|
206
222
|
- *"What ideas have the highest ROI right now?"*
|
|
207
223
|
- *"Show me the spec for authentication and summarize the implementation plan"*
|
|
208
224
|
- *"Trace the value chain for the federation idea — who contributed and how much?"*
|
|
209
|
-
- *"
|
|
210
|
-
- *"
|
|
211
|
-
- *"What's the network friction report for the last 30 days?"*
|
|
225
|
+
- *"Who are the resonant peers I should collaborate with based on my interests?"*
|
|
226
|
+
- *"Apply the Python API blueprint to seed our new backend service"*
|
|
212
227
|
- *"Pick the next best idea for me to work on"*
|
|
213
228
|
- *"Create a new idea for 'Automated PR reviews' and link it as enabling the 'GitHub integration' idea"*
|
|
214
229
|
|
|
@@ -234,7 +249,7 @@ Every part of the network links to every other. Jump in wherever makes sense.
|
|
|
234
249
|
| **Web** | Browse ideas, specs, and contributors visually | [coherencycoin.com](https://coherencycoin.com) |
|
|
235
250
|
| **API** | 100+ endpoints, full OpenAPI docs, the engine behind everything | [api.coherencycoin.com/docs](https://api.coherencycoin.com/docs) |
|
|
236
251
|
| **CLI** | Terminal-first access — `npm i -g coherence-cli` then `cc help` | [npm: coherence-cli](https://www.npmjs.com/package/coherence-cli) |
|
|
237
|
-
| **MCP Server** | This package —
|
|
252
|
+
| **MCP Server** | This package — 56 typed tools for AI agents | [npm: coherence-mcp-server](https://www.npmjs.com/package/coherence-mcp-server) |
|
|
238
253
|
| **OpenClaw Skill** | Auto-triggers in any OpenClaw instance for ideas, specs, coherence | [ClawHub: coherence-network](https://clawhub.com/skills/coherence-network) |
|
|
239
254
|
| **GitHub** | Source code, specs, issues, and contribution tracking | [github.com/seeker71/Coherence-Network](https://github.com/seeker71/Coherence-Network) |
|
|
240
255
|
|
package/README.template.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**Give your AI agent native access to every idea, spec, contributor, and value chain in the Coherence Network.**
|
|
4
4
|
|
|
5
|
-
An [MCP](https://modelcontextprotocol.io/) (Model Context Protocol) server that exposes the full Coherence Network API as
|
|
5
|
+
An [MCP](https://modelcontextprotocol.io/) (Model Context Protocol) server that exposes the full Coherence Network API as 56 typed tools — so Claude, Cursor, Windsurf, or any MCP-compatible agent can browse ideas, look up specs, trace value lineage, link identities, record contributions, execute tasks, discover resonant peers, and apply project blueprints without writing a single API call.
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npx coherence-mcp-server
|
|
@@ -25,6 +25,8 @@ This MCP server changes that. It gives any agent a typed interface to:
|
|
|
25
25
|
- **Evolve** — create new ideas, link dependencies, and navigate the universal graph
|
|
26
26
|
- **Finance** — track treasury balances, record deposits, and monitor assets
|
|
27
27
|
- **Signal** — ingest news, track trending keywords, and measure concept resonance
|
|
28
|
+
- **Peers** — discover resonant contributors by shared interests or proximity
|
|
29
|
+
- **Blueprint** — apply standardized project roadmaps (templates) to instantly seed work
|
|
28
30
|
- **Ontology** — explore the Living Codex (184 universal concepts, 53 axes)
|
|
29
31
|
- **Govern** — propose changes, vote on requests, and monitor network health
|
|
30
32
|
|
|
@@ -73,7 +75,7 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
|
|
|
73
75
|
|
|
74
76
|
---
|
|
75
77
|
|
|
76
|
-
## Tools (
|
|
78
|
+
## Tools (56)
|
|
77
79
|
|
|
78
80
|
### Ideas — the portfolio engine
|
|
79
81
|
|
|
@@ -93,7 +95,7 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
|
|
|
93
95
|
| Tool | What it does |
|
|
94
96
|
|------|-------------|
|
|
95
97
|
| `coherence_list_specs` | Specs with ROI metrics and value gaps. Searchable. |
|
|
96
|
-
| `coherence_get_spec
|
|
98
|
+
| `coherence_get_spec" | Full spec: summary, implementation plan, pseudocode, estimated ROI. |
|
|
97
99
|
|
|
98
100
|
### Value lineage — end-to-end traceability
|
|
99
101
|
|
|
@@ -138,6 +140,20 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
|
|
|
138
140
|
| `coherence_get_entity_edges` | Incoming and outgoing edges for any entity. |
|
|
139
141
|
| `coherence_create_edge` | Create a typed edge between two entities. |
|
|
140
142
|
|
|
143
|
+
### Peers — contributor discovery
|
|
144
|
+
|
|
145
|
+
| Tool | What it does |
|
|
146
|
+
|------|-------------|
|
|
147
|
+
| `coherence_get_resonant_peers` | Discover contributors with similar interests. |
|
|
148
|
+
| `coherence_get_nearby_peers` | Find contributors physically close to you. |
|
|
149
|
+
|
|
150
|
+
### Blueprints — project templates
|
|
151
|
+
|
|
152
|
+
| Tool | What it does |
|
|
153
|
+
|------|-------------|
|
|
154
|
+
| `coherence_list_blueprints` | List available project roadmap templates. |
|
|
155
|
+
| `coherence_apply_blueprint` | Seed a full roadmap of ideas and edges from a template. |
|
|
156
|
+
|
|
141
157
|
### Assets — tracked artifacts
|
|
142
158
|
|
|
143
159
|
| Tool | What it does |
|
|
@@ -195,7 +211,7 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
|
|
|
195
211
|
|
|
196
212
|
## CLI equivalent
|
|
197
213
|
|
|
198
|
-
The Coherence CLI (`npm i -g coherence-cli`) provides the same capabilities as the MCP tools. Run `cc help` for the full list of
|
|
214
|
+
The Coherence CLI (`npm i -g coherence-cli`) provides the same capabilities as the MCP tools. Run `cc help` for the full list of 58 commands.
|
|
199
215
|
|
|
200
216
|
---
|
|
201
217
|
|
|
@@ -206,9 +222,8 @@ Once connected, you can ask your agent things like:
|
|
|
206
222
|
- *"What ideas have the highest ROI right now?"*
|
|
207
223
|
- *"Show me the spec for authentication and summarize the implementation plan"*
|
|
208
224
|
- *"Trace the value chain for the federation idea — who contributed and how much?"*
|
|
209
|
-
- *"
|
|
210
|
-
- *"
|
|
211
|
-
- *"What's the network friction report for the last 30 days?"*
|
|
225
|
+
- *"Who are the resonant peers I should collaborate with based on my interests?"*
|
|
226
|
+
- *"Apply the Python API blueprint to seed our new backend service"*
|
|
212
227
|
- *"Pick the next best idea for me to work on"*
|
|
213
228
|
- *"Create a new idea for 'Automated PR reviews' and link it as enabling the 'GitHub integration' idea"*
|
|
214
229
|
|
|
@@ -234,7 +249,7 @@ Every part of the network links to every other. Jump in wherever makes sense.
|
|
|
234
249
|
| **Web** | Browse ideas, specs, and contributors visually | [coherencycoin.com](https://coherencycoin.com) |
|
|
235
250
|
| **API** | 100+ endpoints, full OpenAPI docs, the engine behind everything | [api.coherencycoin.com/docs](https://api.coherencycoin.com/docs) |
|
|
236
251
|
| **CLI** | Terminal-first access — `npm i -g coherence-cli` then `cc help` | [npm: coherence-cli](https://www.npmjs.com/package/coherence-cli) |
|
|
237
|
-
| **MCP Server** | This package —
|
|
252
|
+
| **MCP Server** | This package — 56 typed tools for AI agents | [npm: coherence-mcp-server](https://www.npmjs.com/package/coherence-mcp-server) |
|
|
238
253
|
| **OpenClaw Skill** | Auto-triggers in any OpenClaw instance for ideas, specs, coherence | [ClawHub: coherence-network](https://clawhub.com/skills/coherence-network) |
|
|
239
254
|
| **GitHub** | Source code, specs, issues, and contribution tracking | [github.com/seeker71/Coherence-Network](https://github.com/seeker71/Coherence-Network) |
|
|
240
255
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -619,6 +619,50 @@ TOOLS: list[Tool] = [
|
|
|
619
619
|
},
|
|
620
620
|
},
|
|
621
621
|
),
|
|
622
|
+
# Peers (Contributor Discovery)
|
|
623
|
+
Tool(
|
|
624
|
+
name="coherence_get_resonant_peers",
|
|
625
|
+
description="Find contributors with similar interests (structural resonance) to a specific contributor.",
|
|
626
|
+
inputSchema={
|
|
627
|
+
"type": "object",
|
|
628
|
+
"required": ["contributor_id"],
|
|
629
|
+
"properties": {
|
|
630
|
+
"contributor_id": {"type": "string"},
|
|
631
|
+
"limit": {"type": "number", "default": 20},
|
|
632
|
+
},
|
|
633
|
+
},
|
|
634
|
+
),
|
|
635
|
+
Tool(
|
|
636
|
+
name="coherence_get_nearby_peers",
|
|
637
|
+
description="Find contributors physically close to a specific contributor.",
|
|
638
|
+
inputSchema={
|
|
639
|
+
"type": "object",
|
|
640
|
+
"required": ["contributor_id"],
|
|
641
|
+
"properties": {
|
|
642
|
+
"contributor_id": {"type": "string"},
|
|
643
|
+
"radius_km": {"type": "number", "default": 100.0},
|
|
644
|
+
"limit": {"type": "number", "default": 20},
|
|
645
|
+
},
|
|
646
|
+
},
|
|
647
|
+
),
|
|
648
|
+
# Blueprints (Project Templates)
|
|
649
|
+
Tool(
|
|
650
|
+
name="coherence_list_blueprints",
|
|
651
|
+
description="List available project roadmap blueprints (templates).",
|
|
652
|
+
inputSchema={"type": "object", "properties": {}},
|
|
653
|
+
),
|
|
654
|
+
Tool(
|
|
655
|
+
name="coherence_apply_blueprint",
|
|
656
|
+
description="Seed a full roadmap of ideas and edges from a blueprint template.",
|
|
657
|
+
inputSchema={
|
|
658
|
+
"type": "object",
|
|
659
|
+
"required": ["blueprint_id"],
|
|
660
|
+
"properties": {
|
|
661
|
+
"blueprint_id": {"type": "string"},
|
|
662
|
+
"prefix": {"type": "string", "description": "Optional ID prefix for created ideas"},
|
|
663
|
+
},
|
|
664
|
+
},
|
|
665
|
+
),
|
|
622
666
|
# Concepts (Living Codex ontology)
|
|
623
667
|
Tool(
|
|
624
668
|
name="coherence_list_concepts",
|
|
@@ -910,6 +954,20 @@ def dispatch(name: str, args: dict[str, Any]) -> Any:
|
|
|
910
954
|
return api_get("/api/dif/stats")
|
|
911
955
|
case "coherence_get_recent_dif":
|
|
912
956
|
return api_get("/api/dif/recent", {"limit": args.get("limit", 20)})
|
|
957
|
+
# Peers
|
|
958
|
+
case "coherence_get_resonant_peers":
|
|
959
|
+
return api_get("/api/peers/resonant", {"contributor_id": args["contributor_id"], "limit": args.get("limit", 20)})
|
|
960
|
+
case "coherence_get_nearby_peers":
|
|
961
|
+
return api_get("/api/peers/nearby", {
|
|
962
|
+
"contributor_id": args["contributor_id"],
|
|
963
|
+
"radius_km": args.get("radius_km", 100.0),
|
|
964
|
+
"limit": args.get("limit", 20)
|
|
965
|
+
})
|
|
966
|
+
# Blueprints
|
|
967
|
+
case "coherence_list_blueprints":
|
|
968
|
+
return api_get("/api/blueprints")
|
|
969
|
+
case "coherence_apply_blueprint":
|
|
970
|
+
return api_post(f"/api/blueprints/{args['blueprint_id']}/apply", {"prefix": args.get("prefix", "")})
|
|
913
971
|
# Concepts
|
|
914
972
|
case "coherence_list_concepts":
|
|
915
973
|
if args.get("search"):
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coherence-mcp-server",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Unified MCP server for the Coherence Network — 51 typed tools for AI agents to browse ideas, manage tasks, link identities, and navigate the universal graph.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|