repo-interview MCP Server
Interview questions about your own repo or PR, each verified to cite real code.
repo-interview scores 63 (Good), licensed MIT and written in Shell. It installs as a local process. It does not declare tools yet. Filed under Version control, AI and memory. GitHub shows 0 stars. Package registries report about 111 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
63 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
65/100 for listing completeness. Lost points: no listed tools, short summary.
How quality is graded
Where the 63 comes from
22 + 20 + 0 + 10 + 4 + 7 = 63. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "blhasn-sehli-repo-interview": { "command": "npx", "args": [ "-y", "repo-interview@0.3.1" ] } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
repo-interview
Can you explain your own code? repo-interview reads your repository or pull request and asks you the questions an interviewer or reviewer would: what it does, why it is built this way, and how specific code works. Then it grades your answers and tells you what to study.
Every question cites a real file and symbol. A verifier checks each citation and drops any question about code that does not exist, so the model cannot quiz you on something it made up. It runs on a free local model, so your code stays on your machine.
Who it is for
- Students and job seekers preparing to explain a portfolio project, especially one built with AI help.
- Developers who want to check they really understand a codebase before they own it.
- Teams who want authors to explain their own pull requests (advisory, never blocking).
Quick start (terminal)
ollama pull qwen2.5-coder:3b
npx repo-interview interview . --provider ollama --model qwen2.5-coder:3b
You get 8 questions (3 big-picture, 3 about specific code, 2 asking you to predict what a function does). Answer each on one line; a weak answer gets one follow-up. At the end interview-report.md shows your score and links to the files to study.
Needs Node.js 22+ and Ollama. Package: repo-interview on npm.
Three kinds of questions
- Big picture: what the project does, its main parts, and why it is built this way.
- Code: how and why a specific function works: control flow, error handling, trade-offs.
- Predict: what a specific function returns, throws or does for a given input. These come from your own tests first:
t.is(getBodySize('hello'), 5)becomes "getBodySizeis called with'hello'. What will the output be?", and the answer is the test's assertion, not a model's guess. When too few tests fit, the rest become code questions. With--predict-from tests+modelthe model also writes predictions from the code, quoting the lines its answer relies on; use that only with a large model, because a small local model got most of them wrong in testing.
Choose with --kinds overview,code,predict (default all three).
Inside Claude (MCP): no Ollama needed
Let Claude (or any MCP client) run the interview with its own model, while repo-interview keeps it honest:
claude mcp add repo-interview -- npx -y repo-interview mcp
Then, in your project, ask Claude to "interview me about this repo", or use the interview prompt (pr_interview for the current branch). Claude reads the code and writes and grades the questions; repo-interview's tools list what exists (scan_repo), show the cited code (read_code), list a branch's changes (pr_changes), offer predict questions taken from your tests (test_cases) and drop any question about code that does not exist (check_questions). The tools only read files, never run them, and refuse paths outside the project.
On pull requests (GitHub Action)
Posts one comment with 3 questions about the PR's own change: what it adds, how the changed code works, and what it will do for a given input. It runs a small model with Ollama on the GitHub runner: free, no API key, and the code stays on the runner. It is advisory and never fails the PR.
name: PR questions
on: pull_request
permissions:
contents: read
pull-requests: write
jobs:
questions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 2
- uses: Blhasn-Sehli/repo-interview@main
On this repo's first run the whole step, including installing Ollama and downloading the model, took 86 seconds, of which the model took 45. Pull requests from forks get a read-only token, so their questions go to the job summary instead of a comment.
To score the author's answers, add a second workflow. When the PR's author replies with numbered answers (1., 2., 3.), it grades each one 0-3 against the cited code and posts one scores comment, edited again if they reply again. The PR's code is fetched into a separate folder and only read, never run.
name: PR answers
on:
issue_comment:
types: [created]
permissions:
contents: read
pull-requests: write
jobs:
score:
if: github.event.issue.pull_request && github.event.comment.user.login == github.event.issue.user.login
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: Blhasn-Sehli/repo-interview@main
Commands
| Command | What it does |
|---|---|
interview <path> | Questions in your terminal, each answer graded 0-3, one follow-up after a weak answer, then a report |
questions <path> | Just the questions; --kinds, --overview <n> and --predict <n> set the mix |
pr <path> --base main | 3 questions about only the code changed since main (1 about what it adds, 1 about code, 1 predict) |
scan <path> | The files and symbols questions can cite |
mcp | Run as an MCP server for Claude and other MCP clients |
Providers: --provider ollama (local, free), anthropic (ANTHROPIC_API_KEY) or openai (any OpenAI-compatible server, OPENAI_API_KEY). --record <dir> and --replay <dir> save and replay model replies, so runs can be checked offline.
How well it works (measured)
On 10 public repositories in 10 languages, with the small local model qwen2.5-coder:3b, big-picture and code questions only, an average of 3 runs has 90.7% of generated questions citing real code under the strict check (runs ranged 86.3-95.8%) and 92.8% under the fair check. The verifier removes the rest before you see them. Every number comes with its recorded model replies, so you can recheck it offline: see the test corpus.
Not measured yet: how well grading agrees with a human, how useful testers find the questions, and how often a model-written prediction's expected answer is right (predictions taken from tests use the test's own answer). All are in progress.
How it is different
Other tools also ask authors about their code or pull requests, for example comprehension-gate, PR Guard, CCG, Gater, churn interview and PathFinder. repo-interview's focus:
- Checked citations. A question reaches you only if the file and symbol it cites exist (and, for a PR, were changed by it), and the rate is measured and published.
- Local and free by default. Ollama on your machine or on the GitHub runner; no account, no API key, no code sent anywhere.
- For learning, not only gating. The terminal interview ends with a report of what to study, which suits students and job interview practice.
Status
Early: expect rough edges. Symbols come from tree-sitter for TypeScript, JavaScript and Python and from patterns for Go, Rust, Java, Kotlin, C#, C/C++, Ruby and PHP. Answers in the terminal are one line each. See SECURITY.md for how it handles untrusted code, and CONTRIBUTING.md to help.
Thanks
Prediction questions, including generating them from your existing tests, were suggested by Jason Gorman (Codemanship).
License
MIT
Frequently asked questions
What is repo-interview MCP Server?
Interview questions about your own repo or PR, each verified to cite real code.
How do I install repo-interview MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. repo-interview MCP Server runs locally from the npm package repo-interview with the command npx -y repo-interview@0.3.1.
Is repo-interview MCP Server free and open source?
Yes. repo-interview MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does repo-interview MCP Server support remote (HTTP) connections?
No remote endpoint is listed for repo-interview MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is repo-interview MCP Server's trust score calculated?
repo-interview MCP Server scores 63 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.
