@productbrain/mcp 0.0.1-beta.124 → 0.0.1-beta.12402
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/.env.mcp.example +5 -1
- package/README.md +67 -0
- package/dist/chunk-3U2ECUFG.js +1764 -0
- package/dist/chunk-3U2ECUFG.js.map +1 -0
- package/dist/chunk-V2WCCCRI.js +11948 -0
- package/dist/chunk-V2WCCCRI.js.map +1 -0
- package/dist/cli/index.js +1 -1
- package/dist/http.js +1259 -163
- package/dist/http.js.map +1 -1
- package/dist/index.js +5 -25
- package/dist/index.js.map +1 -1
- package/dist/setup-OMHPPHKE.js +204 -0
- package/dist/setup-OMHPPHKE.js.map +1 -0
- package/dist/views/src/entry-cards/index.html +85 -60
- package/dist/views/src/graph-constellation/index.html +72 -47
- package/package.json +8 -8
- package/dist/chunk-2ZWGQ6PK.js +0 -278
- package/dist/chunk-2ZWGQ6PK.js.map +0 -1
- package/dist/chunk-SDLQPEK6.js +0 -11531
- package/dist/chunk-SDLQPEK6.js.map +0 -1
- package/dist/chunk-UUI7P743.js +0 -3647
- package/dist/chunk-UUI7P743.js.map +0 -1
- package/dist/setup-2JWIZ3QO.js +0 -297
- package/dist/setup-2JWIZ3QO.js.map +0 -1
- package/dist/smart-capture-LJ6JF5DC.js +0 -41
- package/dist/smart-capture-LJ6JF5DC.js.map +0 -1
package/.env.mcp.example
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# ── Required ─────────────────────────────────────────────────────────
|
|
6
6
|
#
|
|
7
7
|
# PRODUCTBRAIN_API_KEY — Your API key from Settings → API Keys.
|
|
8
|
-
#
|
|
8
|
+
# A key starts with pb_sk_ or pb_agent_. Workspace, user, and scope
|
|
9
9
|
# are all derived server-side from this key.
|
|
10
10
|
|
|
11
11
|
# PRODUCTBRAIN_API_KEY=pb_sk_your_key_here
|
|
@@ -19,5 +19,9 @@
|
|
|
19
19
|
|
|
20
20
|
# CONVEX_SITE_URL=https://your-deployment.convex.site
|
|
21
21
|
|
|
22
|
+
# PB_CONNECT_GATEWAY_URL — (CLI only) Override gateway for `pb connect` token redemption.
|
|
23
|
+
# Takes precedence over CONVEX_SITE_URL and the production default.
|
|
24
|
+
# PB_CONNECT_GATEWAY_URL=https://your-custom-gateway.example.com
|
|
25
|
+
|
|
22
26
|
# ── Debug (optional) ──────────────────────────────────────────────────
|
|
23
27
|
# MCP_DEBUG=1
|
package/README.md
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# Product Brain MCP (`@productbrain/mcp`)
|
|
2
|
+
|
|
3
|
+
Give your AI agent your product's memory. Read the Chain, capture decisions, and write back — from Claude Code, Claude Desktop, Cursor, or any MCP client.
|
|
4
|
+
|
|
5
|
+
**Requirements:** Node 18+, and an API key from Product Brain Settings, API Keys.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
Pre-GA, always pin the `beta` tag:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npx -y @productbrain/mcp@beta
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Connect your client
|
|
16
|
+
|
|
17
|
+
### Claude Code
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
claude mcp add productbrain \
|
|
21
|
+
-e PRODUCTBRAIN_API_KEY=pb_sk_your_key_here \
|
|
22
|
+
-- npx -y @productbrain/mcp@beta
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Claude Desktop
|
|
26
|
+
|
|
27
|
+
`claude_desktop_config.json`:
|
|
28
|
+
|
|
29
|
+
```jsonc
|
|
30
|
+
{
|
|
31
|
+
"mcpServers": {
|
|
32
|
+
"productbrain": {
|
|
33
|
+
"command": "npx",
|
|
34
|
+
"args": ["-y", "@productbrain/mcp@beta"],
|
|
35
|
+
"env": {
|
|
36
|
+
"PRODUCTBRAIN_API_KEY": "pb_sk_your_key_here"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Cursor
|
|
44
|
+
|
|
45
|
+
`~/.cursor/mcp.json` — same `command` / `args` / `env` block as above.
|
|
46
|
+
|
|
47
|
+
## Configuration
|
|
48
|
+
|
|
49
|
+
| Variable | Required | Default |
|
|
50
|
+
|---|---|---|
|
|
51
|
+
| `PRODUCTBRAIN_API_KEY` | yes | — your API key. Workspace, user and scope come from it on the server. |
|
|
52
|
+
| `CONVEX_SITE_URL` | no | Product Brain Cloud. Point at another deployment (a `*.convex.site` URL, not `*.convex.cloud`). |
|
|
53
|
+
| `PRODUCTBRAIN_URL` | no | Alias for `CONVEX_SITE_URL`. |
|
|
54
|
+
| `MCP_DEBUG` | no | Set to `1` for verbose logs on stderr. |
|
|
55
|
+
|
|
56
|
+
See `.env.mcp.example` in this package for the annotated list.
|
|
57
|
+
|
|
58
|
+
## What your agent gets
|
|
59
|
+
|
|
60
|
+
Tools for orientation, search, capture, entry and relation management, collections, labels, workflows, and session tracking. The agent reads what governs the work before it acts, and writes decisions and tensions back as it learns them.
|
|
61
|
+
|
|
62
|
+
Prefer the terminal? [`@productbrain/cli`](https://www.npmjs.com/package/@productbrain/cli) exposes the same Chain as `pb`.
|
|
63
|
+
|
|
64
|
+
## Links
|
|
65
|
+
|
|
66
|
+
- Product Brain — https://work.productbrain.io
|
|
67
|
+
- Issues — https://github.com/synergyai-os/Product-OS/issues
|