fix(mcp): add GitHub MCP server config

This commit is contained in:
Siraj637909 2026-08-15 12:57:24 +05:30
parent 061dcb20c1
commit 7980ef731a
2 changed files with 22 additions and 0 deletions

View file

@ -1,4 +1,11 @@
{
"github": {
"http_url": "https://api.githubcopilot.com/mcp/",
"description": "GitHub MCP server for repository operations, issues, pull requests, and workflow management.",
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_PERSONAL_ACCESS_TOKEN}"
}
},
"zapier": {
"sse_url": "https://mcp.zapier.com/api/mcp"
},

View file

@ -103,6 +103,21 @@ class TestMCPRegistryFile:
missing = expected - names
assert not missing, f"Missing well-known servers: {missing}"
def test_root_mcp_servers_file_contains_github(self):
repo_root = os.path.abspath(
os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "..")
)
config_path = os.path.join(repo_root, "mcp_servers.json")
assert os.path.exists(config_path), f"Config not found at {config_path}"
with open(config_path, "r") as f:
data = json.load(f)
assert "github" in data, "Root MCP config should include a GitHub server entry"
github_config = data["github"]
assert github_config.get("http_url") or github_config.get("sse_url")
assert "github" in (github_config.get("description") or "").lower()
def test_env_vars_structure(self, registry_path):
with open(registry_path, "r") as f:
data = json.load(f)