microsoft / microsoft/foundry-dev-tools
"Add MCP Server" > "Add by MCP.json" raises error when no mcp.json file exist
@XiaofuHuang is already working on this.
Since Oct 14, 2025.
- Dominant language
- JavaScript
- Stars
- 2.1k
- Forks
- 260
- Avg merge
- 42m
- Merged PRs (30d)
- 29
Description
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.jsonfile when selecting "Add by MCP.json" - (or) ... hide option "Add by MCP.json" from "Add MCP Server" list
Experienced Behavior
Steps:
- Press "Add MCP Server" in the "MCP WORKFLOW" section
- 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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.