vscode-ai-toolkit icon indicating copy to clipboard operation
vscode-ai-toolkit copied to clipboard

"Add MCP Server" > "Add by MCP.json" raises error when no mcp.json file exist

Open LoHertel opened this issue 2 months ago • 1 comments

As a new user, when I click "Add MCP Server" > "Add by MCP.json", an error message appears, that the mcp.json file doesn't exist.


Expected Behavior

I would expect one of these options:

When no ~/.aitk/mcp.json file exists ...

  • (either) ... create empty mcp.json file when selecting "Add by MCP.json"
  • (or) ... hide option "Add by MCP.json" from "Add MCP Server" list

Experienced Behavior

Steps:

  1. Press "Add MCP Server" in the "MCP WORKFLOW" section
  2. Select first option "Add by MCP.json"

Error message appears:

[error] cannot open vscode-remote://wsl%2Bubuntu-22.04/home/user/.aitk/mcp.json. Detail: Unable to read file 'vscode-remote://wsl+ubuntu-22.04/home/user/.aitk/mcp.json' (Error: Unable to resolve nonexistent file 'vscode-remote://wsl+ubuntu-22.04/home/user/.aitk/mcp.json')

My ~/aitk directory looks like this:

📁 .aitk/
├── 🗒️ 20251012-2682-ext.log
├── 🗒️ '20251012 024048-openai.service.log'
├── 📁 evals/
├── 📁 models/
└── 📁 prompts/

I have never used the MCP Workflow before, no mcp.json file exists yet.


Sys infos:

  • ms-windows-ai-studio.windows-ai-studio 0.22.1
  • VS Code 1.104.3
  • Host OS: Windows_NT x64 10.0.22631
  • WSL OS: Ubuntu 22.04.5 LTS

LoHertel avatar Oct 12 '25 13:10 LoHertel

Thank you for bringing this issue to our attention. We will fix it in the next release.

XiaofuHuang avatar Oct 15 '25 03:10 XiaofuHuang