Last active
May 16, 2025 23:24
-
-
Save elsayed85/5271c8cfc8e1f6d087a395d1c3b6ef8d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"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" | |
} | |
} | |
} | |
}, | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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