modelcontextprotocol / modelcontextprotocol/servers

Window mcp instalation repo path needs double slashes

Open
#2,519 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug server-git
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.