Skip to content

Instantly share code, notes, and snippets.

@elsayed85
Last active May 16, 2025 23:24
Show Gist options
  • Save elsayed85/5271c8cfc8e1f6d087a395d1c3b6ef8d to your computer and use it in GitHub Desktop.
Save elsayed85/5271c8cfc8e1f6d087a395d1c3b6ef8d to your computer and use it in GitHub Desktop.
[
{
"mcp": {
"servers": {
"Context7": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@upstash/context7-mcp@latest"
]
},
"sequential-thinking": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sequential-thinking"
]
},
"mcp-project-test": {
"command": "/Users/elsayed/project/app/run.sh",
"args": [],
"env": {
"AUTH_TOKEN": "jwt_token_here"
}
}
}
},
}
]
#!/bin/bash
# Ensure we're in the right directory
cd "$(dirname "$0")"
# Check if auth token is provided
if [ -z "$AUTH_TOKEN" ] && [ -z "$1" ]; then
echo "Error: Authentication token is required."
echo "Please provide it as an environment variable AUTH_TOKEN or as the first argument."
echo "Usage: ./run.sh [auth_token] [base_url]"
exit 1
fi
# Use either environment variable or first argument as auth token
AUTH_TOKEN=${AUTH_TOKEN:-$1}
shift 2>/dev/null || true # Shift if there are arguments, ignore error if none
# Install the package in development mode if not already installed
if ! pip show mcp-server-project > /dev/null 2>&1; then
echo "Installing mcp-server-project in development mode..."
pip install -e .
fi
# Run the MCP server
echo "Starting MCP project Server..."
mcp-server-project --auth-token "$AUTH_TOKEN" "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment