@doublehitgames/gdd-mcp 0.4.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 +66 -0
- package/dist/addon-tools.d.ts +10 -0
- package/dist/addon-tools.js +682 -0
- package/dist/addon-tools.js.map +1 -0
- package/dist/client.d.ts +42 -0
- package/dist/client.js +120 -0
- package/dist/client.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +41 -0
- package/dist/index.js.map +1 -0
- package/dist/prompts.d.ts +8 -0
- package/dist/prompts.js +81 -0
- package/dist/prompts.js.map +1 -0
- package/dist/tools.d.ts +9 -0
- package/dist/tools.js +280 -0
- package/dist/tools.js.map +1 -0
- package/package.json +31 -0
package/README.md
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# @doublehitgames/gdd-mcp
|
|
2
|
+
|
|
3
|
+
MCP server for [GDD Manager](https://gdd-app.vercel.app) — lets Claude (and other MCP-compatible AI assistants) read and write your game design documents.
|
|
4
|
+
|
|
5
|
+
This is the **stdio** transport, meant for local clients like **Claude Desktop** and **Claude Code**. It runs on your machine and talks to the GDD Manager REST API using a personal API key.
|
|
6
|
+
|
|
7
|
+
> **Prefer zero-setup?** If you use **claude.ai** or **Claude Desktop**, you can connect via the remote server with OAuth instead — no install, no key. Add a custom connector pointing to `https://gdd-app.vercel.app/api/mcp` and authorize with your account. Use this npm package only when you specifically want the local/stdio route (e.g. Claude Code, scripts, or working without a browser login).
|
|
8
|
+
|
|
9
|
+
## Requirements
|
|
10
|
+
|
|
11
|
+
- Node.js 18+
|
|
12
|
+
- A GDD Manager API key (`gdd_sk_...`) — generate one at <https://gdd-app.vercel.app/settings/api-keys>
|
|
13
|
+
|
|
14
|
+
## Claude Desktop
|
|
15
|
+
|
|
16
|
+
Add this to your `claude_desktop_config.json`:
|
|
17
|
+
|
|
18
|
+
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
19
|
+
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
20
|
+
|
|
21
|
+
```json
|
|
22
|
+
{
|
|
23
|
+
"mcpServers": {
|
|
24
|
+
"gdd-manager": {
|
|
25
|
+
"command": "npx",
|
|
26
|
+
"args": ["-y", "@doublehitgames/gdd-mcp"],
|
|
27
|
+
"env": {
|
|
28
|
+
"GDD_API_KEY": "gdd_sk_your_key_here"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Restart Claude Desktop. In a new chat, try: *"List my GDD projects"*.
|
|
36
|
+
|
|
37
|
+
## Claude Code
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
claude mcp add gdd-manager -e GDD_API_KEY=gdd_sk_your_key_here -- npx -y @doublehitgames/gdd-mcp
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Configuration
|
|
44
|
+
|
|
45
|
+
| Variable | Required | Default | Description |
|
|
46
|
+
| --- | --- | --- | --- |
|
|
47
|
+
| `GDD_API_KEY` | yes | — | Your personal API key (`gdd_sk_...`). |
|
|
48
|
+
| `GDD_API_URL` | no | `https://gdd-app.vercel.app` | Base URL of the GDD Manager API (override for self-hosting). |
|
|
49
|
+
|
|
50
|
+
## What it exposes
|
|
51
|
+
|
|
52
|
+
- **Projects, sections, and addons** — full CRUD (list, read, create, update, delete).
|
|
53
|
+
- **Typed addon tools** for each addon type (currency, inventory, economy link, progression table, production, data schema, attributes, and more), so the assistant fills the right fields.
|
|
54
|
+
- **Search** across your projects and sections.
|
|
55
|
+
- **Prompts** — ready-made flows like listing projects, viewing a project, and analyzing a GDD.
|
|
56
|
+
|
|
57
|
+
The key scopes access to your own projects — the assistant only sees what your account can see.
|
|
58
|
+
|
|
59
|
+
## Links
|
|
60
|
+
|
|
61
|
+
- GDD Manager: <https://gdd-app.vercel.app>
|
|
62
|
+
- Manage API keys: <https://gdd-app.vercel.app/settings/api-keys>
|
|
63
|
+
|
|
64
|
+
## License
|
|
65
|
+
|
|
66
|
+
MIT
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type-specific MCP tools for each addon type.
|
|
3
|
+
*
|
|
4
|
+
* 12 types × 2 (create + update) = 24 tools.
|
|
5
|
+
* Each tool fixes the addon `type` and provides a typed schema for `data`,
|
|
6
|
+
* then delegates to the generic addon API endpoint.
|
|
7
|
+
*/
|
|
8
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
9
|
+
import { GddApiClient } from "./client.js";
|
|
10
|
+
export declare function registerAddonTools(server: McpServer, client: GddApiClient): void;
|