permissioned-github-mcp
Provides permissioned tools for triaging GitHub issues, including listing and retrieving issues, adding labels, closing issues, and commenting. Access is controlled by per-repo scopes, with dry-run write behavior and audit logging.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
permissioned-github-mcp
An MCP server that lets an AI agent triage GitHub issues, where every tool is a permission.
Giving an agent a GitHub token usually means giving it everything that token can do. This server puts a policy between the agent and the API: each tool needs a scope, each repo grants a scope, and anything not granted is refused before a request is ever sent.
What it does
Tool | Needs | What it does |
| read | Lists issues, pull requests filtered out |
| read | One issue, body cut to 1,500 characters |
| triage | Adds labels |
| triage | Closes an issue |
| write | Comments as the token owner |
Scopes stack: triage includes read, write includes both.
Related MCP server: AutomateHub
Design choices
Every tool is a permission. The policy file grants a scope per repo, with a read-only default. A denied call returns a plain reason the agent can show the user, and never reaches GitHub.
Writes start as dry runs. With dry_run_writes: true (the default), write tools return what they would have done. You turn real writes on only once you trust the setup.
Whose identity? The agent acts as whoever owns the token. So use a fine-grained token limited to the repos in your policy. The policy then narrows it further, per tool. For a server used by many people, the next step would be a GitHub App with per-user tokens.
Small context. Issues come back as compact summaries (number, title, state, labels, author, comment count). Long bodies are truncated. Agents read less and cost less.
Clear failures. Expired tokens, missing access and rate limits each return a specific message (including when the rate limit resets), not a raw error.
Audit log. Every call is written to audit.jsonl: tool, repo, arguments, and whether it was allowed, denied, dry run or errored. The token is never logged.
Setup
pip install -e ".[dev]"
cp policy.example.json policy.json # then edit the repo namesCreate a fine-grained token at GitHub, Settings, Developer settings, limited to your test repo, with Issues read and write.
Add it to Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"permissioned-github": {
"command": "permissioned-github-mcp",
"env": {
"GITHUB_TOKEN": "your-token",
"POLICY_FILE": "/full/path/to/policy.json",
"AUDIT_LOG": "/full/path/to/audit.jsonl"
}
}
}
}Then try: "List the open issues in my-user/my-repo and label the bugs." With the example policy, labels come back as a dry run.
Policy file
{
"default_scope": "read",
"dry_run_writes": true,
"repos": {
"your-username/your-sandbox-repo": { "scope": "triage" }
}
}Set default_scope to null to block every repo you haven't listed.
Tests
pytestThe tests mock GitHub and check the parts that matter: denied calls never send a request, dry runs never write, errors are readable, and the token never reaches the log.
What's next
GitHub App auth, so each user acts as themselves
A "propose, then approve" mode where writes wait for a human click
Per-tool rate limits, so one runaway agent can't burn the whole quota
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Issue tracker for coding agents: a real backlog, plus a risk-ranked review of every change.
Operate GitHub from your AI assistant: repos, PRs, issues, Actions. Previews and read-only mode.
Software factory for AI agents: issue and PR reviews, auto-fixes, stacked PRs and a merge queue.
Task management for people and AI agents, with scoped OAuth access to issues, projects, and docs.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to securely perform privileged actions like creating GitHub issues by minting short-lived, single-purpose tokens on demand, with policy enforcement and audit logging.MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to automate GitHub repository management, issue tracking, and commits using natural language.-
- AlicenseAqualityBmaintenanceEnables agents to autonomously resolve GitHub issues by editing code, running tests, and opening pull requests, while enforcing guardrails that protect critical files and systems.7Apache 2.0
- AlicenseBqualityCmaintenanceEnables AI agents to safely manage GitHub issues, inspect discussions, create pull requests, and audit GitHub Actions CI status through strict branch-protection guards.61MIT