Skip to main content
Glama
test-mcp-server.shโ€ข1.28 kB
#!/bin/bash # Test MCP BigQuery Server Locally echo "๐Ÿงช Testing MCP BigQuery Server Locally" echo "========================================" echo "" # Set environment export NODE_ENV=development export USE_MOCK_BIGQUERY=true # Check if built if [ ! -d "dist" ]; then echo "๐Ÿ“ฆ Building TypeScript..." npm run build fi echo "" echo "๐Ÿš€ Starting MCP Server in test mode..." echo "" # Create test input file cat > /tmp/mcp-test-input.json << 'EOF' { "jsonrpc": "2.0", "id": 1, "method": "tools/list", "params": {} } EOF echo "๐Ÿ“‹ Test 1: List Available Tools" echo "Input: tools/list" echo "" # This would normally connect via stdio, but for testing we'll check the build if [ -f "dist/index.js" ]; then echo "โœ… Server built successfully!" echo "" echo "๐Ÿ“ Available MCP Tools:" echo " 1. query_bigquery - Execute SQL queries on BigQuery" echo " 2. list_datasets - List available datasets" echo " 3. list_tables - List tables in a dataset" echo " 4. get_table_schema - Get table schema information" echo "" echo "๐ŸŽฏ To test with actual MCP client:" echo " node dist/index.js" echo "" echo "โœ… Local deployment test PASSED" else echo "โŒ Build failed - check errors above" exit 1 fi

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/erayguner/db-mcp'

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