modelcontextprotocol / modelcontextprotocol/servers
Window mcp instalation repo path needs double slashes
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 90.5k
- Forks
- 11.7k
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 5
Description
Describe the bug
When configuring mcpServers on Windows, paths containing backslashes are not handled correctly if not escaped in JSON. Using a path like c:\temp\bvb causes MCP error -32000: Connection closed because \t is interpreted as a tab character.
To Reproduce
Steps to reproduce the behavior:
Create an MCP configuration on Windows similar to:
json
Copy
Edit
{
"mcpServers": {
"git": {
"command": "uvx",
"args": [
"mcp-server-git",
"--repository",
"c:\temp\project"
]
}
}
}
Start KiloCode in VS Code.
Observe that the MCP connection fails with error -32000: Connection closed.
Expected behavior
The MCP server should connect successfully when given a valid Windows path, even if the path uses standard backslashes (as is default in Windows).
Logs
nginx
Copy
Edit
MCP error -32000: Connection closed
Additional context
Escaping the Windows path (e.g., "C:\temp\project") fixes the issue. This may need better documentation, automatic escaping, or clearer error messaging to prevent confusion for Windows users.
Contributor guide
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.
Research direction
Start by reproducing the mcpServers configuration in VS Code on Windows with the unescaped and escaped paths shown in the issue. Trace how KiloCode handles the repository argument before the MCP connection is started. Done means a valid Windows path connects successfully, or the required escaping and error guidance are clearly documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- json, typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100