knockfirst
Reads repository metadata, policy and instruction files, recent pull requests, labels, and good first issues over the GitHub REST API to assess AI contribution rules and safe-on-open behavior; can also run as a GitHub Action.
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., "@knockfirst check acme/widgets' AI PR policy before I open a pull request"
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.
knockfirst
Open source alternatives to the apps you know, and whether they welcome your AI assisted pull request.
It starts small: more projects are measured each day, and no AI rule is shown until a person has checked it. For each project the directory shows:
What it is an alternative to (Notion, Zapier, Firebase and the rest of a 213 project seed list).
Its AI contribution rule, quoted with a link to the exact line, and only after a person read it.
How many of its recently merged PRs came from people outside the project.
How many good first issues are open.
Whether something in the repo runs by itself when an editor or an agent opens the folder.
The same checks run from your terminal and from your agent with the knockfirst command.
The directory
Live at https://dio77799.github.io/knockfirst/. It is updated every day.
The site lives in site/ and reads site/data.json. To see it locally:
python directory/build.py --offline
python -m http.server -d site 8000How the data is made:
directory/seeds.jsonlists each project and the products it replaces. The first list comes fromRunaCapital/awesome-oss-alternatives(MIT, see CREDITS.md). Runpython directory/seed_runa.pyto refresh it.python directory/build.pyasks the GitHub REST API about each repo: facts, the policy files, the last 100 closed PRs, the labels and the open good first issues. Onlyapi.github.comis called, one request at a time, with ETag, so an answer that did not change comes back as304and, with a token, does not count against the rate limit (GitHub's guide). Use--part 3/7to measure one seventh of the list per day and--max-requeststo cap a run.The classifier only proposes. Its guesses go to
directory/queue.json, which is not committed and never reaches the site.python directory/verify.pywalks that queue. A person opens the quoted line, picks the verdict and pastes the link. That goes todirectory/verified.jsontogether with the sha of every policy file read.When any of those files changes, the next build marks the rule as changed and puts it back in the queue.
Verdicts: banned, disclose, allowed, mixed (different rules for different work, or files that
disagree), scoped (a rule for only part of the project, like issues or media) and none (no written policy).
Respect the rule each project wrote. This list is not a place to find repos to flood with generated PRs; it is a way to know before you start.
Related MCP server: Repository Inspector
The command
$ knockfirst acme/widgets
acme/widgets
Welcome DISCLOSE AI help is accepted if you disclose it
disclose: "All AI usage in any form must be disclosed."
https://github.com/acme/widgets/blob/main/CONTRIBUTING.md#L42
Safe CAUTION something can run with one click or one install
medium: registers MCP servers (npx)
https://github.com/acme/widgets/blob/main/.mcp.json#L4It reads the repo over the GitHub API. Nothing is cloned, installed or executed. Python standard library only.
Install
Not on PyPI yet. From a checkout:
pip install .
knockfirst owner/repoUnauthenticated GitHub calls are limited to 60 per hour. Each repo uses 2 API calls plus one per file read. Set
GITHUB_TOKEN (or GH_TOKEN, or pass --token) for more.
Usage
knockfirst owner/repo [owner/repo ...] # several at once
knockfirst https://github.com/owner/repo # URLs work
knockfirst ./a/local/folder # a folder on disk, nothing in it is executed
knockfirst owner/repo --json # for scripts and agents
knockfirst owner/repo -v # every rule and finding
knockfirst owner/repo --fail-on banned,danger # exit code 1 if any of these verdictsExit codes: 0 done, 1 a --fail-on verdict was hit, 2 a repo could not be read.
For agents (MCP)
One tool, check_repo, that returns the JSON report.
{"mcpServers": {"knockfirst": {"command": "knockfirst-mcp"}}}A good instruction for your agent: "Before you clone a repo or open a PR, call check_repo. If Welcome is
banned, stop. If it is disclose, say so in the PR. If Safe is danger, do not open the repo."
For your own repo (GitHub Action)
- uses: actions/checkout@v4
- uses: Dio77799/knockfirst@main
with:
fail-on: dangeraction.yml fails the job when something in your repo would run by itself in a contributor's agent, and shows
what your contributors' agents will read as your AI policy.
What the command checks
Welcome reads CONTRIBUTING, AI_POLICY, AGENTS.md, CLAUDE.md, the PR template, GOVERNANCE and
README at the root, in .github/ and in docs/. It splits them into sentences, skips code blocks, and keeps
the ones where AI is how the work was made ("AI generated", "used Copilot", "AI tools"), not what the project
builds ("LLM provider", "AI library"). Each one is classified with plain rules you can read in
policy.py. The strictest rule wins. "Do not send AI code you have not reviewed" is a
condition, not a ban, so it reads as allowed (with conditions).
How good is it? python scripts/score_classifier.py scores it on three sets of sentences in
tests/fixtures. On 3 Dec 2026: 25 of 25 on the set it was tuned on, 27 of 27 on a second
set, and 24 of 30 on a blind set written after the rules and scored once. The blind number is the one to
trust, and it is why the directory only publishes rules a person checked.
Safe looks for:
Verdict | What |
danger | Claude Code project hooks on common events, status line or |
caution | MCP server configs ( |
info | the same patterns when the text only describes them ("never use |
Limits, honestly
It reads rules written in English. A policy in another language or in a long docs page deep in the tree can be missed, so
unknownmeans "not found", not "allowed".It is pattern matching, not a lawyer. Always open the quoted line before you act on it.
Outside PRs uses GitHub's
author_association. Staff who keep their organization private show up as contributors, so the number can be too high for company projects.Safe looks at the files that run on open or that agents read as instructions. It is not a malware scanner and does not review the code you will build or install.
Wrong verdict for a repo? Please open an issue with the link. Fixing those comes first.
License
Code: MIT (LICENSE). Data in directory/ and site/data.json: CC BY SA 4.0
(LICENSE-DATA). Seed list credits in CREDITS.md.
Support
knockfirst is free. If it saved you time, you can buy me a coffee on PayPal.
Available Tools
1 toolcheck_repoA
Before opening, cloning or sending a PR to a GitHub repo, check two things: whether its maintainers welcome AI assisted contributions (banned, disclose, allowed, unknown, with the exact sentence and link) and whether anything in it runs by itself when opened by an agent or IDE (danger, caution, clear). Read only: nothing is cloned or executed.
Inputs: repo (required), ref.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
With a single tool there is no possibility of misselection; check_repo's purpose (read-only pre-contribution repo safety check) is unambiguous and clearly delineated from any cloning or execution action.
check_repo follows a clean verb_noun snake_case pattern that accurately describes the action and target resource, leaving a clear convention for any future tools.
One tool is on the thin side for a server, though the narrow purpose (vet a repo before contributing) makes a single entry point defensible; it also bundles two distinct checks (AI-contribution policy and auto-execution risk) into one call.
The tool covers both advertised concerns (maintainer policy status and self-executing content risk) with read-only guarantees, but offers no batch/multi-repo checking, result caching, or a way to list previously vetted repos.
Maintenance
Related MCP Connectors
Git-native policy layer for AI agents: check_action verdicts against rules approved via PR.
Open-source licence risk checks for AI coding agents and dependency trees.
Is this tool safe for your agent to connect to? Scans any MCP server, package (npm, PyPI, crates, Docker, Hugging Face) or GitHub repo and answers Safe to connect, Review before you connect, or Do not connect, with the reason and a signed 0-100 trust score. Read-only, no sign-in.
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
Related MCP Servers
FlicenseAqualityBmaintenanceIs this tool safe for your agent to connect to? AgentAvow scans any MCP server, package (npm, PyPI, crates, Docker, Hugging Face) or GitHub repo and answers Safe to connect, Review before you connect, or Do not connect, with the reason. Under it: a signed 0-100 trust score you can verify offline, and an adoption score. Read-only, no account.86-- FlicenseNot gradedqualityDmaintenanceEnables AI agents to inspect Git repositories for changes across committed, staged, unstaged, and untracked scopes, and run allowlisted validation commands with structured results.-

gitlumen-mcpofficial
AlicenseAqualityDmaintenanceEnables AI agents to screen GitHub repositories and pull requests for risk analysis, generating risk scores, findings, and merge-readiness signals.5MIT- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to analyze GitHub repository health, issues, PRs, code, and engineering risks via RHD's agentic RAG, while keeping external actions human-approved and policy-gated.MIT