-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsetup.bat
More file actions
82 lines (73 loc) · 2.25 KB
/
setup.bat
File metadata and controls
82 lines (73 loc) · 2.25 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
@echo off
REM Setup script for mcp-debugpy (Windows)
echo ========================================
echo Setting up mcp-debugpy development environment
echo ========================================
echo.
REM Check Python
python --version >nul 2>&1
if errorlevel 1 (
echo ERROR: Python not found. Please install Python 3.8 or higher.
exit /b 1
)
REM Create virtual environment
echo Creating virtual environment...
python -m venv .venv
if errorlevel 1 (
echo ERROR: Failed to create virtual environment
exit /b 1
)
echo.
REM Activate virtual environment
echo Activating virtual environment...
call .venv\Scripts\activate.bat
if errorlevel 1 (
echo ERROR: Failed to activate virtual environment
exit /b 1
)
echo.
REM Upgrade pip
echo Upgrading pip...
python -m pip install --upgrade pip
if errorlevel 1 (
echo WARNING: Failed to upgrade pip, continuing anyway...
)
echo.
REM Install runtime dependencies
echo Installing runtime dependencies...
pip install -r requirements.txt
if errorlevel 1 (
echo ERROR: Failed to install runtime dependencies
exit /b 1
)
echo.
REM Install development dependencies
echo Installing development dependencies...
pip install -r requirements-dev.txt
if errorlevel 1 (
echo ERROR: Failed to install development dependencies
exit /b 1
)
echo.
REM Run smoke tests
echo ========================================
echo Smoke-testing MCP tooling and examples
echo ========================================
python -m pytest tests\test_mcp_server.py examples\math_bug\tests examples\async_worker\tests examples\gui_counter\tests examples\web_flask\tests
REM Continue even if tests fail (|| true equivalent)
echo.
REM Display next steps
echo ========================================
echo Setup complete!
echo ========================================
echo.
echo Next steps:
echo .venv\Scripts\activate
echo python scripts\configure_mcp_clients.py # register VS Code / Claude MCP entries
echo # ...or follow docs\mcp_usage.md for manual configuration details
echo python src\dap_stdio_direct.py # optional direct adapter walkthrough
echo # After configuration, use your MCP chat to call run_tests_json, dap_launch, etc.
echo.
echo Each example README (examples\*\README.md) shows how to launch via dap_launch.
echo.
pause