@productbrain/mcp 0.0.1-beta.3 → 0.0.1-beta.3012

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 CHANGED
@@ -2,27 +2,26 @@
2
2
  # Copy this file to .env.mcp and fill in your values.
3
3
  # In Claude Desktop / Cursor, these are typically set via the MCP config's "env" block.
4
4
 
5
- # ── Cloud Mode (recommended) ──────────────────────────────────────────
5
+ # ── Required ─────────────────────────────────────────────────────────
6
6
  #
7
7
  # PRODUCTBRAIN_API_KEY — Your API key from Settings → API Keys.
8
- # Starts with pb_sk_. This is the only required variable.
9
- #
10
- # PRODUCTBRAIN_URL — Override the backend URL.
11
- # Defaults to Product Brain Cloud. Set to http://localhost:3210
12
- # for local development.
8
+ # Starts with pb_sk_. Workspace, user, and scope
9
+ # are all derived server-side from this key.
13
10
 
14
11
  # PRODUCTBRAIN_API_KEY=pb_sk_your_key_here
15
- # PRODUCTBRAIN_URL=
16
12
 
17
- # ── Self-Hosted Mode ──────────────────────────────────────────────────
13
+ # ── Deployment URL (optional) ────────────────────────────────────────
14
+ #
15
+ # CONVEX_SITE_URL — Your Convex deployment SITE URL (*.convex.site, NOT *.convex.cloud).
16
+ # Defaults to Product Brain Cloud if not set.
18
17
  #
19
- # CONVEX_SITE_URL Your Convex deployment SITE URL (*.convex.site, NOT *.convex.cloud).
20
- # MCP_API_KEY — Shared secret matching the Convex dashboard env var.
21
- # WORKSPACE_SLUG — The workspace slug to operate on.
18
+ # PRODUCTBRAIN_URL Alias for CONVEX_SITE_URL (for backward compat).
22
19
 
23
20
  # CONVEX_SITE_URL=https://your-deployment.convex.site
24
- # MCP_API_KEY=your-secret-api-key
25
- # WORKSPACE_SLUG=your-workspace-slug
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
26
25
 
27
26
  # ── Debug (optional) ──────────────────────────────────────────────────
28
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 (starts with `pb_sk_`).
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 `pb_sk_` key. Workspace, user, and scope are all derived server-side from the key. |
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