coherence-mcp-server 0.5.2 → 0.5.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 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 89 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, apply project blueprints, receive the shared agent invitation, and read repository content via direct links without writing a single API call.
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
@@ -78,7 +78,7 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
78
78
 
79
79
  ---
80
80
 
81
- ## Tools (89)
81
+ ## Tools (92)
82
82
 
83
83
  ### Ideas — the portfolio engine
84
84
 
@@ -123,6 +123,14 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
123
123
  | `coherence_record_contribution` | Record work by contributor name or by provider identity (no registration needed). |
124
124
  | `coherence_contributor_ledger` | CC balance, contribution history, and linked ideas. |
125
125
 
126
+ ### Field Stories — contribution-derived profile memory
127
+
128
+ | Tool | What it does |
129
+ |------|-------------|
130
+ | `coherence_get_field_story` | Read a published field story with canonical narrative, anchors, reports, and agent contribution surfaces. |
131
+ | `coherence_get_field_story_artifact` | Read one artifact from a field story: anchors, summaries, reports, tools, or event traces. |
132
+ | `coherence_contribute_field_story` | Record an attributed correction, addition, source, or interpretation proposal for a field story. |
133
+
126
134
  ### Tasks — agent work protocol
127
135
 
128
136
  | Tool | What it does |
@@ -272,7 +280,7 @@ Every part of the network links to every other. Jump in wherever makes sense.
272
280
  | **Web** | Browse ideas, specs, and contributors visually | [coherencycoin.com](https://coherencycoin.com) |
273
281
  | **API** | 100+ endpoints, full OpenAPI docs, the engine behind everything | [api.coherencycoin.com/docs](https://api.coherencycoin.com/docs) |
274
282
  | **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 — 89 typed tools for AI agents | [npm: coherence-mcp-server](https://www.npmjs.com/package/coherence-mcp-server) |
283
+ | **MCP Server** | This package — 92 typed tools for AI agents | [npm: coherence-mcp-server](https://www.npmjs.com/package/coherence-mcp-server) |
276
284
  | **OpenClaw Skill** | Auto-triggers in any OpenClaw instance for ideas, specs, coherence | [ClawHub: coherence-network](https://clawhub.com/skills/coherence-network) |
277
285
  | **GitHub** | Source code, specs, issues, and contribution tracking | [github.com/seeker71/Coherence-Network](https://github.com/seeker71/Coherence-Network) |
278
286
 
@@ -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 89 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, apply project blueprints, receive the shared agent invitation, and read repository content via direct links without writing a single API call.
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
@@ -77,7 +77,7 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
77
77
 
78
78
  ---
79
79
 
80
- ## Tools (89)
80
+ ## Tools (92)
81
81
 
82
82
  ### Ideas — the portfolio engine
83
83
 
@@ -122,6 +122,14 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
122
122
  | `coherence_record_contribution` | Record work by contributor name or by provider identity (no registration needed). |
123
123
  | `coherence_contributor_ledger` | CC balance, contribution history, and linked ideas. |
124
124
 
125
+ ### Field Stories — contribution-derived profile memory
126
+
127
+ | Tool | What it does |
128
+ |------|-------------|
129
+ | `coherence_get_field_story` | Read a published field story with canonical narrative, anchors, reports, and agent contribution surfaces. |
130
+ | `coherence_get_field_story_artifact` | Read one artifact from a field story: anchors, summaries, reports, tools, or event traces. |
131
+ | `coherence_contribute_field_story` | Record an attributed correction, addition, source, or interpretation proposal for a field story. |
132
+
125
133
  ### Tasks — agent work protocol
126
134
 
127
135
  | Tool | What it does |
@@ -135,6 +143,19 @@ Point your MCP client at `npx coherence-mcp-server` via stdio transport.
135
143
  | `coherence_task_seed` | Create a new task from an idea. |
136
144
  | `coherence_task_events` | View the activity event log for a task. |
137
145
 
146
+ ### Awareness Streaming — presence in and out
147
+
148
+ | Tool | What it does |
149
+ |------|-------------|
150
+ | `coherence_awareness_publish` | Publish a diagnostic awareness event from a node. |
151
+ | `coherence_awareness_stream` | Read a bounded slice from diagnostic, node-message, or task SSE streams. |
152
+ | `coherence_node_message_send` | Send a durable node-to-node or broadcast message. |
153
+ | `coherence_node_messages` | Read durable inbound messages for a node. |
154
+
155
+ Streams are intentionally bounded. `duration_seconds` defaults to 5 seconds
156
+ and is capped at 30; `max_events` defaults to 20 and is capped at 200. This
157
+ lets MCP clients sense live awareness without leaving a tool call open forever.
158
+
138
159
  ### Graph — universal navigation
139
160
 
140
161
  | Tool | What it does |
@@ -258,7 +279,7 @@ Every part of the network links to every other. Jump in wherever makes sense.
258
279
  | **Web** | Browse ideas, specs, and contributors visually | [coherencycoin.com](https://coherencycoin.com) |
259
280
  | **API** | 100+ endpoints, full OpenAPI docs, the engine behind everything | [api.coherencycoin.com/docs](https://api.coherencycoin.com/docs) |
260
281
  | **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 — 89 typed tools for AI agents | [npm: coherence-mcp-server](https://www.npmjs.com/package/coherence-mcp-server) |
282
+ | **MCP Server** | This package — 92 typed tools for AI agents | [npm: coherence-mcp-server](https://www.npmjs.com/package/coherence-mcp-server) |
262
283
  | **OpenClaw Skill** | Auto-triggers in any OpenClaw instance for ideas, specs, coherence | [ClawHub: coherence-network](https://clawhub.com/skills/coherence-network) |
263
284
  | **GitHub** | Source code, specs, issues, and contribution tracking | [github.com/seeker71/Coherence-Network](https://github.com/seeker71/Coherence-Network) |
264
285
 
@@ -1,8 +1,9 @@
1
1
  """
2
2
  coherence-mcp-server — MCP server for the Coherence Network.
3
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.
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.2"
17
+ __version__ = "0.5.3"
17
18
  __all__ = ["__version__"]
@@ -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.2",
4
- "description": "Unified MCP server for the Coherence Network — 89 typed tools for AI agents to browse ideas, receive the shared invitation, manage tasks, link identities, and navigate the universal graph.",
3
+ "version": "0.5.3",
4
+ "description": "Unified MCP server for the Coherence Network — 92 typed tools for AI agents to browse ideas, read field stories, receive the shared invitation, manage tasks, link identities, and navigate the universal graph.",
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.2"
8
- 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."
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" }