"""Configuration module for git-workflow-mcp server."""
import os
from pathlib import Path
# Get repository root from environment variable or use current directory
REPO_ROOT = Path(os.environ.get("GIT_MCP_REPO", ".")).resolve()
# Get GitHub token from environment variable (optional)
GITHUB_TOKEN = os.environ.get("GITHUB_TOKEN")
# Validate that REPO_ROOT is a Git repository
if not (REPO_ROOT / ".git").exists():
# Don't raise here - let individual tools handle the error gracefully
pass
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/archis17/MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server