文章摘要
An issue was encountered when attempting to connect the Claude Code Stitch client running in WSL2 to the Claude desktop application's Model Context Protocol (MCP) server on Windows.
- The core problem stemmed from the MCP server binding to `127.0.0.1` on the Windows host, making it inaccessible from WSL2's distinct `localhost` network context.
- The primary solution involved explicitly configuring the `claude-code-stitch` client within WSL2 to connect to the Windows host's specific IP address where the Claude desktop app's MCP server was actively listening.
- A temporary workaround involving binding the MCP server to `0.0.0.0` (all interfaces) was also explored to confirm the network connectivity issue.
- The article provides practical configuration steps for `claude-code-stitch` client settings and relevant VS Code configurations to establish a successful connection.