mindgraph-mcp 0.7.0 → 0.7.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 +128 -0
- package/dist/cli.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# mindgraph-mcp
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/mindgraph-mcp)
|
|
4
|
+
[](LICENSE)
|
|
5
|
+
|
|
6
|
+
Model Context Protocol server for [MindGraph](https://mindgraph.cloud) — plug your persistent, structured knowledge graph into Claude Desktop, Claude Code, and any MCP-compatible client.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
The fastest way to install is the interactive setup:
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npx mindgraph-mcp init
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
This walks you through:
|
|
17
|
+
|
|
18
|
+
1. Sign in via browser (or paste an existing API key).
|
|
19
|
+
2. Pick your client — Claude Desktop, Claude Code, or both.
|
|
20
|
+
3. The server is wired up automatically; restart your client to activate.
|
|
21
|
+
|
|
22
|
+
Don't have a MindGraph account yet? Sign up at [mindgraph.cloud](https://mindgraph.cloud) first.
|
|
23
|
+
|
|
24
|
+
### Manual install
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
# Claude Desktop
|
|
28
|
+
npx mindgraph-mcp install --api-key mg_your_key_here
|
|
29
|
+
|
|
30
|
+
# Claude Code
|
|
31
|
+
npx mindgraph-mcp install-code --api-key mg_your_key_here
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Or drop this into your Claude Desktop config by hand (`~/Library/Application Support/Claude/claude_desktop_config.json` on macOS):
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"mcpServers": {
|
|
39
|
+
"mindgraph": {
|
|
40
|
+
"command": "npx",
|
|
41
|
+
"args": ["-y", "mindgraph-mcp@latest"],
|
|
42
|
+
"env": {
|
|
43
|
+
"MINDGRAPH_API_KEY": "mg_your_key_here"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## What You Get
|
|
51
|
+
|
|
52
|
+
**7 tools** covering the full knowledge-graph workflow:
|
|
53
|
+
|
|
54
|
+
| Tool | Purpose |
|
|
55
|
+
|------|---------|
|
|
56
|
+
| `mindgraph_capture` | Entities, observations, sources, snippets, concepts, journal entries |
|
|
57
|
+
| `mindgraph_reason` | Claims with evidence, open questions, hypotheses, theories, anomalies |
|
|
58
|
+
| `mindgraph_commit` | Goals, projects, decisions, options, milestones |
|
|
59
|
+
| `mindgraph_plan` | Plans, tasks, procedures, governance policies, risk assessments, executions |
|
|
60
|
+
| `mindgraph_retrieve` | BM25 / semantic / hybrid search, traversal (chain, neighborhood, path, subgraph), document index |
|
|
61
|
+
| `mindgraph_ingest` | Chunk / document / session ingestion with LLM-powered extraction |
|
|
62
|
+
| `mindgraph_synthesize` | Project-scoped cross-document synthesis — mine signals, spawn Article-generation jobs |
|
|
63
|
+
|
|
64
|
+
**7 prompt templates** for common workflows:
|
|
65
|
+
|
|
66
|
+
`graph-summary`, `active-goals`, `open-questions`, `review-contradictions`, `knowledge-about`, `daily-briefing`, `capture-conversation`.
|
|
67
|
+
|
|
68
|
+
**Resources** (static + dynamic URIs):
|
|
69
|
+
|
|
70
|
+
- `mindgraph://stats`, `mindgraph://goals`, `mindgraph://questions`, `mindgraph://contradictions`, `mindgraph://decisions`
|
|
71
|
+
- `mindgraph://node/{uid}` — a node with all its outgoing and incoming edges
|
|
72
|
+
- `mindgraph://search/{query}` — BM25 search results
|
|
73
|
+
- `mindgraph://layer/{layer}` — all nodes in a cognitive layer (reality, epistemic, intent, action, memory, agent)
|
|
74
|
+
|
|
75
|
+
## CLI
|
|
76
|
+
|
|
77
|
+
```text
|
|
78
|
+
mindgraph-mcp Start the MCP server (stdio transport)
|
|
79
|
+
mindgraph-mcp init Interactive setup
|
|
80
|
+
mindgraph-mcp install Install into Claude Desktop config
|
|
81
|
+
mindgraph-mcp install-code Install into Claude Code
|
|
82
|
+
mindgraph-mcp uninstall Remove from Claude Desktop config
|
|
83
|
+
mindgraph-mcp uninstall-code Remove from Claude Code
|
|
84
|
+
mindgraph-mcp status Show installation status
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
Options: `--api-key <key>`, `--base-url <url>`, `--help`.
|
|
88
|
+
|
|
89
|
+
## Environment
|
|
90
|
+
|
|
91
|
+
| Variable | Default | Purpose |
|
|
92
|
+
|----------|---------|---------|
|
|
93
|
+
| `MINDGRAPH_API_KEY` | *(required)* | Your MindGraph API key (`mg_…`) |
|
|
94
|
+
| `MINDGRAPH_BASE_URL` | `https://api.mindgraph.cloud` | Override for self-hosted deployments |
|
|
95
|
+
| `MINDGRAPH_AGENT_ID` | `mcp` | Stamped onto every node/edge written by the MCP — useful for provenance across multiple agents |
|
|
96
|
+
| `MINDGRAPH_ORG_ID` | *(unset)* | Pin operations to a specific organization when a key has access to more than one |
|
|
97
|
+
|
|
98
|
+
## Usage in Claude
|
|
99
|
+
|
|
100
|
+
Once installed, start asking Claude about your knowledge graph naturally:
|
|
101
|
+
|
|
102
|
+
> "What did I capture about climate policy last week?"
|
|
103
|
+
> "Summarize my active goals and open decisions."
|
|
104
|
+
> "Ingest this PDF and extract the main claims."
|
|
105
|
+
> "Find entities mentioned across multiple project documents, then spin up a synthesis."
|
|
106
|
+
|
|
107
|
+
The server auto-injects `agent_id: "mcp"` on every write so you always know which nodes came from your MCP sessions.
|
|
108
|
+
|
|
109
|
+
## Architecture
|
|
110
|
+
|
|
111
|
+
This MCP server is a thin wrapper over the [mindgraph](https://www.npmjs.com/package/mindgraph) TypeScript SDK. It exposes cognitive-layer abstractions (Reality, Epistemic, Intent, Action, Memory, Agent) as consolidated tools rather than one-tool-per-endpoint, which keeps the tool surface compact enough for high-quality tool selection by the model.
|
|
112
|
+
|
|
113
|
+
Search strategy is **keyword-first**: `mindgraph_retrieve` defaults to `action: "context"` which uses BM25. Escalate to `semantic` or `hybrid` only when keywords fail.
|
|
114
|
+
|
|
115
|
+
## Development
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
git clone https://github.com/shuruheel/mindgraph-mcp
|
|
119
|
+
cd mindgraph-mcp
|
|
120
|
+
npm install
|
|
121
|
+
npm run build # build with tsup (CJS + .d.ts)
|
|
122
|
+
npm run lint # tsc --noEmit
|
|
123
|
+
npm run dev # tsup --watch
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
## License
|
|
127
|
+
|
|
128
|
+
MIT
|
package/dist/cli.js
CHANGED
|
@@ -1079,7 +1079,7 @@ async function main() {
|
|
|
1079
1079
|
const transport = new import_stdio.StdioServerTransport();
|
|
1080
1080
|
await server.connect(transport);
|
|
1081
1081
|
console.error(
|
|
1082
|
-
`MindGraph MCP server v0.7.
|
|
1082
|
+
`MindGraph MCP server v0.7.1 running on stdio (${BASE_URL})`
|
|
1083
1083
|
);
|
|
1084
1084
|
}
|
|
1085
1085
|
var import_server, import_stdio, import_types, import_mindgraph, API_KEY, BASE_URL, AGENT_ID, ORG_ID, client, INSTRUCTIONS, server, PROMPTS;
|
|
@@ -1183,7 +1183,7 @@ Capture knowledge when the user shares something worth remembering:
|
|
|
1183
1183
|
server = new import_server.Server(
|
|
1184
1184
|
{
|
|
1185
1185
|
name: "mindgraph",
|
|
1186
|
-
version: "0.7.
|
|
1186
|
+
version: "0.7.1"
|
|
1187
1187
|
},
|
|
1188
1188
|
{
|
|
1189
1189
|
capabilities: {
|
package/dist/index.js
CHANGED
|
@@ -1140,7 +1140,7 @@ Capture knowledge when the user shares something worth remembering:
|
|
|
1140
1140
|
var server = new import_server.Server(
|
|
1141
1141
|
{
|
|
1142
1142
|
name: "mindgraph",
|
|
1143
|
-
version: "0.7.
|
|
1143
|
+
version: "0.7.1"
|
|
1144
1144
|
},
|
|
1145
1145
|
{
|
|
1146
1146
|
capabilities: {
|
|
@@ -1496,7 +1496,7 @@ async function main() {
|
|
|
1496
1496
|
const transport = new import_stdio.StdioServerTransport();
|
|
1497
1497
|
await server.connect(transport);
|
|
1498
1498
|
console.error(
|
|
1499
|
-
`MindGraph MCP server v0.7.
|
|
1499
|
+
`MindGraph MCP server v0.7.1 running on stdio (${BASE_URL})`
|
|
1500
1500
|
);
|
|
1501
1501
|
}
|
|
1502
1502
|
main().catch((error) => {
|
package/package.json
CHANGED