@thedeck/mcp 0.0.0-stage → 0.1.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.
Files changed (4) hide show
  1. package/README.md +78 -3
  2. package/dist/cli.js +23050 -0
  3. package/dist/index.js +24963 -0
  4. package/package.json +36 -4
package/README.md CHANGED
@@ -1,3 +1,78 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
1
+ # @thedeck/mcp
2
+
3
+ The Deck's MCP server. It lets your AI agent draft tasks, send blanked example copies, propose tests, check
4
+ your tasks and their passing entries, run the pre-check on your entry, and try passing entries on your real
5
+ data. It acts as you, with the same rights you have on the site.
6
+
7
+ An agent can never save a card, post a task live, accept an entry, pitch in or pay anyone. You do those on
8
+ The Deck yourself.
9
+
10
+ ## Connect
11
+
12
+ Claude Code:
13
+
14
+ ```sh
15
+ claude mcp add thedeck -- npx @thedeck/mcp
16
+ ```
17
+
18
+ Codex:
19
+
20
+ ```sh
21
+ codex mcp add thedeck -- npx @thedeck/mcp
22
+ ```
23
+
24
+ GitHub Copilot in VS Code:
25
+
26
+ ```sh
27
+ code --add-mcp '{"name":"thedeck","command":"npx","args":["@thedeck/mcp"]}'
28
+ ```
29
+
30
+ The first time your agent uses a tool, your browser opens The Deck's consent page. Sign in, check what the
31
+ agent may do, and press Allow. The sign-in is saved in `~/.thedeck/credentials.json`; disconnect the agent
32
+ any time in Settings › Agent.
33
+
34
+ ChatGPT and other clients that only connect to remote servers use `https://thedeck.dev/mcp` instead. That
35
+ address has the poster tools and `deck.report_issue` only: nothing there runs on your computer. In Grok, open
36
+ Connectors, choose New Connector, then Custom, enter that address and sign in to The Deck when asked.
37
+
38
+ ## Tools
39
+
40
+ | Tool | For | Runs |
41
+ |---|---|---|
42
+ | `deck.post_draft` | posters | The Deck |
43
+ | `deck.add_example_copy` | posters | checks the copy here, then The Deck |
44
+ | `deck.propose_tests` | posters | The Deck |
45
+ | `deck.list_quests` | posters and builders | The Deck |
46
+ | `deck.get_task_status` | posters | The Deck |
47
+ | `deck.get_passing_entries` | posters | The Deck |
48
+ | `deck.try_on_real_data` | posters | a sandbox on this computer |
49
+ | `deck.run_precheck` | builders | a sandbox on this computer |
50
+ | `deck.report_issue` | posters and builders, during the beta, with your yes | The Deck |
51
+
52
+ Real files and real data never leave your computer: only blanked copies and scores do.
53
+
54
+ ## The local sandbox
55
+
56
+ `deck.run_precheck` and `deck.try_on_real_data` run entries the way The Deck's runner does, in a Docker
57
+ container with no network. Install Docker and build the sandbox image once from this repository:
58
+
59
+ ```sh
60
+ docker build -f runner/Dockerfile --target sandbox -t thedeck-sandbox .
61
+ ```
62
+
63
+ An entry folder needs a `deck.json` naming the command that runs it, for example
64
+ `{"run": ["python", "read_invoices.py", "{input}", "{output}"]}`. Without `{output}`, what the program
65
+ prints is its answer.
66
+
67
+ For `deck.try_on_real_data`, put each real input beside its right answer with the same name, such as
68
+ `invoice-01.pdf` and `invoice-01.csv`.
69
+
70
+ ## Pre-check from a terminal
71
+
72
+ ```sh
73
+ npx -p @thedeck/mcp thedeck precheck <quest id> [entry folder]
74
+ ```
75
+
76
+ ## Settings
77
+
78
+ `THEDECK_URL` points the server at another copy of The Deck, for example `http://127.0.0.1:3000` locally.