#!/bin/bash
# This script runs the GitHub GraphQL API test with a sample token
# Check if token is provided as argument
if [ -z "$1" ]; then
echo "Please provide a GitHub token as an argument:"
echo "./test/run-github-test.sh your_github_token"
exit 1
fi
# Set the GitHub token environment variable
export GITHUB_TOKEN=$1
# Compile TypeScript
echo "Building the TypeScript code..."
npm run build
# Run the GitHub test
echo "Running GitHub GraphQL API test..."
npm run test:github
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/ctkadvisors/graphql-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server