edhvault-mcp 0.0.0-stage → 0.2.0

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/LICENSE +26 -0
  2. package/README.md +114 -2
  3. package/dist/cli.js +51000 -0
  4. package/package.json +22 -4
package/LICENSE ADDED
@@ -0,0 +1,26 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 EDHVault
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.
22
+
23
+ This software is not affiliated with, endorsed by, or sponsored by Wizards of
24
+ the Coast LLC. Magic: The Gathering, Commander, and all related names and
25
+ logos are trademarks of Wizards of the Coast LLC. Card data and images are
26
+ sourced from Scryfall (scryfall.com) and EDHREC (edhrec.com).
package/README.md CHANGED
@@ -1,3 +1,115 @@
1
- # Temporary Holding Version
1
+ # EDHVault for AI tools
2
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.
3
+ Lets an AI tool on your computer read your own EDHVault library: decks, collection, binders and wishlist. It can also search every Magic card.
4
+
5
+ **It can only read.** It can't change a deck, your collection or anything else. The server enforces that, not this program.
6
+
7
+ ## Before you start
8
+
9
+ 1. Turn on sync in EDHVault (Settings, Sync & backup).
10
+ 2. Under **AI tools access**, name a code and press **Create access code**.
11
+ 3. You see the code once. Keep the page open until you've connected.
12
+
13
+ You get a 10-character code good for 5 minutes, and a long code that starts with `EV-AI-` (under **Show long code**). Use the short one with `login`, and the long one where a client wants a fixed value.
14
+
15
+ Needs Node 20 or newer, except in Claude Desktop, which brings its own.
16
+
17
+ ## Connect your client
18
+
19
+ ### Claude Desktop
20
+
21
+ 1. Download `edhvault.mcpb`.
22
+ 2. In Claude Desktop, open Settings, Extensions, Advanced settings, Install Extension, and pick the file.
23
+ 3. Paste the long code into **Access code**.
24
+
25
+ ### Claude Code
26
+
27
+ ```bash
28
+ npx -y edhvault-mcp login
29
+ ```
30
+
31
+ ```bash
32
+ claude mcp add --transport stdio --scope user edhvault -- npx -y edhvault-mcp
33
+ ```
34
+
35
+ ### Cursor
36
+
37
+ Run `npx -y edhvault-mcp login`, then add this to `~/.cursor/mcp.json`:
38
+
39
+ ```json
40
+ { "mcpServers": { "edhvault": { "type": "stdio", "command": "npx", "args": ["-y", "edhvault-mcp"] } } }
41
+ ```
42
+
43
+ ### VS Code (Copilot)
44
+
45
+ Run `npx -y edhvault-mcp login`, then use **MCP: Add Server**, choose Command (stdio), and enter `npx -y edhvault-mcp`. In `.vscode/mcp.json` the key is `servers`, not `mcpServers`:
46
+
47
+ ```json
48
+ { "servers": { "edhvault": { "type": "stdio", "command": "npx", "args": ["-y", "edhvault-mcp"] } } }
49
+ ```
50
+
51
+ ### LM Studio (0.3.17 or newer)
52
+
53
+ Run `npx -y edhvault-mcp login`. Then, on the Program tab, choose Install, Edit `mcp.json`, and add the same `mcpServers` block as Cursor.
54
+
55
+ With a local model, nothing the tools return leaves your computer.
56
+
57
+ ## What it can do
58
+
59
+ | Tool | What it does |
60
+ |---|---|
61
+ | `list_decks` | Your decks: commanders, card count, legality, bracket floor, folder |
62
+ | `get_deck` | One deck: counts, curve, legality. Ask for `standard` for the list, `full` for printings, notes and primer |
63
+ | `collection_lookup` | What you own of some cards, a search, or a deck: copies, printings, binders, decks using it, wishlist |
64
+ | `card_search` | Every Magic card, in EDHVault's Scryfall-style search. Works without a code |
65
+ | `deck_combos` | The combos in a deck and the ones it's one card from, as the deck builder finds them, and how many count toward its bracket |
66
+ | `plan_odds` | The odds a deck's plan comes together by turn N: your saved Plan by turn, or rows you ask about. The same 20,000 games as the Odds tab, with your own card reads |
67
+
68
+ Bracket floors count two-card infinite combos, as the deck builder does. Legality here is information, the same as on the site. It never stops you doing anything.
69
+
70
+ The first combo question downloads the combo index (about 28 MB) once; after that it's cached like the card data. Combo data comes from [Commander Spellbook](https://commanderspellbook.com).
71
+
72
+ ## Privacy
73
+
74
+ **Whatever AI tools read is sent to the AI service you use (Anthropic, OpenAI...), unless you run a local model.**
75
+
76
+ The code reads a separate copy of your library, made on your own device with secrets taken out: public-link edit tokens, your sync keys, device names and the like. Your own text comes through as you typed it, including deck names, notes, primers and tags. If you pasted something private into a note, the tool can read it.
77
+
78
+ The copy updates when a device on the current version of EDHVault syncs. It can take up to an hour to start on your other devices after you make your first code.
79
+
80
+ ## Where your code is kept
81
+
82
+ `login` stores it on this computer only:
83
+
84
+ - In your system keychain, when one is available.
85
+ - Otherwise in a file only your user account can read: permissions `0600` on macOS and Linux, and on Windows an access list that grants your account alone, with inherited permissions removed. If that lock can't be set, the code isn't saved and `login` says so.
86
+
87
+ The file is `access-code`, in:
88
+
89
+ | System | Folder |
90
+ |---|---|
91
+ | Windows | `%APPDATA%\edhvault-mcp` |
92
+ | macOS | `~/Library/Application Support/edhvault-mcp` |
93
+ | Linux | `~/.config/edhvault-mcp` |
94
+
95
+ Your library is cached in the same folder, still encrypted. Card data is cached there too (about 30 MB) and the first card lookup downloads it.
96
+
97
+ The Claude Desktop extension doesn't use this file: Claude Desktop stores the code itself.
98
+
99
+ ## Removing access
100
+
101
+ In EDHVault, open Settings, AI tools access, and press **Remove** next to the code. The server refuses it from that moment. Anything it already read stays with it, including what your AI service received.
102
+
103
+ To forget the code on one computer only:
104
+
105
+ ```bash
106
+ npx -y edhvault-mcp logout
107
+ ```
108
+
109
+ ## Trouble
110
+
111
+ - **"Not connected yet"**: run `npx -y edhvault-mcp login`.
112
+ - **"This access code was removed"**: make a new code in Settings and log in again.
113
+ - **"Your library isn't ready yet"**: open EDHVault on a synced device, wait for it to sync, and try again.
114
+
115
+ Logs go to `edhvault-mcp.log` in the folder above. Add `--debug` for more.