Skip to main content
Glama

Godot Sentinel MCP

by Snack-JPG
test-mcp-integration.shโ€ข3.75 kB
#!/bin/bash echo "๐Ÿ”— Testing MCP Integration for Claude Code" echo "=========================================" echo "This test simulates what Claude Code can do when connected to Sentinel MCP" echo "" # Check if server is running SERVER_RUNNING=$(curl -s http://localhost:8787/health 2>/dev/null | grep -o "ok" || echo "") if [ "$SERVER_RUNNING" != "ok" ]; then echo "๐Ÿš€ Starting Sentinel MCP server..." npm start & SERVER_PID=$! sleep 3 # Check again SERVER_RUNNING=$(curl -s http://localhost:8787/health 2>/dev/null | grep -o "ok" || echo "") if [ "$SERVER_RUNNING" != "ok" ]; then echo "โŒ Failed to start MCP server" exit 1 fi echo "โœ… MCP server running on localhost:8787" else echo "โœ… MCP server already running" fi echo "" echo "๐Ÿงช Testing MCP Tools that Claude Code can use:" echo "" echo "1. ๐Ÿ“‹ List available tools:" curl -s -X POST http://localhost:8787/mcp \ -H "Content-Type: application/json" \ -d '{"method":"tools/list","id":"test1"}' | \ jq -r '.result.tools[] | " โ€ข " + .name + " - " + .description' 2>/dev/null || echo " (jq not available for pretty formatting)" echo "" echo "2. ๐Ÿ—‚๏ธ Get project structure:" curl -s -X POST http://localhost:8787/mcp \ -H "Content-Type: application/json" \ -d '{"method":"project_map","id":"test2"}' | \ jq -r '.result | "Scripts: " + (.scripts | length | tostring) + ", Scenes: " + (.scenes | length | tostring) + ", Data: " + (.data | length | tostring)' 2>/dev/null || echo " (Project mapping result available)" echo "" echo "3. ๐Ÿ“„ Read a specific file:" curl -s -X POST http://localhost:8787/mcp \ -H "Content-Type: application/json" \ -d '{"method":"read_file","params":{"path":"res://scripts/combat/fighter.gd"},"id":"test3"}' | \ jq -r '.result.content' 2>/dev/null | head -10 || echo " (File content available)" echo "" echo "4. ๐ŸŽฏ Get context around error location:" curl -s -X POST http://localhost:8787/mcp \ -H "Content-Type: application/json" \ -d '{"method":"get_context","params":{"file":"res://scripts/combat/fighter.gd","line":9,"radius":3},"id":"test4"}' | \ jq -r '.result.numbered_lines[]' 2>/dev/null || echo " (Code context available)" echo "" echo "5. ๐Ÿงช Run tests (mock):" curl -s -X POST http://localhost:8787/mcp \ -H "Content-Type: application/json" \ -d '{"method":"run_tests","id":"test5"}' | \ jq -r 'if .result.pass then "โœ… Tests passed" else "โŒ Tests failed: " + (.result.first_error.message // "Unknown error") end' 2>/dev/null || echo " (Test results available)" echo "" echo "6. ๐Ÿ“ List movesets:" curl -s -X POST http://localhost:8787/mcp \ -H "Content-Type: application/json" \ -d '{"method":"list_movesets","id":"test6"}' | \ jq -r '.result.movesets | "Available movesets: " + (. | join(", "))' 2>/dev/null || echo " (Moveset list available)" # Cleanup if we started the server if [ ! -z "$SERVER_PID" ]; then kill $SERVER_PID 2>/dev/null echo "" echo "๐Ÿ›‘ Stopped test server" fi echo "" echo "๐ŸŽ‰ MCP Integration Test Complete!" echo "" echo "๐Ÿ“Š What this means:" echo " โœ… Claude Code CAN connect to your Sentinel MCP server" echo " โœ… Claude Code CAN see your project files and structure" echo " โœ… Claude Code CAN run your Godot tests and see errors" echo " โœ… Claude Code CAN read/write files in your project" echo " โœ… Claude Code CAN apply patches and manage your code" echo "" echo "๐Ÿš€ To enable this functionality:" echo " 1. Start server: npm start" echo " 2. In Claude Code, the MCP tools will be automatically available" echo " 3. Ask Claude Code: 'What errors are in my Godot game?'" echo " 4. Claude Code will run tests, read files, and help you fix issues!"

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Snack-JPG/Godot-Sentinel-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server