You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Rewrite install.ts to use VS Code native --add-mcp CLI flag
- Fix Windows: route through cmd.exe /c for .cmd batch files
- Patch custom VS Code profiles (--add-mcp only covers default)
- Update README with npx mcp-dataverse install as recommended method
- Update unit tests for new registerViaCodeCli logic
- Bump version to 0.2.5
This is the most reliable installation method, confirmed working on both VS Code and VS Code Insiders.
13
+
```bash
14
+
npx mcp-dataverse install
15
+
```
16
+
17
+
The wizard will:
18
+
19
+
1. Ask for your Dataverse environment URL
20
+
2. Save configuration to `~/.mcp-dataverse/config.json`
21
+
3. Register the server in VS Code and/or VS Code Insiders via `code --add-mcp`
22
+
4. Authenticate with your Microsoft account (device code flow)
23
+
24
+
After the wizard completes, the server is immediately available in VS Code — open Copilot chat and the 50 Dataverse tools are ready.
25
+
26
+
> **Requires VS Code 1.99+** — the CLI registration uses `code --add-mcp`, introduced in March 2025. If neither `code` nor `code-insiders` is on your PATH, the wizard prints a manual snippet to copy-paste. Custom VS Code profiles are also detected and patched automatically.
27
+
28
+
---
14
29
15
-
1. Open VS Code
16
-
2. Press **Ctrl+Shift+P** (or **Cmd+Shift+P** on macOS)
17
-
3. Type **`MCP: Add Server`** and select it
18
-
4. Choose **`NPM Package`**
19
-
5. Enter the package name: **`mcp-dataverse`**
20
-
6. Choose the scope: **User** (available in all workspaces) or **Workspace** (current project only)
30
+
### Alternative — VS Code Command Palette
21
31
22
-
VS Code will create or update `mcp.json` automatically. Then **edit the generated entry** to add your environment URL:
32
+
1. Press **Ctrl+Shift+P** (or **Cmd+Shift+P** on macOS)
33
+
2. Type **`MCP: Add Server`** → choose **`NPM Package`** → enter **`mcp-dataverse`**
34
+
3. Choose the scope: **User** or **Workspace**
35
+
4. Edit the generated entry to add your environment URL:
| Browser didn't open automatically | Copy the URL from the Output panel manually: `https://microsoft.com/devicelogin`|
314
323
|`No MSAL accounts found`| Run `npx mcp-dataverse-auth` to re-authenticate, then restart the server |
315
324
|`Authentication timed out`| The 5-minute window expired — restart the MCP server to get a new code |
316
-
|`"https://" is required`| Check `DATAVERSE_ENV_URL` in your `mcp.json` — must start with `https://`|
317
-
| Server not appearing in Copilot Agent mode | Restart VS Code; check **Output → MCP** panel for errors |
325
+
|`"https://" is required`| Check your `~/.mcp-dataverse/config.json` — URL must start with `https://`|
326
+
| Server not appearing in Copilot Agent mode | Re-run `npx mcp-dataverse install`; check **Output → MCP** panel for errors |
327
+
| Install wizard says "not found on PATH" | Install VS Code Shell Command (**Ctrl+Shift+P** → *Shell Command: Install...*) or use the manual snippet provided |
0 commit comments