daemoon-mcp 1.0.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/LICENSE +21 -0
- package/README.md +80 -0
- package/package.json +51 -0
- package/src/index.js +95 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Jaebin Lee
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# daemoon-mcp
|
|
2
|
+
|
|
3
|
+
Stdio MCP shim for [Daemoon](https://daemoon.dev) — one Bearer token gives any
|
|
4
|
+
MCP-aware AI agent access to Vercel, GitHub, Cloudflare, Supabase, Google Cloud,
|
|
5
|
+
Stripe, Resend, OpenAI, and Anthropic.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx -y daemoon-mcp
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
Generate a Daemoon token at https://daemoon.dev/dashboard, then drop into your
|
|
16
|
+
agent's MCP config:
|
|
17
|
+
|
|
18
|
+
### Claude Code
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
claude mcp add daemoon --command "npx" --args "-y,daemoon-mcp" --env "DAEMOON_TOKEN=dmn_..."
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Or paste into `~/.claude.json`:
|
|
25
|
+
|
|
26
|
+
```json
|
|
27
|
+
{
|
|
28
|
+
"mcpServers": {
|
|
29
|
+
"daemoon": {
|
|
30
|
+
"command": "npx",
|
|
31
|
+
"args": ["-y", "daemoon-mcp"],
|
|
32
|
+
"env": { "DAEMOON_TOKEN": "dmn_..." }
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Cursor
|
|
39
|
+
|
|
40
|
+
`Settings → MCP → Add new server`:
|
|
41
|
+
|
|
42
|
+
```json
|
|
43
|
+
{
|
|
44
|
+
"daemoon": {
|
|
45
|
+
"command": "npx",
|
|
46
|
+
"args": ["-y", "daemoon-mcp"],
|
|
47
|
+
"env": { "DAEMOON_TOKEN": "dmn_..." }
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## What it does
|
|
53
|
+
|
|
54
|
+
`daemoon-mcp` is a tiny stdio→HTTP shim. The actual tools live at
|
|
55
|
+
`https://daemoon.dev/api/mcp`. The token in `DAEMOON_TOKEN` authenticates each
|
|
56
|
+
call to your Daemoon vault — the agent never sees the underlying provider
|
|
57
|
+
credentials.
|
|
58
|
+
|
|
59
|
+
18 tools across 9 providers:
|
|
60
|
+
|
|
61
|
+
- `vercel.list_projects`, `vercel.create_project`, `vercel.create_deployment`
|
|
62
|
+
- `github.list_repos`, `github.create_repo`
|
|
63
|
+
- `supabase.list_projects`, `supabase.run_sql`
|
|
64
|
+
- `cloudflare.list_zones`, `cloudflare.create_dns_record`
|
|
65
|
+
- `gcp.list_projects`, `gcp.list_services`
|
|
66
|
+
- `stripe.list_products`, `stripe.list_customers`, `stripe.create_payment_link`
|
|
67
|
+
- `resend.send_email`, `resend.list_domains`
|
|
68
|
+
- `openai.list_models`, `openai.chat_completion`
|
|
69
|
+
- `anthropic.create_message`
|
|
70
|
+
|
|
71
|
+
## Configuration
|
|
72
|
+
|
|
73
|
+
| Env var | Default | Description |
|
|
74
|
+
|--------------------|----------------------------------------|----------------------------------------------|
|
|
75
|
+
| `DAEMOON_TOKEN` | — (required) | PAT generated at daemoon.dev/dashboard |
|
|
76
|
+
| `DAEMOON_ENDPOINT` | `https://daemoon.dev/api/mcp` | Override for self-hosted Daemoon |
|
|
77
|
+
|
|
78
|
+
## License
|
|
79
|
+
|
|
80
|
+
MIT. Source: https://github.com/daemoon-dev/daemoon
|
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "daemoon-mcp",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Stdio MCP shim for Daemoon — one Bearer token for Vercel, GitHub, Cloudflare, Supabase, GCP, Stripe, Resend, OpenAI, Anthropic.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "src/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"daemoon-mcp": "src/index.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"src/",
|
|
12
|
+
"README.md",
|
|
13
|
+
"LICENSE"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"start": "node src/index.js"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"mcp",
|
|
20
|
+
"mcp-server",
|
|
21
|
+
"model-context-protocol",
|
|
22
|
+
"claude-code",
|
|
23
|
+
"cursor",
|
|
24
|
+
"vercel",
|
|
25
|
+
"github",
|
|
26
|
+
"cloudflare",
|
|
27
|
+
"supabase",
|
|
28
|
+
"gcp",
|
|
29
|
+
"stripe",
|
|
30
|
+
"resend",
|
|
31
|
+
"openai",
|
|
32
|
+
"anthropic"
|
|
33
|
+
],
|
|
34
|
+
"author": "Daemoon",
|
|
35
|
+
"license": "MIT",
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "git+https://github.com/daemoon-dev/daemoon.git",
|
|
39
|
+
"directory": "npm-shim"
|
|
40
|
+
},
|
|
41
|
+
"homepage": "https://daemoon.dev",
|
|
42
|
+
"bugs": {
|
|
43
|
+
"url": "https://github.com/daemoon-dev/daemoon/issues"
|
|
44
|
+
},
|
|
45
|
+
"engines": {
|
|
46
|
+
"node": ">=18"
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"@modelcontextprotocol/sdk": "^1.29.0"
|
|
50
|
+
}
|
|
51
|
+
}
|
package/src/index.js
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/* Daemoon MCP stdio shim — proxies stdio MCP traffic to https://daemoon.dev/api/mcp.
|
|
3
|
+
*
|
|
4
|
+
* Usage (Claude Code config):
|
|
5
|
+
* {
|
|
6
|
+
* "mcpServers": {
|
|
7
|
+
* "daemoon": {
|
|
8
|
+
* "command": "npx",
|
|
9
|
+
* "args": ["-y", "daemoon-mcp"],
|
|
10
|
+
* "env": { "DAEMOON_TOKEN": "dmn_..." }
|
|
11
|
+
* }
|
|
12
|
+
* }
|
|
13
|
+
* }
|
|
14
|
+
*
|
|
15
|
+
* Generate DAEMOON_TOKEN at https://daemoon.dev/dashboard.
|
|
16
|
+
*/
|
|
17
|
+
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
18
|
+
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
19
|
+
import {
|
|
20
|
+
CallToolRequestSchema,
|
|
21
|
+
ListToolsRequestSchema,
|
|
22
|
+
} from "@modelcontextprotocol/sdk/types.js";
|
|
23
|
+
|
|
24
|
+
const ENDPOINT = process.env.DAEMOON_ENDPOINT || "https://daemoon.dev/api/mcp";
|
|
25
|
+
const TOKEN = process.env.DAEMOON_TOKEN;
|
|
26
|
+
|
|
27
|
+
if (!TOKEN) {
|
|
28
|
+
console.error(
|
|
29
|
+
"DAEMOON_TOKEN env var is required. Generate one at https://daemoon.dev/dashboard.",
|
|
30
|
+
);
|
|
31
|
+
process.exit(1);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const VERSION = "1.0.1";
|
|
35
|
+
|
|
36
|
+
let rpcId = 0;
|
|
37
|
+
|
|
38
|
+
async function call(method, params) {
|
|
39
|
+
const id = ++rpcId;
|
|
40
|
+
const res = await fetch(ENDPOINT, {
|
|
41
|
+
method: "POST",
|
|
42
|
+
headers: {
|
|
43
|
+
Authorization: `Bearer ${TOKEN}`,
|
|
44
|
+
"Content-Type": "application/json",
|
|
45
|
+
"User-Agent": `daemoon-mcp/${VERSION}`,
|
|
46
|
+
},
|
|
47
|
+
body: JSON.stringify({ jsonrpc: "2.0", id, method, params: params ?? {} }),
|
|
48
|
+
});
|
|
49
|
+
if (!res.ok) {
|
|
50
|
+
const text = await res.text();
|
|
51
|
+
throw new Error(
|
|
52
|
+
`Daemoon ${method} ${res.status}: ${text.slice(0, 300)}`,
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
const data = await res.json();
|
|
56
|
+
if (data.error) {
|
|
57
|
+
const msg = data.error.message ?? JSON.stringify(data.error);
|
|
58
|
+
throw new Error(`Daemoon ${method}: ${msg}`);
|
|
59
|
+
}
|
|
60
|
+
return data.result;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
async function main() {
|
|
64
|
+
const server = new Server(
|
|
65
|
+
{ name: "daemoon", version: VERSION },
|
|
66
|
+
{ capabilities: { tools: {} } },
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
70
|
+
const result = await call("tools/list", {});
|
|
71
|
+
return result;
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
server.setRequestHandler(CallToolRequestSchema, async req => {
|
|
75
|
+
try {
|
|
76
|
+
const result = await call("tools/call", req.params);
|
|
77
|
+
return {
|
|
78
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
79
|
+
};
|
|
80
|
+
} catch (e) {
|
|
81
|
+
return {
|
|
82
|
+
content: [{ type: "text", text: e.message }],
|
|
83
|
+
isError: true,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
const transport = new StdioServerTransport();
|
|
89
|
+
await server.connect(transport);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
main().catch(err => {
|
|
93
|
+
console.error("daemoon-mcp crashed:", err);
|
|
94
|
+
process.exit(1);
|
|
95
|
+
});
|