We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/neupaneprashant/yahoo-finance-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
setup_github.sh•2.67 KiB
#!/bin/bash
# Script to set up GitHub remote and push branches
# Username: neupaneprashant
# Repository: yahoo-finance-mcp
REPO_NAME="yahoo-finance-mcp"
USERNAME="neupaneprashant"
REMOTE_URL="https://github.com/${USERNAME}/${REPO_NAME}.git"
echo "=========================================="
echo "GitHub Setup Script"
echo "=========================================="
echo "Username: ${USERNAME}"
echo "Repository: ${REPO_NAME}"
echo "Remote URL: ${REMOTE_URL}"
echo ""
# Check if we're in a git repository
if [ ! -d .git ]; then
echo "❌ Error: Not a git repository!"
echo "Run 'git init' first."
exit 1
fi
# Set up remote
echo "Setting up GitHub remote..."
if git remote get-url origin &>/dev/null; then
echo "Remote 'origin' already exists, updating URL..."
git remote set-url origin ${REMOTE_URL}
else
echo "Adding remote 'origin'..."
git remote add origin ${REMOTE_URL}
fi
# Verify remote
echo ""
echo "Remote configuration:"
git remote -v
echo ""
# Check if repository exists on GitHub
echo "Checking if repository exists on GitHub..."
if git ls-remote --exit-code --heads origin &>/dev/null 2>&1; then
echo "✅ Repository found on GitHub"
else
echo "⚠️ Repository not found on GitHub"
echo ""
echo "Please create the repository first:"
echo "1. Go to: https://github.com/new"
echo "2. Repository name: ${REPO_NAME}"
echo "3. Description: 'MCP server for Yahoo Finance integration with Claude Desktop'"
echo "4. Choose Public or Private"
echo "5. DO NOT initialize with README (we already have one)"
echo "6. Click 'Create repository'"
echo ""
read -p "Press Enter after you've created the repository, or Ctrl+C to cancel..."
fi
# Push main branch
echo ""
echo "Pushing main branch..."
if git push -u origin main; then
echo "✅ Main branch pushed successfully"
else
echo "❌ Failed to push main branch"
echo "Make sure the repository exists on GitHub and you have authentication set up."
exit 1
fi
# Push development branch
echo ""
echo "Pushing development branch..."
if git push -u origin development; then
echo "✅ Development branch pushed successfully"
else
echo "⚠️ Failed to push development branch (this is okay if it doesn't exist yet)"
fi
echo ""
echo "=========================================="
echo "✅ Setup Complete!"
echo "=========================================="
echo ""
echo "Repository URL: https://github.com/${USERNAME}/${REPO_NAME}"
echo "Main branch: https://github.com/${USERNAME}/${REPO_NAME}/tree/main"
echo "Development branch: https://github.com/${USERNAME}/${REPO_NAME}/tree/development"
echo ""
echo "View your repository at: https://github.com/${USERNAME}/${REPO_NAME}"