mcp-github-tool-eval
Provides tools for interacting with GitHub repositories, including listing and retrieving issues and pull requests, searching code, and creating, closing, merging, and commenting on issues/PRs, with confirmation-gating for destructive actions.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-github-tool-evalWhat's the status of PR #123 in octocat/Hello-World?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
# GitHub Model Context Protocol (MCP) Server with Tool-Calling Evaluation
A production-grade FastMCP GitHub server exposing read and confirm-gated write operations, paired with a 30-case evaluation harness scoring tool selection, argument accuracy, and destructive confirmation safety.
Executive Summary & Evaluation Matrix
LLM agent tool-calling requires strict safety boundaries. This MCP server enforces server-level confirmation gating on all mutating actions: unconfirmed requests return dry-run previews rather than executing mutations on GitHub.
Benchmark Performance (30 Labeled Scenarios)
Evaluated against a 30-case benchmark testing standard tool calls, underspecified/ambiguous queries, and destructive confirm-gated actions:
Metric | Pass 1 (Zero-Shot) | Pass 3 (Optimized) |
Tool Selection Accuracy | 76.7% (23/30) | 90.0% (27/30) |
Argument Accuracy (given correct tool) | 52.6% (10/19) | 100.0% (19/19) |
Confirmation Flag Accuracy (destructive) | 50.0% (3/6) | 100.0% (7/7) |
— Standard Tool Selection Category | 100.0% (8/8) | 100.0% (8/8) |
— Error / Destructive Action Category | 90.9% (10/11) | 90.9% (10/11) |
— Ambiguous / Missing-Arg Category | 25.0% (2/8) | 75.0% (6/8) |
Related MCP server: GitHub MCP Server
Tool Architecture & Operations
flowchart TD
A[User Request] --> B[LLM Tool-Calling Engine]
B --> C{Tool Category}
C -- Read Tool --> D[Execute GitHub API Call Directly]
D --> E[Return API Payload]
C -- Write / Destructive --> F{confirm == true ?}
F -- Yes --> G[Execute State Mutation on GitHub]
G --> H[Return Success / Number / URL]
F -- No --> I[Return Dry-Run Preview of Mutation]Available Tools
Read Operations (Immediate Execution)
list_issues(owner, repo, state): List open/closed issues in a repository.get_issue(owner, repo, issue_number): Retrieve detailed metadata for a single issue.list_pull_requests(owner, repo, state): List pull requests in a repository.get_pull_request(owner, repo, pr_number): Retrieve details and mergeability for a PR.search_code(query, owner, repo): Search GitHub codebase globally or scoped to a repository.
Destructive Operations (Confirm-Gated)
create_issue(owner, repo, title, body, confirm=False): Creates an issue only when confirmed; returns preview otherwise.close_issue(owner, repo, issue_number, confirm=False): Closes an issue only when confirmed; returns preview otherwise.add_comment(owner, repo, issue_number, body, confirm=False): Comments on an issue/PR only when confirmed; returns preview otherwise.merge_pull_request(owner, repo, pr_number, confirm=False): Merges a PR only when confirmed; returns preview otherwise.
Project Structure
├── app/
│ ├── __init__.py # Public MCP server & client exports
│ ├── server.py # FastMCP server definition & tool routing
│ └── github_client.py # GitHub REST API client with dry-run previews
├── eval/
│ ├── __init__.py # Evaluation package
│ ├── tool_schemas.py # OpenAI-compatible function definitions & prompt
│ ├── test_set.json # 30 labeled evaluation test cases
│ └── run_eval.py # Benchmark harness scoring tool, args, and confirm flags
├── requirements.txt # Dependencies (mcp, requests, openai)
├── WRITEUP.md # Detailed evaluation report & iteration analysis
└── README.mdQuickstart & Usage
1. Installation
git clone https://github.com/vishalmurugan1986/github-mcp-server.git
cd github-mcp-server
pip install -r requirements.txt2. Environment Configuration
export NVIDIA_API_KEY="nvapi-your-key-here"
# Optional: real GitHub write access
export GITHUB_TOKEN="ghp_your_personal_access_token"3. Running the MCP Server
python -m app.serverConnect an MCP client (such as Claude Desktop or custom agents) over standard I/O.
4. Running the Tool-Calling Evaluation Suite
python -m eval.run_evalResults are saved to eval/results.json and printed with full metric breakdowns.
Safety Design Principles
Defense-in-Depth Confirmation: Rather than relying purely on prompt instructions, confirmation guards are hardcoded directly in
app/github_client.py. An unconfirmed request cannot cause an accidental mutation.Ambiguity Rejection: The model is instructed to refuse execution and ask clarifying questions whenever repositories, issue numbers, or parameters are unspecified, avoiding placeholder hallucinations.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables interaction with GitHub repositories through the GitHub API using fastMCP. Supports repository information retrieval and management with secure token-based authentication.
- AlicenseNot gradedqualityDmaintenanceEnables GitHub API integration via MCP, allowing search, repository details, file contents, and issue management.452ISC
- AlicenseNot gradedqualityDmaintenanceEnables management of GitHub issues, milestones, projects, and labels for a single repository via MCP tools.4521ISC
- FlicenseNot gradedqualityDmaintenanceEnables managing GitHub repositories, files, and user information through MCP, with support for creating, updating, and deleting repository contents, as well as fetching user profiles.1
Related MCP Connectors
Turn a GitHub repo or docs site into agent-ready context: pack it or search it, over MCP.
GitHub Private MCP Pack — access private repos, org data via OAuth.
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/vishalmurugan1986/mcp-github-tool-eval'
If you have feedback or need assistance with the MCP directory API, please join our Discord server