-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathconfigure-claude-code.bat
More file actions
45 lines (39 loc) · 1.05 KB
/
configure-claude-code.bat
File metadata and controls
45 lines (39 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@echo off
REM Script to configure Claude Code to use local MCP server
REM Run this script to add the mcmodding-mcp server to Claude Code
SET CONFIG_PATH=%APPDATA%\Claude\claude_desktop_config.json
SET PROJECT_PATH=%~dp0
echo Configuring Claude Code to use mcmodding-mcp...
echo.
echo Config file location: %CONFIG_PATH%
echo Project path: %PROJECT_PATH%
echo.
REM Check if config file exists
if not exist "%CONFIG_PATH%" (
echo Creating new config file...
echo { "mcpServers": {} } > "%CONFIG_PATH%"
)
echo.
echo Please manually add this to your Claude Code config at:
echo %CONFIG_PATH%
echo.
echo Add this configuration:
echo {
echo "mcpServers": {
echo "mcmodding-local": {
echo "command": "node",
echo "args": ["%PROJECT_PATH%dist\\index.js"]
echo }
echo }
echo }
echo.
echo After updating the config, restart Claude Code.
echo.
REM Open the config file in notepad
echo Opening config file in notepad...
start notepad "%CONFIG_PATH%"
echo.
echo IMPORTANT: Make sure you have built the project first!
echo Run: npm run build
echo.
pause