NEURALDRAFT_API_KEYS:name=keypairs separated by commas or new lines, or a JSON object{"villa-lavanda": "ndsk_live_…"}. Names are yours to choose (the client’s name works well).NEURALDRAFT_WORKSPACE: the active one at start; default the first.- If both
NEURALDRAFT_API_KEYandNEURALDRAFT_API_KEYSare set, the single key is used unlessNEURALDRAFT_WORKSPACEnames one of the list.
Tools
Every other tool acts on the active workspace. Ask the assistant to confirm
the active workspace before changing a client’s site:
Switch to linden-bakery, then list its pages.A key only ever reaches its own workspace, so one client’s tools can’t touch another’s data.
Versions
npx -y @neuraldraft/mcp always fetches the latest. Pin with
@neuraldraft/mcp@0.4.0 if you need to. Before 0.4.0 the package ignored
NEURALDRAFT_API_KEYS; with an older pinned version add one server entry per
client instead.
In your own code
The SDK has the same model:NeuralDraftWorkspaces reads the same
NEURALDRAFT_API_KEYS format. See SDK → Several workspaces.