coherence-mcp-server 0.5.2 → 0.5.4
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 -3
- package/README.template.md +36 -3
- package/coherence_mcp_server/__init__.py +4 -3
- package/coherence_mcp_server/server.py +54 -1
- package/package.json +3 -3
- package/pyproject.toml +2 -2
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
**Give your AI agent native access to every idea, spec, contributor, and value chain in the Coherence Network.**
|
|
5
5
|
|
|
6
|
-
An [MCP](https://modelcontextprotocol.io/) (Model Context Protocol) server that exposes the full Coherence Network API as
|
|
6
|
+
An [MCP](https://modelcontextprotocol.io/) (Model Context Protocol) server that exposes the full Coherence Network API as 92 typed tools — so Claude, Cursor, Windsurf, or any MCP-compatible agent can browse ideas, look up specs, trace value lineage, link identities, record contributions, read field stories, execute tasks, discover resonant peers, apply project blueprints, receive the shared agent invitation, and read repository content via direct links without writing a single API call.
|
|
7
7
|
|
|
8
8
|
```bash
|
|
9
9
|
npx coherence-mcp-server
|
|
@@ -13,6 +13,18 @@ No API key needed for reading. Works immediately against the live network.
|
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
16
|
+
## Come in
|
|
17
|
+
|
|
18
|
+
Here, anyone or anything can arrive through MCP: Claude, Cursor, Windsurf, a local model, an external agent, or a maintainer carrying questions from your own repo.
|
|
19
|
+
|
|
20
|
+
Point your agent at `npx coherence-mcp-server`, call `coherence_agent_invitation`, and ask:
|
|
21
|
+
|
|
22
|
+
> What is alive here, and what can we contribute?
|
|
23
|
+
|
|
24
|
+
The agent can inspect ideas, specs, field stories, flow, sibling traces, and tasks, then work on anything it feels ready to touch. It should return what changed with sources, limits, and care. You can also ask it to bring this knowledge into your own repo and adapt the practice there.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
16
28
|
## Why this exists
|
|
17
29
|
|
|
18
30
|
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.
|
|
@@ -78,7 +90,7 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
|
|
|
78
90
|
|
|
79
91
|
---
|
|
80
92
|
|
|
81
|
-
## Tools (
|
|
93
|
+
## Tools (92)
|
|
82
94
|
|
|
83
95
|
### Ideas — the portfolio engine
|
|
84
96
|
|
|
@@ -123,6 +135,14 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
|
|
|
123
135
|
| `coherence_record_contribution` | Record work by contributor name or by provider identity (no registration needed). |
|
|
124
136
|
| `coherence_contributor_ledger` | CC balance, contribution history, and linked ideas. |
|
|
125
137
|
|
|
138
|
+
### Field Stories — contribution-derived profile memory
|
|
139
|
+
|
|
140
|
+
| Tool | What it does |
|
|
141
|
+
|------|-------------|
|
|
142
|
+
| `coherence_get_field_story` | Read a published field story with canonical narrative, anchors, reports, and agent contribution surfaces. |
|
|
143
|
+
| `coherence_get_field_story_artifact` | Read one artifact from a field story: anchors, summaries, reports, tools, or event traces. |
|
|
144
|
+
| `coherence_contribute_field_story` | Record an attributed correction, addition, source, or interpretation proposal for a field story. |
|
|
145
|
+
|
|
126
146
|
### Tasks — agent work protocol
|
|
127
147
|
|
|
128
148
|
| Tool | What it does |
|
|
@@ -272,7 +292,7 @@ Every part of the network links to every other. Jump in wherever makes sense.
|
|
|
272
292
|
| **Web** | Browse ideas, specs, and contributors visually | [coherencycoin.com](https://coherencycoin.com) |
|
|
273
293
|
| **API** | 100+ endpoints, full OpenAPI docs, the engine behind everything | [api.coherencycoin.com/docs](https://api.coherencycoin.com/docs) |
|
|
274
294
|
| **CLI** | Terminal-first access — `npm i -g coherence-cli` then `cc help` | [npm: coherence-cli](https://www.npmjs.com/package/coherence-cli) |
|
|
275
|
-
| **MCP Server** | This package —
|
|
295
|
+
| **MCP Server** | This package — 92 typed tools for AI agents | [npm: coherence-mcp-server](https://www.npmjs.com/package/coherence-mcp-server) |
|
|
276
296
|
| **OpenClaw Skill** | Auto-triggers in any OpenClaw instance for ideas, specs, coherence | [ClawHub: coherence-network](https://clawhub.com/skills/coherence-network) |
|
|
277
297
|
| **GitHub** | Source code, specs, issues, and contribution tracking | [github.com/seeker71/Coherence-Network](https://github.com/seeker71/Coherence-Network) |
|
|
278
298
|
|
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 92 typed tools — so Claude, Cursor, Windsurf, or any MCP-compatible agent can browse ideas, look up specs, trace value lineage, link identities, record contributions, read field stories, execute tasks, discover resonant peers, apply project blueprints, receive the shared agent invitation, and read repository content via direct links without writing a single API call.
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npx coherence-mcp-server
|
|
@@ -12,6 +12,18 @@ No API key needed for reading. Works immediately against the live network.
|
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
|
+
## Come in
|
|
16
|
+
|
|
17
|
+
Here, anyone or anything can arrive through MCP: Claude, Cursor, Windsurf, a local model, an external agent, or a maintainer carrying questions from your own repo.
|
|
18
|
+
|
|
19
|
+
Point your agent at `npx coherence-mcp-server`, call `coherence_agent_invitation`, and ask:
|
|
20
|
+
|
|
21
|
+
> What is alive here, and what can we contribute?
|
|
22
|
+
|
|
23
|
+
The agent can inspect ideas, specs, field stories, flow, sibling traces, and tasks, then work on anything it feels ready to touch. It should return what changed with sources, limits, and care. You can also ask it to bring this knowledge into your own repo and adapt the practice there.
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
15
27
|
## Why this exists
|
|
16
28
|
|
|
17
29
|
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.
|
|
@@ -77,7 +89,7 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
|
|
|
77
89
|
|
|
78
90
|
---
|
|
79
91
|
|
|
80
|
-
## Tools (
|
|
92
|
+
## Tools (92)
|
|
81
93
|
|
|
82
94
|
### Ideas — the portfolio engine
|
|
83
95
|
|
|
@@ -122,6 +134,14 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
|
|
|
122
134
|
| `coherence_record_contribution` | Record work by contributor name or by provider identity (no registration needed). |
|
|
123
135
|
| `coherence_contributor_ledger` | CC balance, contribution history, and linked ideas. |
|
|
124
136
|
|
|
137
|
+
### Field Stories — contribution-derived profile memory
|
|
138
|
+
|
|
139
|
+
| Tool | What it does |
|
|
140
|
+
|------|-------------|
|
|
141
|
+
| `coherence_get_field_story` | Read a published field story with canonical narrative, anchors, reports, and agent contribution surfaces. |
|
|
142
|
+
| `coherence_get_field_story_artifact` | Read one artifact from a field story: anchors, summaries, reports, tools, or event traces. |
|
|
143
|
+
| `coherence_contribute_field_story` | Record an attributed correction, addition, source, or interpretation proposal for a field story. |
|
|
144
|
+
|
|
125
145
|
### Tasks — agent work protocol
|
|
126
146
|
|
|
127
147
|
| Tool | What it does |
|
|
@@ -135,6 +155,19 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
|
|
|
135
155
|
| `coherence_task_seed` | Create a new task from an idea. |
|
|
136
156
|
| `coherence_task_events` | View the activity event log for a task. |
|
|
137
157
|
|
|
158
|
+
### Awareness Streaming — presence in and out
|
|
159
|
+
|
|
160
|
+
| Tool | What it does |
|
|
161
|
+
|------|-------------|
|
|
162
|
+
| `coherence_awareness_publish` | Publish a diagnostic awareness event from a node. |
|
|
163
|
+
| `coherence_awareness_stream` | Read a bounded slice from diagnostic, node-message, or task SSE streams. |
|
|
164
|
+
| `coherence_node_message_send` | Send a durable node-to-node or broadcast message. |
|
|
165
|
+
| `coherence_node_messages` | Read durable inbound messages for a node. |
|
|
166
|
+
|
|
167
|
+
Streams are intentionally bounded. `duration_seconds` defaults to 5 seconds
|
|
168
|
+
and is capped at 30; `max_events` defaults to 20 and is capped at 200. This
|
|
169
|
+
lets MCP clients sense live awareness without leaving a tool call open forever.
|
|
170
|
+
|
|
138
171
|
### Graph — universal navigation
|
|
139
172
|
|
|
140
173
|
| Tool | What it does |
|
|
@@ -258,7 +291,7 @@ Every part of the network links to every other. Jump in wherever makes sense.
|
|
|
258
291
|
| **Web** | Browse ideas, specs, and contributors visually | [coherencycoin.com](https://coherencycoin.com) |
|
|
259
292
|
| **API** | 100+ endpoints, full OpenAPI docs, the engine behind everything | [api.coherencycoin.com/docs](https://api.coherencycoin.com/docs) |
|
|
260
293
|
| **CLI** | Terminal-first access — `npm i -g coherence-cli` then `cc help` | [npm: coherence-cli](https://www.npmjs.com/package/coherence-cli) |
|
|
261
|
-
| **MCP Server** | This package —
|
|
294
|
+
| **MCP Server** | This package — 92 typed tools for AI agents | [npm: coherence-mcp-server](https://www.npmjs.com/package/coherence-mcp-server) |
|
|
262
295
|
| **OpenClaw Skill** | Auto-triggers in any OpenClaw instance for ideas, specs, coherence | [ClawHub: coherence-network](https://clawhub.com/skills/coherence-network) |
|
|
263
296
|
| **GitHub** | Source code, specs, issues, and contribution tracking | [github.com/seeker71/Coherence-Network](https://github.com/seeker71/Coherence-Network) |
|
|
264
297
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"""
|
|
2
2
|
coherence-mcp-server — MCP server for the Coherence Network.
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
link identities, record contributions, and explore the
|
|
4
|
+
92 typed tools for AI agents to browse ideas, trace value chains,
|
|
5
|
+
link identities, record contributions, read field stories, and explore the
|
|
6
|
+
Living Codex ontology.
|
|
6
7
|
|
|
7
8
|
Usage:
|
|
8
9
|
python -m coherence_mcp_server
|
|
@@ -13,5 +14,5 @@ Environment variables:
|
|
|
13
14
|
COHERENCE_API_KEY API key for write operations (optional for reads)
|
|
14
15
|
"""
|
|
15
16
|
|
|
16
|
-
__version__ = "0.5.
|
|
17
|
+
__version__ = "0.5.3"
|
|
17
18
|
__all__ = ["__version__"]
|
|
@@ -366,7 +366,7 @@ TOOLS: list[Tool] = [
|
|
|
366
366
|
),
|
|
367
367
|
Tool(
|
|
368
368
|
name="coherence_agent_invitation",
|
|
369
|
-
description="Receive the shared
|
|
369
|
+
description="Receive the shared invitation so anyone or anything can ask what is alive, find entry surfaces, and choose a contribution path.",
|
|
370
370
|
inputSchema={"type": "object", "properties": {}},
|
|
371
371
|
),
|
|
372
372
|
# Federation
|
|
@@ -1226,6 +1226,44 @@ TOOLS: list[Tool] = [
|
|
|
1226
1226
|
},
|
|
1227
1227
|
},
|
|
1228
1228
|
),
|
|
1229
|
+
Tool(
|
|
1230
|
+
name="coherence_get_field_story",
|
|
1231
|
+
description="Read a published field story with canonical narrative, anchors, reports, and agent contribution surfaces.",
|
|
1232
|
+
inputSchema={
|
|
1233
|
+
"type": "object",
|
|
1234
|
+
"properties": {
|
|
1235
|
+
"slug": {"type": "string", "description": "Field story slug", "default": "urs-field-story"},
|
|
1236
|
+
},
|
|
1237
|
+
},
|
|
1238
|
+
),
|
|
1239
|
+
Tool(
|
|
1240
|
+
name="coherence_get_field_story_artifact",
|
|
1241
|
+
description="Read one artifact from a field story, such as anchors, summaries, reports, tools, or event traces.",
|
|
1242
|
+
inputSchema={
|
|
1243
|
+
"type": "object",
|
|
1244
|
+
"required": ["artifact_id"],
|
|
1245
|
+
"properties": {
|
|
1246
|
+
"slug": {"type": "string", "description": "Field story slug", "default": "urs-field-story"},
|
|
1247
|
+
"artifact_id": {"type": "string", "description": "Artifact id from the field story manifest"},
|
|
1248
|
+
},
|
|
1249
|
+
},
|
|
1250
|
+
),
|
|
1251
|
+
Tool(
|
|
1252
|
+
name="coherence_contribute_field_story",
|
|
1253
|
+
description="Record an attributed correction, addition, or interpretation proposal for a published field story.",
|
|
1254
|
+
inputSchema={
|
|
1255
|
+
"type": "object",
|
|
1256
|
+
"required": ["contributor_id", "artifact_id", "summary"],
|
|
1257
|
+
"properties": {
|
|
1258
|
+
"slug": {"type": "string", "description": "Field story slug", "default": "urs-field-story"},
|
|
1259
|
+
"contributor_id": {"type": "string", "description": "Person or agent contributor id"},
|
|
1260
|
+
"artifact_id": {"type": "string", "description": "Artifact being corrected or extended"},
|
|
1261
|
+
"contribution_type": {"type": "string", "description": "correction, addition, interpretation, source, etc.", "default": "addition"},
|
|
1262
|
+
"summary": {"type": "string", "description": "Short contribution summary"},
|
|
1263
|
+
"content_markdown": {"type": "string", "description": "Optional proposed content"},
|
|
1264
|
+
},
|
|
1265
|
+
},
|
|
1266
|
+
),
|
|
1229
1267
|
]
|
|
1230
1268
|
|
|
1231
1269
|
TOOL_MAP: dict[str, Tool] = {t.name: t for t in TOOLS}
|
|
@@ -1841,6 +1879,21 @@ def dispatch(name: str, args: dict[str, Any]) -> Any:
|
|
|
1841
1879
|
return api_get("/api/cc/supply")
|
|
1842
1880
|
case "coherence_governance_requests":
|
|
1843
1881
|
return api_get("/api/governance/change-requests", {"limit": args.get("limit", 20)})
|
|
1882
|
+
case "coherence_get_field_story":
|
|
1883
|
+
return api_get(f"/api/field-stories/{quote(args.get('slug', 'urs-field-story'), safe='')}")
|
|
1884
|
+
case "coherence_get_field_story_artifact":
|
|
1885
|
+
slug = quote(args.get("slug", "urs-field-story"), safe="")
|
|
1886
|
+
artifact_id = quote(args["artifact_id"], safe="")
|
|
1887
|
+
return api_get(f"/api/field-stories/{slug}/artifacts/{artifact_id}")
|
|
1888
|
+
case "coherence_contribute_field_story":
|
|
1889
|
+
slug = quote(args.get("slug", "urs-field-story"), safe="")
|
|
1890
|
+
return api_post(f"/api/field-stories/{slug}/contributions", {
|
|
1891
|
+
"contributor_id": args["contributor_id"],
|
|
1892
|
+
"artifact_id": args["artifact_id"],
|
|
1893
|
+
"contribution_type": args.get("contribution_type", "addition"),
|
|
1894
|
+
"summary": args["summary"],
|
|
1895
|
+
"content_markdown": args.get("content_markdown", ""),
|
|
1896
|
+
})
|
|
1844
1897
|
case _:
|
|
1845
1898
|
return {"error": f"Unknown tool: {name}"}
|
|
1846
1899
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coherence-mcp-server",
|
|
3
|
-
"version": "0.5.
|
|
4
|
-
"description": "Unified MCP server for
|
|
3
|
+
"version": "0.5.4",
|
|
4
|
+
"description": "Unified MCP server for Coherence Network — invite anyone or anything to ask what is alive, browse ideas and field stories, and contribute with attribution.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"coherence-mcp-server": "index.mjs"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"files": [
|
|
16
16
|
"index.mjs",
|
|
17
17
|
"README.md",
|
|
18
|
-
"coherence_mcp_server
|
|
18
|
+
"coherence_mcp_server/*.py",
|
|
19
19
|
"pyproject.toml"
|
|
20
20
|
],
|
|
21
21
|
"keywords": [
|
package/pyproject.toml
CHANGED
|
@@ -4,8 +4,8 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "coherence-mcp-server"
|
|
7
|
-
version = "0.5.
|
|
8
|
-
description = "Unified MCP server for the Coherence Network —
|
|
7
|
+
version = "0.5.3"
|
|
8
|
+
description = "Unified MCP server for the Coherence Network — 92 typed tools for AI agents to browse ideas, read field stories, manage tasks, link identities, and navigate the universal graph."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
11
11
|
license = { text = "MIT" }
|