# Bug Report: MCP Configuration Cross-Platform Compatibility Issue
Before opening, please confirm:
- [x] I have searched for duplicate or closed issues
Operating System
OS: macOS 26.2(25C56)(darwin) Shell: zsh
Kiro Version
Version: 0.8.0
Bug Description
MCP configuration fails on macOS with "Unexpected end of JSON input" error when Windows-style paths and commands are present in the configuration file. This appears to be related to Issue #4658 but with a different root cause - cross-platform compatibility rather than pure JSON syntax issues.
Error Message:
Steps to Reproduce
- Use Kiro on macOS
- Have MCP configuration with Windows-style paths:
{ "mcpServers": { "filesystem": { "command": "npx", "args": [ "-y", "@modelcontextprotocol/server-filesystem", "C:\\Users\\morinoki\\Documents" // Windows path on macOS ] }, "aws-docs": { "command": "uvx", "args": [ "--from", "awslabs-aws-documentation-mcp-server", "awslabs.aws-documentation-mcp-server.exe" // .exe on macOS ] } } } - Attempt to load MCP configuration
- Error occurs: "Error loading mcp.json from workspace directory: Unexpected end of JSON input"
Expected Behavior
Expected Behavior
- MCP configuration should work across platforms
- Error messages should clearly indicate platform compatibility issues
- Auto-detection or conversion of platform-specific paths
Actual Behavior
- Configuration fails with misleading JSON error
- No indication that the issue is platform-specific
- Manual intervention required to fix paths and commands
Conversation ID
No response
Additional Context
🛠️ Workaround Found
Replace Windows-specific elements with macOS equivalents:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/morinoki/Documents" // macOS path
]
},
"aws-docs": {
"command": "uvx",
"args": [
"awslabs.aws-documentation-mcp-server@latest" // No .exe extension
]
}
}
}
💡 Suggested Improvements
1. Better Error Messages
- Detect platform-specific paths/commands
- Provide clear error messages: "Windows path detected on macOS system"
- Suggest corrections
2. Auto-Platform Detection
- Automatically convert paths based on detected OS
- Remove platform-specific extensions (.exe) when not applicable
- Provide platform-agnostic configuration examples
3. Configuration Validation
- Validate MCP configuration before loading
- Check for common cross-platform issues
- Provide helpful suggestions for fixes
4. Documentation
- Add platform-specific configuration examples
- Include troubleshooting section for cross-platform issues
- Provide migration guide for different OS configurations
📋 Additional Context
This issue likely affects users who:
- Switch between Windows and macOS development environments
- Share MCP configurations across teams with different OS
- Use example configurations that may be platform-specific
🔗 Related Files
.kiro/settings/mcp.jsonMCP/.kiro/settings/mcp.json
📊 Impact
- Severity: Medium (blocks MCP functionality)
- Frequency: High (affects cross-platform users)
- User Experience: Poor (misleading error messages)
🔗 Related
This is distinct from issue #4658 which deals with specific server connection problems, while this addresses the broader cross-platform configuration compatibility.
Labels to add:
bugcross-platformmcpconfigurationerror-handling
This comprehensive report documents the exact issue you
Cheapest Anthropic & OpenAI-Compatible API 🚀
Works with Claude Code, Cursor, Cline, Void, Continue, Kilo Code, OpenClaw, OpenCode, LangChain, Obsidian, IntelliJ — any OpenAI-compatible client.
💰 Pricing (1 credit ≈ $1 original Anthropic)
| Credits | Price | Tokens |
|---|---|---|
| 1k | $5 | ~100M |
| 5k | $15 | ~500M |
| 10k | $30 | ~1B |
🤖 Models: claude-opus-4-6 / sonnet-4-6 / haiku-4-5 (1M ctx + websearch)
✅ Why us?
- 100 trial credits before payment
- Credits issued before payment
- Any country, any payment method
- 400+ clients, quality guarantee
- We can prove Opus is real and explain pricing
📩 Telegram: @yon_sup
We're doing a periodic backlog review and noticed this issue has been inactive for several months. Kiro has shipped a lot of changes since this was filed — we're now on IDE 1.0.293 and CLI 2.18.0 — and without any community uptake, we can't confidently prioritize it.
Closing to keep the backlog focused, but not as a dismissal. If you're still seeing this or others share the same experience, a new issue with your current version and any updated details would help us pick it back up. Issues with 👍 reactions from the community rise to the top fastest.