coherence-mcp-server 0.2.0 → 0.3.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 CHANGED
@@ -1,3 +1,4 @@
1
+ <!-- AUTO-GENERATED from README.template.md. Edit the template, not this file. -->
1
2
  # coherence-mcp-server
2
3
 
3
4
  **Give your AI agent native access to every idea, spec, contributor, and value chain in the Coherence Network.**
@@ -122,6 +123,37 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
122
123
 
123
124
  ---
124
125
 
126
+ ## CLI equivalent
127
+
128
+ The Coherence CLI (`npm i -g coherence-cli`) provides the same capabilities as the MCP tools, plus additional commands. Here is the mapping:
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.
154
+
155
+ ---
156
+
125
157
  ## Example conversations
126
158
 
127
159
  Once connected, you can ask your agent things like:
@@ -154,7 +186,56 @@ Payouts are weighted by coherence. Higher-quality work earns proportionally more
154
186
  | Variable | Default | Description |
155
187
  |----------|---------|-------------|
156
188
  | `COHERENCE_API_URL` | `https://api.coherencycoin.com` | API base URL. Override to point at a local node. |
157
- | `COHERENCE_API_KEY` | *(none)* | Required for write operations (governance, spec creation, federation). Reads work without a key. |
189
+ | `COHERENCE_API_KEY` | *(none)* | API key for write operations. See below for what requires a key and how to get one. |
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)
158
239
 
159
240
  ---
160
241
 
