Commit ff0f5fb
authored
fix: Use cmd /c wrapper for npx on Windows (#279)
* fix: Use cmd /c wrapper for npx on Windows
- Windows requires 'cmd /c' wrapper to properly execute npx commands
- Changed both debug and standard npx configurations
- Fixes 'Cannot read properties of undefined (reading 'cmd')' error
- Follows Anthropic's official recommendation for Windows MCP servers
- Resolves issues with npx.cmd failing in recent Claude Desktop versions
* fix: Move --inspect-brk flag to NODE_OPTIONS instead of npx args
- Inspector flag must be passed via NODE_OPTIONS environment variable
- Passing --inspect-brk as npx argument doesn't work with cmd /c wrapper
- Fixes debug mode to properly attach debugger on startup
- Addresses code review feedback1 parent c4fc187 commit ff0f5fb
1 file changed
+44
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
757 | 757 | | |
758 | 758 | | |
759 | 759 | | |
| 760 | + | |
760 | 761 | | |
761 | | - | |
| 762 | + | |
762 | 763 | | |
763 | 764 | | |
764 | 765 | | |
765 | 766 | | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
777 | 788 | | |
778 | 789 | | |
779 | 790 | | |
| |||
799 | 810 | | |
800 | 811 | | |
801 | 812 | | |
802 | | - | |
803 | | - | |
804 | | - | |
805 | | - | |
806 | | - | |
807 | | - | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
| 819 | + | |
| 820 | + | |
| 821 | + | |
| 822 | + | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
808 | 834 | | |
809 | 835 | | |
810 | 836 | | |
| |||
0 commit comments