test-get-repo-info.sh•637 B
#!/bin/bash
# Test script for get_repo_info tool
# Usage: ./test-get-repo-info.sh [repoOwner] [repoName]
REPO_OWNER=${1:-"sadaf987"}
REPO_NAME=${2:-"test_MCP"}
echo "Testing get_repo_info tool..."
echo "Repository: $REPO_OWNER/$REPO_NAME"
echo ""
curl -X POST http://localhost:3001/mcp \
-H "Content-Type: application/json" \
-d "{
\"jsonrpc\": \"2.0\",
\"method\": \"tools/call\",
\"params\": {
\"name\": \"get_repo_info\",
\"arguments\": {
\"repoOwner\": \"$REPO_OWNER\",
\"repoName\": \"$REPO_NAME\"
}
},
\"id\": 2
}" | python3 -m json.tool 2>/dev/null || cat
echo ""