forked from Ladvien/bevy_debugger_mcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·50 lines (43 loc) · 1.67 KB
/
install.sh
File metadata and controls
executable file
·50 lines (43 loc) · 1.67 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
#!/bin/bash
# Installation script for bevy-debugger-mcp
# This script installs the binary and sets up necessary symlinks for Claude Code compatibility
set -e
echo "Installing bevy-debugger-mcp..."
# Build the binary in release mode
echo "Building bevy-debugger-mcp..."
cargo build --release --bin bevy-debugger-mcp
# Install to cargo bin directory
echo "Installing to ~/.cargo/bin..."
cp target/release/bevy-debugger-mcp ~/.cargo/bin/
chmod +x ~/.cargo/bin/bevy-debugger-mcp
# Create symlink for Claude Code compatibility
# Claude Code sometimes looks for binaries in ~/.local/bin
echo "Creating symlink for Claude Code compatibility..."
mkdir -p ~/.local/bin
ln -sf ~/.cargo/bin/bevy-debugger-mcp ~/.local/bin/bevy-debugger-mcp
# Verify installation
if command -v bevy-debugger-mcp &> /dev/null; then
echo "✅ bevy-debugger-mcp installed successfully!"
echo ""
echo "Binary locations:"
echo " - Main: ~/.cargo/bin/bevy-debugger-mcp"
echo " - Symlink: ~/.local/bin/bevy-debugger-mcp"
echo ""
echo "To use with Claude Code, add to your MCP settings:"
echo " ~/.claude/mcp_settings.json (Claude Code CLI)"
echo " ~/Library/Application Support/Claude/claude_desktop_config.json (Claude Desktop)"
echo ""
echo "Example configuration:"
echo ' "bevy-debugger-mcp": {'
echo ' "command": "/Users/'$USER'/.cargo/bin/bevy-debugger-mcp",'
echo ' "args": ["stdio"],'
echo ' "env": {'
echo ' "RUST_LOG": "info",'
echo ' "BEVY_BRP_HOST": "127.0.0.1",'
echo ' "BEVY_BRP_PORT": "15702"'
echo ' }'
echo ' }'
else
echo "❌ Installation failed. Please check the error messages above."
exit 1
fi