edhvault-mcp 0.2.11 → 0.2.17

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 (3) hide show
  1. package/README.md +27 -3
  2. package/dist/cli.js +3161 -265
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
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
4
 
5
- **It can only read.** It can't change a deck, your collection or anything else. The server enforces that, not this program.
5
+ **It can't change anything on its own.** By default a code only reads. If you allow it (**Can ask to: Change decks**, **Make decks**), it can *ask* to change a deck or make one, and nothing happens until you approve the request in EDHVault. The server enforces both, not this program.
6
6
 
7
7
  ## Before you start
8
8
 
9
9
  1. Turn on sync in EDHVault (Settings, Sync & backup).
10
- 2. In Settings, **AI tools**, press **Create access code**.
10
+ 2. In Settings, **AI tools**, tick what the code may read (Decks, Deck notes, Collection, and Wishlist, binders, seeds: all four by default) and press **Create access code**. **Edit access** on a code changes it later.
11
11
  3. You see the code once. Keep the page open until you've connected.
12
12
 
13
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.
@@ -74,9 +74,17 @@ With a local model, nothing the tools return leaves your computer.
74
74
  | `list_combos` | Every Commander combo in Commander Spellbook's data: with all of some cards, inside a color identity, by what it makes, by how many cards. Most popular first. Works without a code |
