coherence-mcp-server 0.3.1 → 0.4.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 +82 -117
- package/README.template.md +86 -40
- package/coherence_mcp_server/__init__.py +17 -0
- package/coherence_mcp_server/__main__.py +20 -0
- 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 +966 -0
- package/index.mjs +36 -369
- package/package.json +10 -5
- package/pyproject.toml +54 -0
package/README.md
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
<!-- AUTO-GENERATED from README.template.md. Edit the template, not this file. -->
|
|
2
1
|
# coherence-mcp-server
|
|
3
2
|
|
|
4
3
|
**Give your AI agent native access to every idea, spec, contributor, and value chain in the Coherence Network.**
|
|
5
4
|
|
|
6
|
-
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 51 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, and evolve the project graph without writing a single API call.
|
|
7
6
|
|
|
8
7
|
```bash
|
|
9
8
|
npx coherence-mcp-server
|
|
@@ -22,7 +21,12 @@ This MCP server changes that. It gives any agent a typed interface to:
|
|
|
22
21
|
- **Discover** — browse ideas ranked by ROI, search specs, see what's resonating
|
|
23
22
|
- **Trace** — follow value from idea through spec, implementation, usage, and payout
|
|
24
23
|
- **Attribute** — link any of 37 identity providers, record contributions, check ledgers
|
|
25
|
-
- **
|
|
24
|
+
- **Execute** — participate in the agent work pipeline (claim tasks, report results)
|
|
25
|
+
- **Evolve** — create new ideas, link dependencies, and navigate the universal graph
|
|
26
|
+
- **Finance** — track treasury balances, record deposits, and monitor assets
|
|
27
|
+
- **Signal** — ingest news, track trending keywords, and measure concept resonance
|
|
28
|
+
- **Ontology** — explore the Living Codex (184 universal concepts, 53 axes)
|
|
29
|
+
- **Govern** — propose changes, vote on requests, and monitor network health
|
|
26
30
|
|
|
27
31
|
Every tool returns structured JSON. No parsing HTML. No scraping. Just clean data.
|
|
28
32
|
|
|
@@ -69,7 +73,7 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
|
|
|
69
73
|
|
|
70
74
|
---
|
|
71
75
|
|
|
72
|
-
## Tools (
|
|
76
|
+
## Tools (51)
|
|
73
77
|
|
|
74
78
|
### Ideas — the portfolio engine
|
|
75
79
|
|
|
@@ -77,6 +81,8 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
|
|
|
77
81
|
|------|-------------|
|
|
78
82
|
| `coherence_list_ideas` | Browse ideas ranked by ROI and free-energy score. Filter with `search`, limit with `limit`. |
|
|
79
83
|
| `coherence_get_idea` | Full detail for one idea: scores, open questions, cost vectors, value gaps. |
|
|
84
|
+
| `coherence_create_idea` | Create a new idea in the portfolio. |
|
|
85
|
+
| `coherence_update_idea` | Update an existing idea (stage, status, metadata). |
|
|
80
86
|
| `coherence_idea_progress` | Stage, tasks by phase, CC staked and spent, contributor list. |
|
|
81
87
|
| `coherence_select_idea` | Let the portfolio engine pick the next highest-ROI idea. `temperature` controls explore vs exploit. |
|
|
82
88
|
| `coherence_showcase` | Validated, shipped ideas that have proven their value. |
|
|
@@ -112,45 +118,84 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
|
|
|
112
118
|
| `coherence_record_contribution` | Record work by contributor name or by provider identity (no registration needed). |
|
|
113
119
|
| `coherence_contributor_ledger` | CC balance, contribution history, and linked ideas. |
|
|
114
120
|
|
|
115
|
-
###
|
|
121
|
+
### Tasks — agent work protocol
|
|
122
|
+
|
|
123
|
+
| Tool | What it does |
|
|
124
|
+
|------|-------------|
|
|
125
|
+
| `coherence_list_tasks` | See what tasks are pending, running, or failed. |
|
|
126
|
+
| `coherence_get_task` | Full task details, direction, and result. |
|
|
127
|
+
| `coherence_task_next` | Claim the highest-priority pending task. |
|
|
128
|
+
| `coherence_task_claim` | Claim a specific task by ID. |
|
|
129
|
+
| `coherence_task_report` | Report task as completed or failed with output. |
|
|
130
|
+
| `coherence_task_seed` | Create a new task from an idea. |
|
|
131
|
+
| `coherence_task_events` | View the activity event log for a task. |
|
|
132
|
+
|
|
133
|
+
### Graph — universal navigation
|
|
134
|
+
|
|
135
|
+
| Tool | What it does |
|
|
136
|
+
|------|-------------|
|
|
137
|
+
| `coherence_list_edges` | List relationship edges with filters. |
|
|
138
|
+
| `coherence_get_entity_edges` | Incoming and outgoing edges for any entity. |
|
|
139
|
+
| `coherence_create_edge` | Create a typed edge between two entities. |
|
|
140
|
+
|
|
141
|
+
### Assets — tracked artifacts
|
|
142
|
+
|
|
143
|
+
| Tool | What it does |
|
|
144
|
+
|------|-------------|
|
|
145
|
+
| `coherence_list_assets` | List tracked assets (code, docs, endpoints). |
|
|
146
|
+
| `coherence_get_asset` | Detail for a specific asset by UUID. |
|
|
147
|
+
| `coherence_create_asset` | Register a new tracked asset. |
|
|
148
|
+
|
|
149
|
+
### News & Signals
|
|
150
|
+
|
|
151
|
+
| Tool | What it does |
|
|
152
|
+
|------|-------------|
|
|
153
|
+
| `coherence_get_news_feed` | Latest news from RSS sources with POV ranking. |
|
|
154
|
+
| `coherence_get_news_resonance` | Match news to ideas with explanations. |
|
|
155
|
+
| `coherence_list_news_sources` | List all configured RSS sources. |
|
|
156
|
+
| `coherence_add_news_source` | Add a new RSS source to the ingestion engine. |
|
|
157
|
+
| `coherence_get_trending_news` | Trending keywords from recent coverage. |
|
|
158
|
+
|
|
159
|
+
### Treasury — financial operations
|
|
160
|
+
|
|
161
|
+
| Tool | What it does |
|
|
162
|
+
|------|-------------|
|
|
163
|
+
| `coherence_get_treasury_info` | Conversion rates, addresses, and CC totals. |
|
|
164
|
+
| `coherence_record_deposit` | Record crypto deposit and convert to CC. |
|
|
165
|
+
| `coherence_get_deposit_history` | History of deposits for a contributor. |
|
|
166
|
+
|
|
167
|
+
### Governance — decision workflows
|
|
116
168
|
|
|
117
169
|
| Tool | What it does |
|
|
118
170
|
|------|-------------|
|
|
119
|
-
| `coherence_status` | API health, uptime, idea count, federation node count. |
|
|
120
|
-
| `coherence_friction_report` | Where the pipeline struggles — friction signals over a time window. |
|
|
121
171
|
| `coherence_list_change_requests` | Open governance proposals. |
|
|
172
|
+
| `coherence_get_change_request` | Detail for a specific proposal. |
|
|
173
|
+
| `coherence_vote_governance` | Cast a 'yes' or 'no' vote on a proposal. |
|
|
174
|
+
| `coherence_propose_governance` | Create a new governance change request. |
|
|
175
|
+
|
|
176
|
+
### Living Codex ontology
|
|
177
|
+
|
|
178
|
+
| Tool | What it does |
|
|
179
|
+
|------|-------------|
|
|
180
|
+
| `coherence_list_concepts` | Browse 184 universal concepts with 53 axes. |
|
|
181
|
+
| `coherence_get_concept` | Full concept detail with typed relationship edges. |
|
|
182
|
+
| `coherence_link_concepts` | Create typed relationships between concepts. |
|
|
183
|
+
|
|
184
|
+
### Health & Integrity
|
|
185
|
+
|
|
186
|
+
| Tool | What it does |
|
|
187
|
+
|------|-------------|
|
|
188
|
+
| `coherence_status` | API health, uptime, idea count, federation node count. |
|
|
189
|
+
| `coherence_friction_report` | Where the pipeline struggles. |
|
|
122
190
|
| `coherence_list_federation_nodes` | Federated nodes and their capabilities. |
|
|
191
|
+
| `coherence_get_dif_stats` | DIF verification accuracy statistics. |
|
|
192
|
+
| `coherence_get_recent_dif` | Recent DIF verification entries and scores. |
|
|
123
193
|
|
|
124
194
|
---
|
|
125
195
|
|
|
126
196
|
## CLI equivalent
|
|
127
197
|
|
|
128
|
-
The Coherence CLI (`npm i -g coherence-cli`) provides the same capabilities as the MCP tools
|
|
129
|
-
|
|
130
|
-
| MCP Tool | CLI Command |
|
|
131
|
-
|----------|------------|
|
|
132
|
-
| `coherence_list_ideas` | `cc ideas` |
|
|
133
|
-
| `coherence_get_idea` | `cc idea <id>` |
|
|
134
|
-
| `coherence_idea_progress` | `cc idea <id>` (includes progress) |
|
|
135
|
-
| `coherence_select_idea` | `cc ideas` (with temperature flag) |
|
|
136
|
-
| `coherence_showcase` | `cc ideas` (showcase view) |
|
|
137
|
-
| `coherence_resonance` | `cc resonance` |
|
|
138
|
-
| `coherence_list_specs` | `cc specs` |
|
|
139
|
-
| `coherence_get_spec` | `cc spec <id>` |
|
|
140
|
-
| `coherence_list_lineage` | `cc lineage` |
|
|
141
|
-
| `coherence_lineage_valuation` | `cc lineage <id> valuation` |
|
|
142
|
-
| `coherence_list_providers` | `cc providers` |
|
|
143
|
-
| `coherence_link_identity` | `cc identity link <provider> <handle>` |
|
|
144
|
-
| `coherence_lookup_identity` | `cc identity lookup <provider> <handle>` |
|
|
145
|
-
| `coherence_get_identities` | `cc identity` |
|
|
146
|
-
| `coherence_record_contribution` | `cc contribute` |
|
|
147
|
-
| `coherence_contributor_ledger` | `cc contributor <id> contributions` |
|
|
148
|
-
| `coherence_status` | `cc status` |
|
|
149
|
-
| `coherence_friction_report` | `cc friction` |
|
|
150
|
-
| `coherence_list_change_requests` | `cc governance` |
|
|
151
|
-
| `coherence_list_federation_nodes` | `cc nodes` |
|
|
152
|
-
|
|
153
|
-
The CLI also includes additional commands not available via MCP: `cc news`, `cc treasury`, `cc assets`, `cc services`, `cc trace`, `cc diag`, and more. Run `cc help` for the full list of 54 commands.
|
|
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 54 commands.
|
|
154
199
|
|
|
155
200
|
---
|
|
156
201
|
|
|
@@ -161,93 +206,22 @@ Once connected, you can ask your agent things like:
|
|
|
161
206
|
- *"What ideas have the highest ROI right now?"*
|
|
162
207
|
- *"Show me the spec for authentication and summarize the implementation plan"*
|
|
163
208
|
- *"Trace the value chain for the federation idea — who contributed and how much?"*
|
|
209
|
+
- *"What are the trending keywords in the news today and which ideas do they resonate with?"*
|
|
164
210
|
- *"Link my GitHub identity and record a code contribution for the CLI work I did"*
|
|
165
211
|
- *"What's the network friction report for the last 30 days?"*
|
|
166
212
|
- *"Pick the next best idea for me to work on"*
|
|
213
|
+
- *"Create a new idea for 'Automated PR reviews' and link it as enabling the 'GitHub integration' idea"*
|
|
167
214
|
|
|
168
215
|
The agent calls the right tools, gets structured data, and responds naturally.
|
|
169
216
|
|
|
170
217
|
---
|
|
171
218
|
|
|
172
|
-
## How coherence scoring works
|
|
173
|
-
|
|
174
|
-
Every idea and contribution is scored 0.0–1.0:
|
|
175
|
-
|
|
176
|
-
- **1.0** — Tests pass, docs clear, implementation simple, value proven
|
|
177
|
-
- **0.5** — Partial coverage, work in progress
|
|
178
|
-
- **0.0** — No evidence of quality or value
|
|
179
|
-
|
|
180
|
-
Payouts are weighted by coherence. Higher-quality work earns proportionally more. The score is a signal, not a grade — it tells the network how much trust the work has earned.
|
|
181
|
-
|
|
182
|
-
---
|
|
183
|
-
|
|
184
219
|
## Environment variables
|
|
185
220
|
|
|
186
221
|
| Variable | Default | Description |
|
|
187
222
|
|----------|---------|-------------|
|
|
188
223
|
| `COHERENCE_API_URL` | `https://api.coherencycoin.com` | API base URL. Override to point at a local node. |
|
|
189
|
-
| `COHERENCE_API_KEY` | *(none)* |
|
|
190
|
-
|
|
191
|
-
### What requires an API key?
|
|
192
|
-
|
|
193
|
-
**No key needed (read-only):** Browse ideas, search specs, view lineage, check contributor ledgers, see federation nodes, read coherence scores, view governance proposals.
|
|
194
|
-
|
|
195
|
-
**Key needed (write operations):** Update idea status, record contributions, link identities, create specs, vote on governance proposals, manage federation nodes, submit news sources.
|
|
196
|
-
|
|
197
|
-
Most users start without a key — exploring ideas, reading specs, checking who's contributing. You only need a key when you're ready to actively contribute.
|
|
198
|
-
|
|
199
|
-
### How to get an API key
|
|
200
|
-
|
|
201
|
-
Run the interactive setup:
|
|
202
|
-
|
|
203
|
-
```bash
|
|
204
|
-
npx coherence-cli
|
|
205
|
-
# then: cc setup
|
|
206
|
-
```
|
|
207
|
-
|
|
208
|
-
This walks you through:
|
|
209
|
-
1. Choose a contributor name
|
|
210
|
-
2. Link an identity (GitHub, Discord, Ethereum, etc.)
|
|
211
|
-
3. The system generates an API key tied to your identity
|
|
212
|
-
|
|
213
|
-
Your key is stored locally in `~/.coherence-network/config.json` and used automatically by both the CLI and MCP server.
|
|
214
|
-
|
|
215
|
-
**Manual setup** (if you already have a key):
|
|
216
|
-
|
|
217
|
-
```bash
|
|
218
|
-
export COHERENCE_API_KEY="your-key-here"
|
|
219
|
-
npx coherence-mcp-server
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
Or in your MCP config:
|
|
223
|
-
|
|
224
|
-
```json
|
|
225
|
-
{
|
|
226
|
-
"mcpServers": {
|
|
227
|
-
"coherence-network": {
|
|
228
|
-
"command": "npx",
|
|
229
|
-
"args": ["coherence-mcp-server"],
|
|
230
|
-
"env": {
|
|
231
|
-
"COHERENCE_API_KEY": "your-key-here"
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
Source code: [github.com/seeker71/Coherence-Network/mcp-server](https://github.com/seeker71/Coherence-Network/tree/main/mcp-server)
|
|
239
|
-
|
|
240
|
-
---
|
|
241
|
-
|
|
242
|
-
## The five pillars
|
|
243
|
-
|
|
244
|
-
| Pillar | What it means for agents |
|
|
245
|
-
|--------|-------------------------|
|
|
246
|
-
| **Traceability** | Every tool call traces back to real ideas, real specs, real contributors. |
|
|
247
|
-
| **Trust** | Coherence scores give agents objective quality signals — no guessing. |
|
|
248
|
-
| **Freedom** | Federated nodes, open governance. No single point of control. |
|
|
249
|
-
| **Uniqueness** | Every entity is uniquely identified. No duplicate ideas, no ambiguous specs. |
|
|
250
|
-
| **Collaboration** | Agents and humans contribute side by side, credited fairly. |
|
|
224
|
+
| `COHERENCE_API_KEY` | *(none)* | Required for write operations (governance, spec creation, federation). Reads work without a key. |
|
|
251
225
|
|
|
252
226
|
---
|
|
253
227
|
|
|
@@ -260,21 +234,12 @@ Every part of the network links to every other. Jump in wherever makes sense.
|
|
|
260
234
|
| **Web** | Browse ideas, specs, and contributors visually | [coherencycoin.com](https://coherencycoin.com) |
|
|
261
235
|
| **API** | 100+ endpoints, full OpenAPI docs, the engine behind everything | [api.coherencycoin.com/docs](https://api.coherencycoin.com/docs) |
|
|
262
236
|
| **CLI** | Terminal-first access — `npm i -g coherence-cli` then `cc help` | [npm: coherence-cli](https://www.npmjs.com/package/coherence-cli) |
|
|
263
|
-
| **MCP Server** | This package —
|
|
237
|
+
| **MCP Server** | This package — 51 typed tools for AI agents | [npm: coherence-mcp-server](https://www.npmjs.com/package/coherence-mcp-server) |
|
|
264
238
|
| **OpenClaw Skill** | Auto-triggers in any OpenClaw instance for ideas, specs, coherence | [ClawHub: coherence-network](https://clawhub.com/skills/coherence-network) |
|
|
265
239
|
| **GitHub** | Source code, specs, issues, and contribution tracking | [github.com/seeker71/Coherence-Network](https://github.com/seeker71/Coherence-Network) |
|
|
266
240
|
|
|
267
241
|
---
|
|
268
242
|
|
|
269
|
-
## Get involved
|
|
270
|
-
|
|
271
|
-
Coherence Network is open source. Every contribution — human or agent — is tracked and fairly attributed.
|
|
272
|
-
|
|
273
|
-
- **Start exploring**: Add the MCP server to your agent and ask *"What ideas need work?"*
|
|
274
|
-
- **GitHub**: [github.com/seeker71/Coherence-Network](https://github.com/seeker71/Coherence-Network)
|
|
275
|
-
|
|
276
|
-
---
|
|
277
|
-
|
|
278
243
|
## License
|
|
279
244
|
|
|
280
245
|
MIT
|
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 51 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, and evolve the project graph without writing a single API call.
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npx coherence-mcp-server
|
|
@@ -21,7 +21,12 @@ This MCP server changes that. It gives any agent a typed interface to:
|
|
|
21
21
|
- **Discover** — browse ideas ranked by ROI, search specs, see what's resonating
|
|
22
22
|
- **Trace** — follow value from idea through spec, implementation, usage, and payout
|
|
23
23
|
- **Attribute** — link any of 37 identity providers, record contributions, check ledgers
|
|
24
|
-
- **
|
|
24
|
+
- **Execute** — participate in the agent work pipeline (claim tasks, report results)
|
|
25
|
+
- **Evolve** — create new ideas, link dependencies, and navigate the universal graph
|
|
26
|
+
- **Finance** — track treasury balances, record deposits, and monitor assets
|
|
27
|
+
- **Signal** — ingest news, track trending keywords, and measure concept resonance
|
|
28
|
+
- **Ontology** — explore the Living Codex (184 universal concepts, 53 axes)
|
|
29
|
+
- **Govern** — propose changes, vote on requests, and monitor network health
|
|
25
30
|
|
|
26
31
|
Every tool returns structured JSON. No parsing HTML. No scraping. Just clean data.
|
|
27
32
|
|
|
@@ -68,7 +73,7 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
|
|
|
68
73
|
|
|
69
74
|
---
|
|
70
75
|
|
|
71
|
-
## Tools (
|
|
76
|
+
## Tools (51)
|
|
72
77
|
|
|
73
78
|
### Ideas — the portfolio engine
|
|
74
79
|
|
|
@@ -76,6 +81,8 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
|
|
|
76
81
|
|------|-------------|
|
|
77
82
|
| `coherence_list_ideas` | Browse ideas ranked by ROI and free-energy score. Filter with `search`, limit with `limit`. |
|
|
78
83
|
| `coherence_get_idea` | Full detail for one idea: scores, open questions, cost vectors, value gaps. |
|
|
84
|
+
| `coherence_create_idea` | Create a new idea in the portfolio. |
|
|
85
|
+
| `coherence_update_idea` | Update an existing idea (stage, status, metadata). |
|
|
79
86
|
| `coherence_idea_progress` | Stage, tasks by phase, CC staked and spent, contributor list. |
|
|
80
87
|
| `coherence_select_idea` | Let the portfolio engine pick the next highest-ROI idea. `temperature` controls explore vs exploit. |
|
|
81
88
|
| `coherence_showcase` | Validated, shipped ideas that have proven their value. |
|
|
@@ -111,14 +118,84 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
|
|
|
111
118
|
| `coherence_record_contribution` | Record work by contributor name or by provider identity (no registration needed). |
|
|
112
119
|
| `coherence_contributor_ledger` | CC balance, contribution history, and linked ideas. |
|
|
113
120
|
|
|
114
|
-
###
|
|
121
|
+
### Tasks — agent work protocol
|
|
122
|
+
|
|
123
|
+
| Tool | What it does |
|
|
124
|
+
|------|-------------|
|
|
125
|
+
| `coherence_list_tasks` | See what tasks are pending, running, or failed. |
|
|
126
|
+
| `coherence_get_task` | Full task details, direction, and result. |
|
|
127
|
+
| `coherence_task_next` | Claim the highest-priority pending task. |
|
|
128
|
+
| `coherence_task_claim` | Claim a specific task by ID. |
|
|
129
|
+
| `coherence_task_report` | Report task as completed or failed with output. |
|
|
130
|
+
| `coherence_task_seed` | Create a new task from an idea. |
|
|
131
|
+
| `coherence_task_events` | View the activity event log for a task. |
|
|
132
|
+
|
|
133
|
+
### Graph — universal navigation
|
|
134
|
+
|
|
135
|
+
| Tool | What it does |
|
|
136
|
+
|------|-------------|
|
|
137
|
+
| `coherence_list_edges` | List relationship edges with filters. |
|
|
138
|
+
| `coherence_get_entity_edges` | Incoming and outgoing edges for any entity. |
|
|
139
|
+
| `coherence_create_edge` | Create a typed edge between two entities. |
|
|
140
|
+
|
|
141
|
+
### Assets — tracked artifacts
|
|
142
|
+
|
|
143
|
+
| Tool | What it does |
|
|
144
|
+
|------|-------------|
|
|
145
|
+
| `coherence_list_assets` | List tracked assets (code, docs, endpoints). |
|
|
146
|
+
| `coherence_get_asset` | Detail for a specific asset by UUID. |
|
|
147
|
+
| `coherence_create_asset` | Register a new tracked asset. |
|
|
148
|
+
|
|
149
|
+
### News & Signals
|
|
150
|
+
|
|
151
|
+
| Tool | What it does |
|
|
152
|
+
|------|-------------|
|
|
153
|
+
| `coherence_get_news_feed` | Latest news from RSS sources with POV ranking. |
|
|
154
|
+
| `coherence_get_news_resonance` | Match news to ideas with explanations. |
|
|
155
|
+
| `coherence_list_news_sources` | List all configured RSS sources. |
|
|
156
|
+
| `coherence_add_news_source` | Add a new RSS source to the ingestion engine. |
|
|
157
|
+
| `coherence_get_trending_news` | Trending keywords from recent coverage. |
|
|
158
|
+
|
|
159
|
+
### Treasury — financial operations
|
|
160
|
+
|
|
161
|
+
| Tool | What it does |
|
|
162
|
+
|------|-------------|
|
|
163
|
+
| `coherence_get_treasury_info` | Conversion rates, addresses, and CC totals. |
|
|
164
|
+
| `coherence_record_deposit` | Record crypto deposit and convert to CC. |
|
|
165
|
+
| `coherence_get_deposit_history` | History of deposits for a contributor. |
|
|
166
|
+
|
|
167
|
+
### Governance — decision workflows
|
|
115
168
|
|
|
116
169
|
| Tool | What it does |
|
|
117
170
|
|------|-------------|
|
|
118
|
-
| `coherence_status` | API health, uptime, idea count, federation node count. |
|
|
119
|
-
| `coherence_friction_report` | Where the pipeline struggles — friction signals over a time window. |
|
|
120
171
|
| `coherence_list_change_requests` | Open governance proposals. |
|
|
172
|
+
| `coherence_get_change_request` | Detail for a specific proposal. |
|
|
173
|
+
| `coherence_vote_governance` | Cast a 'yes' or 'no' vote on a proposal. |
|
|
174
|
+
| `coherence_propose_governance` | Create a new governance change request. |
|
|
175
|
+
|
|
176
|
+
### Living Codex ontology
|
|
177
|
+
|
|
178
|
+
| Tool | What it does |
|
|
179
|
+
|------|-------------|
|
|
180
|
+
| `coherence_list_concepts` | Browse 184 universal concepts with 53 axes. |
|
|
181
|
+
| `coherence_get_concept` | Full concept detail with typed relationship edges. |
|
|
182
|
+
| `coherence_link_concepts` | Create typed relationships between concepts. |
|
|
183
|
+
|
|
184
|
+
### Health & Integrity
|
|
185
|
+
|
|
186
|
+
| Tool | What it does |
|
|
187
|
+
|------|-------------|
|
|
188
|
+
| `coherence_status` | API health, uptime, idea count, federation node count. |
|
|
189
|
+
| `coherence_friction_report` | Where the pipeline struggles. |
|
|
121
190
|
| `coherence_list_federation_nodes` | Federated nodes and their capabilities. |
|
|
191
|
+
| `coherence_get_dif_stats` | DIF verification accuracy statistics. |
|
|
192
|
+
| `coherence_get_recent_dif` | Recent DIF verification entries and scores. |
|
|
193
|
+
|
|
194
|
+
---
|
|
195
|
+
|
|
196
|
+
## CLI equivalent
|
|
197
|
+
|
|
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 54 commands.
|
|
122
199
|
|
|
123
200
|
---
|
|
124
201
|
|
|
@@ -129,26 +206,16 @@ Once connected, you can ask your agent things like:
|
|
|
129
206
|
- *"What ideas have the highest ROI right now?"*
|
|
130
207
|
- *"Show me the spec for authentication and summarize the implementation plan"*
|
|
131
208
|
- *"Trace the value chain for the federation idea — who contributed and how much?"*
|
|
209
|
+
- *"What are the trending keywords in the news today and which ideas do they resonate with?"*
|
|
132
210
|
- *"Link my GitHub identity and record a code contribution for the CLI work I did"*
|
|
133
211
|
- *"What's the network friction report for the last 30 days?"*
|
|
134
212
|
- *"Pick the next best idea for me to work on"*
|
|
213
|
+
- *"Create a new idea for 'Automated PR reviews' and link it as enabling the 'GitHub integration' idea"*
|
|
135
214
|
|
|
136
215
|
The agent calls the right tools, gets structured data, and responds naturally.
|
|
137
216
|
|
|
138
217
|
---
|
|
139
218
|
|
|
140
|
-
## How coherence scoring works
|
|
141
|
-
|
|
142
|
-
Every idea and contribution is scored 0.0–1.0:
|
|
143
|
-
|
|
144
|
-
- **1.0** — Tests pass, docs clear, implementation simple, value proven
|
|
145
|
-
- **0.5** — Partial coverage, work in progress
|
|
146
|
-
- **0.0** — No evidence of quality or value
|
|
147
|
-
|
|
148
|
-
Payouts are weighted by coherence. Higher-quality work earns proportionally more. The score is a signal, not a grade — it tells the network how much trust the work has earned.
|
|
149
|
-
|
|
150
|
-
---
|
|
151
|
-
|
|
152
219
|
## Environment variables
|
|
153
220
|
|
|
154
221
|
| Variable | Default | Description |
|
|
@@ -158,18 +225,6 @@ Payouts are weighted by coherence. Higher-quality work earns proportionally more
|
|
|
158
225
|
|
|
159
226
|
---
|
|
160
227
|
|
|
161
|
-
## The five pillars
|
|
162
|
-
|
|
163
|
-
| Pillar | What it means for agents |
|
|
164
|
-
|--------|-------------------------|
|
|
165
|
-
| **Traceability** | Every tool call traces back to real ideas, real specs, real contributors. |
|
|
166
|
-
| **Trust** | Coherence scores give agents objective quality signals — no guessing. |
|
|
167
|
-
| **Freedom** | Federated nodes, open governance. No single point of control. |
|
|
168
|
-
| **Uniqueness** | Every entity is uniquely identified. No duplicate ideas, no ambiguous specs. |
|
|
169
|
-
| **Collaboration** | Agents and humans contribute side by side, credited fairly. |
|
|
170
|
-
|
|
171
|
-
---
|
|
172
|
-
|
|
173
228
|
## The Coherence Network ecosystem
|
|
174
229
|
|
|
175
230
|
Every part of the network links to every other. Jump in wherever makes sense.
|
|
@@ -179,21 +234,12 @@ Every part of the network links to every other. Jump in wherever makes sense.
|
|
|
179
234
|
| **Web** | Browse ideas, specs, and contributors visually | [coherencycoin.com](https://coherencycoin.com) |
|
|
180
235
|
| **API** | 100+ endpoints, full OpenAPI docs, the engine behind everything | [api.coherencycoin.com/docs](https://api.coherencycoin.com/docs) |
|
|
181
236
|
| **CLI** | Terminal-first access — `npm i -g coherence-cli` then `cc help` | [npm: coherence-cli](https://www.npmjs.com/package/coherence-cli) |
|
|
182
|
-
| **MCP Server** | This package —
|
|
237
|
+
| **MCP Server** | This package — 51 typed tools for AI agents | [npm: coherence-mcp-server](https://www.npmjs.com/package/coherence-mcp-server) |
|
|
183
238
|
| **OpenClaw Skill** | Auto-triggers in any OpenClaw instance for ideas, specs, coherence | [ClawHub: coherence-network](https://clawhub.com/skills/coherence-network) |
|
|
184
239
|
| **GitHub** | Source code, specs, issues, and contribution tracking | [github.com/seeker71/Coherence-Network](https://github.com/seeker71/Coherence-Network) |
|
|
185
240
|
|
|
186
241
|
---
|
|
187
242
|
|
|
188
|
-
## Get involved
|
|
189
|
-
|
|
190
|
-
Coherence Network is open source. Every contribution — human or agent — is tracked and fairly attributed.
|
|
191
|
-
|
|
192
|
-
- **Start exploring**: Add the MCP server to your agent and ask *"What ideas need work?"*
|
|
193
|
-
- **GitHub**: [github.com/seeker71/Coherence-Network](https://github.com/seeker71/Coherence-Network)
|
|
194
|
-
|
|
195
|
-
---
|
|
196
|
-
|
|
197
243
|
## License
|
|
198
244
|
|
|
199
245
|
MIT
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""
|
|
2
|
+
coherence-mcp-server — MCP server for the Coherence Network.
|
|
3
|
+
|
|
4
|
+
22 typed tools for AI agents to browse ideas, trace value chains,
|
|
5
|
+
link identities, record contributions, and explore the Living Codex ontology.
|
|
6
|
+
|
|
7
|
+
Usage:
|
|
8
|
+
python -m coherence_mcp_server
|
|
9
|
+
coherence-mcp-server
|
|
10
|
+
|
|
11
|
+
Environment variables:
|
|
12
|
+
COHERENCE_API_URL API base URL (default: https://api.coherencycoin.com)
|
|
13
|
+
COHERENCE_API_KEY API key for write operations (optional for reads)
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
__version__ = "0.3.1"
|
|
17
|
+
__all__ = ["__version__"]
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""Entry point for coherence-mcp-server Python package.
|
|
2
|
+
|
|
3
|
+
Run via:
|
|
4
|
+
python -m coherence_mcp_server
|
|
5
|
+
coherence-mcp-server (after pip install)
|
|
6
|
+
uvx coherence-mcp-server (via uv)
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
import asyncio
|
|
10
|
+
import sys
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def main() -> None:
|
|
14
|
+
"""Start the Coherence Network MCP server."""
|
|
15
|
+
from coherence_mcp_server.server import run
|
|
16
|
+
asyncio.run(run())
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
if __name__ == "__main__":
|
|
20
|
+
sys.exit(main())
|
|
Binary file
|
|
Binary file
|
|
Binary file
|