burn-mcp-server 2.0.6 → 2.0.7
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 +57 -2
- package/api/health.mjs +7 -0
- package/api/mcp.js +36075 -0
- package/dist/http.mjs +1131 -0
- package/dist/index.js +1021 -1009
- package/package.json +7 -3
- package/public/index.html +47 -0
- package/server.json +16 -2
- package/src/http-dev.ts +56 -0
- package/src/http.ts +62 -0
- package/src/index.ts +28 -1624
- package/src/lib/auth-stdio.ts +26 -0
- package/src/lib/auth.ts +71 -0
- package/src/setup.ts +1529 -0
- package/src/vercel-handler.ts +20 -0
- package/src/vercel-node-handler.ts +76 -0
- package/tsconfig.json +10 -6
- package/vercel.json +9 -0
package/README.md
CHANGED
|
@@ -21,7 +21,35 @@ The MCP server lets your AI agent search, triage, organize, and analyze everythi
|
|
|
21
21
|
|
|
22
22
|
Download [Burn on iOS](https://apps.apple.com/app/burn451/id6759418544) or use [Burn on the web](https://burn451.cloud) → Settings → MCP Server → **Copy Access Token**
|
|
23
23
|
|
|
24
|
-
### 2.
|
|
24
|
+
### 2. Connect (pick one)
|
|
25
|
+
|
|
26
|
+
#### Option A — Remote HTTP (recommended, no install)
|
|
27
|
+
|
|
28
|
+
Add this URL to your MCP client. Works with Claude Desktop, Cursor, Windsurf, ChatGPT desktop, anything that speaks MCP Streamable HTTP:
|
|
29
|
+
|
|
30
|
+
```
|
|
31
|
+
https://mcp.burn451.cloud/mcp
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Authorization header: `Bearer <your-token>`
|
|
35
|
+
|
|
36
|
+
Claude Desktop config:
|
|
37
|
+
```json
|
|
38
|
+
{
|
|
39
|
+
"mcpServers": {
|
|
40
|
+
"burn": {
|
|
41
|
+
"url": "https://mcp.burn451.cloud/mcp",
|
|
42
|
+
"headers": { "Authorization": "Bearer <your-token>" }
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
No Node install, no npx, no local process — one URL and you're in.
|
|
49
|
+
|
|
50
|
+
#### Option B — Local stdio (npm install)
|
|
51
|
+
|
|
52
|
+
For offline / privacy-sensitive setups where you don't want requests going through burn451.cloud:
|
|
25
53
|
|
|
26
54
|
```json
|
|
27
55
|
{
|
|
@@ -113,7 +141,7 @@ Download [Burn on iOS](https://apps.apple.com/app/burn451/id6759418544) or use [
|
|
|
113
141
|
|
|
114
142
|
**Cross-tool intelligence** — Use with Claude Code, Cursor, or Windsurf. Your bookmarks become context for coding, writing, and thinking.
|
|
115
143
|
|
|
116
|
-
## Environment Variables
|
|
144
|
+
## Environment Variables (stdio mode)
|
|
117
145
|
|
|
118
146
|
| Variable | Required | Description |
|
|
119
147
|
|----------|----------|-------------|
|
|
@@ -123,6 +151,33 @@ Download [Burn on iOS](https://apps.apple.com/app/burn451/id6759418544) or use [
|
|
|
123
151
|
|
|
124
152
|
*One of `BURN_MCP_TOKEN` or `BURN_SUPABASE_TOKEN` required.
|
|
125
153
|
|
|
154
|
+
## Transports
|
|
155
|
+
|
|
156
|
+
This server ships two transports from the same tool set:
|
|
157
|
+
|
|
158
|
+
| Transport | Entry | Who it's for |
|
|
159
|
+
|---|---|---|
|
|
160
|
+
| **Streamable HTTP** (`src/http.ts` → `api/mcp.ts`) | Remote server (Vercel Edge) | Most users — paste one URL, done |
|
|
161
|
+
| **stdio** (`src/index.ts`) | `npx burn-mcp-server` | Offline / privacy-first users |
|
|
162
|
+
|
|
163
|
+
### Self-hosting the HTTP server
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
git clone https://github.com/Fisher521/burn-mcp-server
|
|
167
|
+
cd burn-mcp-server
|
|
168
|
+
npm install
|
|
169
|
+
npm run build:http
|
|
170
|
+
PORT=3791 node dist/http.mjs
|
|
171
|
+
# test:
|
|
172
|
+
curl -sS -X POST http://localhost:3791 \
|
|
173
|
+
-H "Authorization: Bearer <YOUR_TOKEN>" \
|
|
174
|
+
-H "Content-Type: application/json" \
|
|
175
|
+
-H "Accept: application/json, text/event-stream" \
|
|
176
|
+
-d '{"jsonrpc":"2.0","method":"tools/list","id":1}'
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
Or deploy to Vercel (one-click): `vercel --prod` in repo root. Config is in `vercel.json`.
|
|
180
|
+
|
|
126
181
|
## Security
|
|
127
182
|
|
|
128
183
|
- Token scoped to your data only (Row Level Security)
|
package/api/health.mjs
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export const config = { runtime: 'edge' }
|
|
2
|
+
export default async function handler(req) {
|
|
3
|
+
return new Response(JSON.stringify({ ok: true, url: req.url, method: req.method, runtime: 'edge' }), {
|
|
4
|
+
status: 200,
|
|
5
|
+
headers: { 'content-type': 'application/json' },
|
|
6
|
+
})
|
|
7
|
+
}
|