75
75
  | `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 |
76
76
  | `deck_stats` | A deck's DIRT, as the deck builder shows it: Draw, Interaction, Ramp and Tutors, each scored 1-10 against every Commander deck and compared with typical decks for its commander (and its cEDH decks), the DIRT average, interaction quality and finishers. `standard` lists the cards behind each number |
77
+ | `deck_compare` | Two decks side by side, as the deck builder's Compare: cards only in each, in both (with each side's copies), and what the second deck's extras would cost to buy, minus what you own. Either deck can be saved, pasted, or a Moxfield / Archidekt link |
78
+ | `deck_overlap` | Cards shared across your decks, as /overlap: how many decks run each and which, and what sharing one physical copy between decks saves, in copies and dollars. Needs a code |
79
+ | `deck_manabase` | A deck's mana base, as the deck builder's Manabase: lands vs the recommended count, opening-hand odds, and per color the sources vs Frank Karsten's target with the card that sets it. For a short color, fixing lands to add (owned first) and the basic to cut. Works on a pasted list or link too |
80
+ | `edit_deck` | Ask to change a saved deck: add, cut, set copies, or move cards between the deck, considering and the sideboard (at most 30 cards). Files a **request**: nothing changes until you approve it in EDHVault. It's checked first (already in, not in it, outside the commander's colors, banned, one copy only). Needs a code allowed to change decks |
81
+ | `set_deck_notes` | Ask to change a saved deck's name, description, notes, primer or tags. Each field given replaces what's there. The description, notes and primer need a code that can read deck notes, so it never writes over text it can't see. Needs a code allowed to change decks |
82
+ | `move_to_folder` | Ask to move decks into a folder (made if there's none by that name), or out of their folders. Needs a code allowed to change decks |
83
+ | `create_deck` | Ask to make a new deck: its commander (or a legal pair), name, the cards it starts with (at most 120), and a folder. Owned cards go in the deck, others on its buy list. Needs a code allowed to make decks |
84
+ | `get_requests` | The requests this code filed and what became of each: pending, applied, declined, or expired (not answered within 7 days) |
77
85
  | `plan_odds` | The odds a deck's plan comes together by turn N: your saved Plan by turn, or rows you ask about (cards, groups, tags, or counts like cards in hand). The same 20,000 games as the Odds tab, with your own card reads. It lists what it had to assume, and can try card reads for one run (what-if, not saved). Every Odds tab setting works the same way here: per-row mulligan-for (including "one or a tutor that finds it"), tutors off per row, AND / OR parts, graveyard rows, what a row gives you, the land range to keep a 7 with, opponents, how many rows must come together, the table guesses and the deep sim |
78
86
 
79
- **Any deck, not just saved ones.** Every deck tool (`get_deck`, `deck_stats`, `deck_combos`, `plan_odds`, `card_tutors`, `deck_pull_list`, `collection_lookup`) takes `list` instead of `deck`: a pasted decklist, or a public Moxfield or Archidekt deck link. It's read the way EDHVault's Import page reads it and is never saved. Reading one needs no access code; what you own of it does. A link is read by edhvault.com, as the site does it: for Moxfield, public decks only, with an honest EDHVault User-Agent and no login. If the list doesn't mark its commander, set `commander`.
87
+ **Any deck, not just saved ones.** Every deck tool (`get_deck`, `deck_stats`, `deck_combos`, `plan_odds`, `card_tutors`, `deck_pull_list`, `deck_compare`, `deck_manabase`, `collection_lookup`) takes `list` instead of `deck`: a pasted decklist, or a public Moxfield or Archidekt deck link. It's read the way EDHVault's Import page reads it and is never saved. Reading one needs no access code; what you own of it does. A link is read by edhvault.com, as the site does it: for Moxfield, public decks only, with an honest EDHVault User-Agent and no login. If the list doesn't mark its commander, set `commander`.
80
88
 
81
89
  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.
82
90
 
@@ -84,12 +92,26 @@ The first combo question downloads the combo index (about 28 MB) once; after tha
84
92
 
85
93
  Prices are today's, the same the site shows. Everything comes from edhvault.com: nothing calls Scryfall directly. Asking how combos work downloads their steps (about 57 MB) once; answers say so until then.
86
94
 
95
+ ## Changes an AI asks for
96
+
97
+ - **Two permissions, both off by default:** "Change decks" (cards, a deck's text, its folder) and "Make decks". Tick them for a code in Settings, AI tools access.
98
+ - **You approve each one** in Settings, AI tools, under **Requests**, or on the deck itself when it's open. It shows the deck, the cards (or the new text, in full), and the AI's reason. Approved on the deck, a card change is a normal edit there: Ctrl+Z takes it back.
99
+ - **If the deck changed since** the request was made, it says so and checks every change again against the deck as it is now: cards already added or cut, more than 30 cards, a card outside the commander's colors or banned. **Approve** only appears when all of it still applies.
100
+ - **Requests expire after 7 days.** The AI sees them as expired (or applied, or declined), never pending forever.
101
+ - **Every approved change is in the deck's History** (Tools, History, "AI changes"), with the code's name and an **Undo**. Undo puts back what it can and tells you what it couldn't, if you changed those cards, that text, or that deck's folder since; it never overwrites your edits. The last 50 per deck are kept. Only the newest change to a deck's text can be undone (the History keeps one old copy per field, not 50 primers). A deck an AI made has no Undo: delete it from Decks.
102
+ - **An AI never makes anything public.** A deck it makes is private even with "Make new decks public" on; publish it yourself. Its changes to a deck you made public leave that as it is.
103
+ - Removing a code removes its waiting requests.
104
+
87
105
  ## Privacy
88
106
 
89
107
  **Whatever AI tools read is sent to the AI service you use (Anthropic, OpenAI...), unless you run a local model.**
90
108
 
91
109
  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.
92
110
 
111
+ **A code reads only what you ticked.** The copy is in four parts (decks, deck notes, collection, and wishlist / binders / seeds), each locked with its own key. A code gets the keys of its parts only, and edhvault.com refuses it the others, so a part is kept from it twice. Tools say when something is left out: `get_deck` without deck notes skips the primer and says so, and a code without the collection is told it can't read it. Deck notes are their own part because free text is where pasted links and emails end up.
112
+
113
+ **Taking something away is real.** When a part is taken from a code (with Edit access, or by removing the code), the server refuses it at once, and that part's key is swapped: the part is written again under a new key, and every other code that still reads it gets the new key. A key the old code kept opens nothing written after that. What it already read stays with it.
114
+
93
115
  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.
94
116
 
95
117
  ## Where your code is kept
@@ -125,6 +147,8 @@ npx -y edhvault-mcp logout
125
147
 
126
148
  - **"Not connected yet"**: run `npx -y edhvault-mcp login`.
127
149
  - **"This access code was removed"**: make a new code in Settings and log in again.
150
+ - **"This access code is from an older version of EDHVault"**: codes made before you could choose what a code reads no longer work. Remove it in Settings, make a new one, and log in again.
151
+ - **"This access code can't read ..."**: the code wasn't given that part. Add it with **Edit access** on the code in Settings.
128
152
  - **"Your library isn't ready yet"**: open EDHVault on a synced device, wait for it to sync, and try again.
129
153
 
130
154
  Logs go to `edhvault-mcp.log` in the folder above. Add `--debug` for more.