@@ -0,0 +1,199 @@
1
+ # coherence-mcp-server
2
+
3
+ **Give your AI agent native access to every idea, spec, contributor, and value chain in the Coherence Network.**
4
+
5
+ An [MCP](https://modelcontextprotocol.io/) (Model Context Protocol) server that exposes the full Coherence Network API as 20 typed tools — so Claude, Cursor, Windsurf, or any MCP-compatible agent can browse ideas, look up specs, trace value lineage, link identities, and record contributions without writing a single API call.
6
+
7
+ ```bash
8
+ npx coherence-mcp-server
9
+ ```
10
+
11
+ No API key needed for reading. Works immediately against the live network.
12
+
13
+ ---
14
+
15
+ ## Why this exists
16
+
17
+ AI agents are increasingly doing real work — writing code, reviewing specs, researching ideas. But they can't participate in contribution networks. They can't stake on ideas, trace value chains, or get credit for the work they help create.
18
+
19
+ This MCP server changes that. It gives any agent a typed interface to:
20
+
21
+ - **Discover** — browse ideas ranked by ROI, search specs, see what's resonating
22
+ - **Trace** — follow value from idea through spec, implementation, usage, and payout
23
+ - **Attribute** — link any of 37 identity providers, record contributions, check ledgers
24
+ - **Govern** — view change requests, federation nodes, and network health
25
+
26
+ Every tool returns structured JSON. No parsing HTML. No scraping. Just clean data.
27
+
28
+ ---
29
+
30
+ ## Setup
31
+
32
+ ### Claude Desktop / Claude Code
33
+
34
+ Add to your MCP settings (`~/.claude/settings.json` or project `.claude/settings.json`):
35
+
36
+ ```json
37
+ {
38
+ "mcpServers": {
39
+ "coherence-network": {
40
+ "command": "npx",
41
+ "args": ["coherence-mcp-server"],
42
+ "env": {
43
+ "COHERENCE_API_URL": "https://api.coherencycoin.com"
44
+ }
45
+ }
46
+ }
47
+ }
48
+ ```
49
+
50
+ ### Cursor
51
+
52
+ Add to `.cursor/mcp.json`:
53
+
54
+ ```json
55
+ {
56
+ "mcpServers": {
57
+ "coherence-network": {
58
+ "command": "npx",
59
+ "args": ["coherence-mcp-server"]
60
+ }
61
+ }
62
+ }
63
+ ```
64
+
65
+ ### Windsurf / any MCP client
66
+
67
+ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
68
+
69
+ ---
70
+
71
+ ## Tools (20)
72
+
73
+ ### Ideas — the portfolio engine
74
+
75
+ | Tool | What it does |
76
+ |------|-------------|
77
+ | `coherence_list_ideas` | Browse ideas ranked by ROI and free-energy score. Filter with `search`, limit with `limit`. |
78
+ | `coherence_get_idea` | Full detail for one idea: scores, open questions, cost vectors, value gaps. |
79
+ | `coherence_idea_progress` | Stage, tasks by phase, CC staked and spent, contributor list. |
80
+ | `coherence_select_idea` | Let the portfolio engine pick the next highest-ROI idea. `temperature` controls explore vs exploit. |
81
+ | `coherence_showcase` | Validated, shipped ideas that have proven their value. |
82
+ | `coherence_resonance` | Ideas generating the most energy and activity right now. |
83
+
84
+ ### Specs — from vision to blueprint
85
+
86
+ | Tool | What it does |
87
+ |------|-------------|
88
+ | `coherence_list_specs` | Specs with ROI metrics and value gaps. Searchable. |
89
+ | `coherence_get_spec` | Full spec: summary, implementation plan, pseudocode, estimated ROI. |
90
+
91
+ ### Value lineage — end-to-end traceability
92
+
93
+ | Tool | What it does |
94
+ |------|-------------|
95
+ | `coherence_list_lineage` | Lineage chains connecting ideas → specs → implementations → payouts. |
96
+ | `coherence_lineage_valuation` | Measured value, estimated cost, and ROI ratio for a chain. |
97
+
98
+ ### Identity — 37 providers, zero registration
99
+
100
+ | Tool | What it does |
101
+ |------|-------------|
102
+ | `coherence_list_providers` | All supported providers in 6 categories (Social, Dev, Crypto, Professional, Identity, Platform). |
103
+ | `coherence_link_identity` | Link a GitHub, Discord, Ethereum, Solana, or any other identity to a contributor. |
104
+ | `coherence_lookup_identity` | Reverse lookup — find a contributor by their provider handle. |
105
+ | `coherence_get_identities` | All linked identities for a contributor. |
106
+
107
+ ### Contributions — credit where it's due
108
+
109
+ | Tool | What it does |
110
+ |------|-------------|
111
+ | `coherence_record_contribution` | Record work by contributor name or by provider identity (no registration needed). |
112
+ | `coherence_contributor_ledger` | CC balance, contribution history, and linked ideas. |
113
+
114
+ ### Network health & governance
115
+
116
+ | Tool | What it does |
117
+ |------|-------------|
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
+ | `coherence_list_change_requests` | Open governance proposals. |
121
+ | `coherence_list_federation_nodes` | Federated nodes and their capabilities. |
122
+
123
+ ---
124
+
125
+ ## Example conversations
126
+
127
+ Once connected, you can ask your agent things like:
128
+
129
+ - *"What ideas have the highest ROI right now?"*
130
+ - *"Show me the spec for authentication and summarize the implementation plan"*
131
+ - *"Trace the value chain for the federation idea — who contributed and how much?"*
132
+ - *"Link my GitHub identity and record a code contribution for the CLI work I did"*
133
+ - *"What's the network friction report for the last 30 days?"*
134
+ - *"Pick the next best idea for me to work on"*
135
+
136
+ The agent calls the right tools, gets structured data, and responds naturally.
137
+
138
+ ---
139
+
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
+ ## Environment variables
153
+
154
+ | Variable | Default | Description |
155
+ |----------|---------|-------------|
156
+ | `COHERENCE_API_URL` | `https://api.coherencycoin.com` | API base URL. Override to point at a local node. |
157
+ | `COHERENCE_API_KEY` | *(none)* | Required for write operations (governance, spec creation, federation). Reads work without a key. |
158
+
159
+ ---
160
+
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
+ ## The Coherence Network ecosystem
174
+
175
+ Every part of the network links to every other. Jump in wherever makes sense.
176
+
177
+ | Surface | What it is | Link |
178
+ |---------|-----------|------|
179
+ | **Web** | Browse ideas, specs, and contributors visually | [coherencycoin.com](https://coherencycoin.com) |
180
+ | **API** | 100+ endpoints, full OpenAPI docs, the engine behind everything | [api.coherencycoin.com/docs](https://api.coherencycoin.com/docs) |
181
+ | **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 — 20 typed tools for AI agents | [npm: coherence-mcp-server](https://www.npmjs.com/package/coherence-mcp-server) |
183
+ | **OpenClaw Skill** | Auto-triggers in any OpenClaw instance for ideas, specs, coherence | [ClawHub: coherence-network](https://clawhub.com/skills/coherence-network) |
184
+ | **GitHub** | Source code, specs, issues, and contribution tracking | [github.com/seeker71/Coherence-Network](https://github.com/seeker71/Coherence-Network) |
185
+
186
+ ---
187
+
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
+ ## License
198
+
199
+ MIT
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "coherence-mcp-server",
3
- "version": "0.2.0",
4
- "description": "MCP server for the Coherence Network 20 typed tools for AI agents to browse ideas, trace value chains, link identities, and record contributions. Works with Claude, Cursor, Windsurf, and any MCP client.",
3
+ "version": "0.3.1",
4
+ "description": "MCP server for the Coherence Network \u2014 20 typed tools for AI agents to browse ideas, trace value chains, link identities, and record contributions. Works with Claude, Cursor, Windsurf, and any MCP client.",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "coherence-mcp-server": "index.mjs"
@@ -47,4 +47,4 @@
47
47
  "url": "https://github.com/seeker71/Coherence-Network/issues"
48
48
  },
49
49
  "author": "Coherence Network Contributors"
50
- }
50
+ }