@echo off
REM Build script for creating Manim MCP MCPB bundle (Windows)
echo Building Manim MCP Bundle (.mcpb)...
echo ====================================
echo.
REM Check if mcpb CLI is installed
where mcpb >nul 2>&1
if errorlevel 1 (
echo Error: MCPB CLI not found.
echo Install it with: npm install -g @anthropic-ai/mcpb
exit /b 1
)
REM Check if icon exists
if not exist "icon.png" (
echo Error: icon.png not found.
echo Please create a 512x512 PNG icon file.
exit /b 1
)
echo Icon found
REM Validate manifest.json
echo Validating manifest.json...
mcpb validate manifest.json
if errorlevel 1 (
echo Error: manifest.json validation failed
exit /b 1
)
echo Manifest valid
echo.
REM Clean previous builds
echo Cleaning previous builds...
if exist "*.mcpb" del /q *.mcpb
if exist "dist\" rmdir /s /q dist
REM Build the MCPB
echo.
echo Building MCPB bundle...
mcpb pack
echo.
echo Build complete!
echo.
REM Find the created .mcpb file
for %%f in (*.mcpb) do (
echo Created: %%f
echo.
echo To install:
echo 1. Double-click %%f
echo 2. Or drag-and-drop into Claude Desktop
echo 3. Or use: File -^> Developer -^> Extensions -^> Install Extension
goto :found
)
echo Warning: Could not find generated .mcpb file
:found
echo.
echo Next steps:
echo 1. Test the extension in Claude Desktop
echo 2. Verify both tools work correctly
echo 3. Test on both Windows and macOS if possible
pause