Commit 57add81
committed
feat(mcp): add cross-platform Windows support to filesystem example
Implement automatic OS detection to support Windows, Linux, and macOS
without code changes. Windows requires cmd.exe wrapper for npx batch
files, while Unix systems execute npx directly.
Changes:
- Add isWindows() method with conditional ServerParameters creation
- Support both programmatic and JSON configuration approaches
- Use @ConditionalOnMissingBean to avoid bean conflicts
- Add Windows and Linux JSON configuration files
- Update README with cross-platform quick start and troubleshooting
- Use relative paths for better portability1 parent 21e59de commit 57add81
File tree
6 files changed
+448
-112
lines changed- model-context-protocol/filesystem
- src/main
- java/org/springframework/ai/mcp/samples/filesystem
- resources
6 files changed
+448
-112
lines changed
0 commit comments