devscope-mcp
Click on "Deploy 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., "@devscope-mcp Show the weekly digest for myorg/backend"
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.
devscope-mcp
An MCP server that exposes a read-only view of GitHub to Claude and other Model Context Protocol clients. Seven tools cover repository metadata, pull request summaries, issue lists, code search, contributor statistics, and a seven-day activity digest.
Features
Seven MCP tools registered over stdio, each with a full JSON input schema so the client can validate arguments before a call is made.
Read-only by construction: every GitHub call goes through a small PyGithub wrapper that exposes no write operations.
Search-query sanitisation — boolean operators and qualifier prefixes (
repo:,language:,org:,user:,path:, and others) are stripped from model-supplied search text, so a query cannot silently widen its own scope.Results are rendered as compact plain text rather than raw JSON, which keeps tool output cheap to read for the model.
Blocking PyGithub calls are dispatched to a thread executor, so the asyncio event loop running the MCP session is never stalled by network I/O.
Errors are returned as tool text, classified into invalid-request, configuration, and GitHub-API categories, instead of tearing down the session.
get_contributor_statsdistinguishes "no contributors" from "GitHub is still computing the statistics" (GitHub answers HTTP 202 while the cache warms).Optional
GITHUB_DEFAULT_ORGso tools that accept anorgargument can be called without one.
Related MCP server: mcp-github-server
Architecture
MCP client (Claude Desktop, or any stdio MCP host)
│ JSON-RPC over stdio
▼
src/server.py
├── TOOLS[] tool names, descriptions, JSON input schemas
├── _TOOL_HANDLERS{} name → handler; argument coercion and validation
├── run_in_executor blocking GitHub work moved off the event loop
├── _fmt_*() dict → human/model-readable text
└── error mapping ValueError → invalid request
EnvironmentError → configuration error
RuntimeError → GitHub API error
│
▼
src/github_client.py PyGithub wrapper. Returns plain dicts and lists only,
so no PyGithub object ever reaches the server layer.
│
▼
GitHub REST API authenticated with GITHUB_TOKENKeeping the client layer free of PyGithub types is what makes the server layer testable: the test suite substitutes plain dictionaries and never touches the network.
Quickstart
Requires Python 3.11+ and a GitHub personal access token. The token needs repo,
read:org, and read:user scopes for private repositories and organisation listings.
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e ".[dev]"
cp .env.example .env # set GITHUB_TOKEN, optionally GITHUB_DEFAULT_ORGVariable | Required | Purpose |
| yes | Personal access token; a blank value raises at the first tool call |
| no | Default organisation for tools that accept |
Register the server with Claude Desktop by adding an entry to mcpServers in
claude_desktop_config.json (~/Library/Application Support/Claude/ on macOS,
%APPDATA%\Claude\ on Windows):
{
"mcpServers": {
"devscope-mcp": {
"command": "devscope-mcp",
"env": { "GITHUB_TOKEN": "ghp_..." }
}
}
}devscope-mcp is the console script declared in pyproject.toml. If you would rather not
install the package, use "command": "python", "args": ["-m", "src.server"], and set
"cwd" to the checkout directory. Restart the client after editing the config.
Tools
Tool | Required arguments | Returns |
| — ( | Repos sorted by most recent push: name, visibility, language, stars, open issues, URL |
|
| Description, language, stars, forks, open issues, topics, default branch, timestamps |
|
| Title, state, author, base/head branches, changed files with line deltas, conversation comments, commit count |
|
| Issues only — pull requests are filtered out — with labels, assignees, comment counts |
|
| Up to 20 code results: repository, path, URL |
|
| Per contributor: total commits, lines added and deleted, active weeks, sorted by commits |
|
| Last 7 days: merged PRs, opened issues, closed issue count, top 5 contributors |
The repo argument to search_code is checked against owner/repo and then appended as
a trusted repo: qualifier — it is the only qualifier the server will add.
Example prompts once the server is connected:
"Give me the changed files and review comments for PR #47 in myorg/payments"
"List the open issues in peteroyce/devscope-mcp"
"Show me the weekly digest for myorg/backend"
Tech stack
Python 3.11+ · mcp (stdio server) · PyGithub · python-dotenv · Hatchling · pytest, pytest-asyncio, pytest-mock
Testing
pytest -vtests/test_github_client.py and tests/test_server.py mock every PyGithub call, so the
suite runs without a token or network access. asyncio_mode = "auto" is set in
pyproject.toml. GitHub Actions runs the same command on Python 3.11
(.github/workflows/ci.yml).
License
MIT — see LICENSE.
Available Tools
5 toolsget_repo_infoA
Get detailed metadata for a specific GitHub repository: description, language, stars, forks, open issues, topics, default branch, visibility, and creation / last-update timestamps.
Inputs: repo (required), owner (required).
list_issuesA
List issues for a repository. Supports filtering by state (open / closed / all). Returns issue number, title, labels, assignees, author, comment count, and a truncated body.
Inputs: repo (required), owner (required), limit, state.
list_reposA
List repositories for a GitHub organisation or the authenticated user. Returns repo names, descriptions, primary language, star counts, and open issue counts sorted by most recently pushed.
Inputs: org, limit.
search_codeA
Search code across GitHub using GitHub's code-search syntax. Optionally restrict the search to a specific repository. Returns file name, path, repository, and a link to each result.
Inputs: query (required), repo.
summarize_prA
Return a comprehensive summary of a pull request: title, description, state, author, base/head branches, list of changed files with line deltas, all conversation comments, and aggregate addition / deletion counts.
Inputs: repo (required), owner (required), pr_number (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a distinct GitHub resource (repos, PRs, issues, code search) with no overlap in purpose, ensuring clear differentiation.
All tool names follow a consistent verb_noun pattern (list_repos, get_repo_info, summarize_pr, list_issues, search_code) using underscores.
5 tools is a well-scoped set for a GitHub-focused MCP server, covering key operations without excess.
Covers reading and searching but lacks create/update/delete operations for repos, issues, and PRs, which are common CRUD gaps.
Maintenance
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Shared memory MCP server for Claude Code, Codex, Gemini CLI and Cursor. Cited, editable.
Create, deploy, and operate MCP servers directly from your GitHub repositories.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives Claude Desktop complete intelligence about any public GitHub repository. Research libraries, compare packages, audit dependencies, and explore codebases through natural conversation.1MIT
- AlicenseBqualityDmaintenanceAn MCP server that enables managing GitHub repositories, pull requests, issues, and more through natural language in Cursor or Claude Desktop.3910 npm4MIT
- FlicenseNot gradedqualityDmaintenanceA working MCP server that connects to the real GitHub API, enabling users to manage repositories, issues, pull requests, and more through natural language in Claude Desktop.-
- AlicenseNot gradedqualityCmaintenanceA self-hosted MCP server that gives Claude access to your GitHub account — read files, browse repos, commit changes, and manage issues and pull requests, all from a conversation.330 npmISC