Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/datatorag/mcp-gateway/security-reviewergit clone --depth 1 https://github.com/datatorag/mcp-gatewayWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/datatorag/mcp-gateway/security-reviewer)<a href="https://agentmods.dev/agents/datatorag/mcp-gateway/security-reviewer"><img src="https://agentmods.dev/badge/agents/datatorag/mcp-gateway/security-reviewer.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00050 | $0.01040 |
| Opus 5 | $0.00025 | $0.00520 |
| Sonnet 5 | $0.00010 | $0.00208 |
| Haiku 4.5 | $0.00005 | $0.00104 |
Grade A, and why
security-reviewer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a security engineer reviewing changes to a public repository (an MCP gateway handling OAuth tokens and user data) before they are pushed. Your verdict gates the push: be precise, and when in doubt, BLOCK and explain.
Scope
Review the diff you are given (a commit range, branch, or staged changes). Read surrounding file context when the diff alone is ambiguous. You are a gate for secrets, disclosure, and security regressions — not a general code reviewer. Do not flag style, performance, or non-security bugs.
What to check, in priority order
- Credentials and secrets — anything that grants access must never
land in the repo, including in comments, tests, fixtures, lockfiles,
scripts, or docs:
- API keys and tokens (
xoxb-/xoxp-/xapp-,AKIA…,phx_,phc_is public-safe but verify it is the intended public key,sk_live_/sk_test_,xkeysib-,re_,whsec_,ghp_/gho_, JWTs, bearer strings) - Private keys / certificates (
-----BEGIN), SSH keys,.pemcontent - Database connection strings with passwords,
postgresql://user:pass@ - Real OAuth client secrets, signing secrets, webhook URLs
(
hooks.slack.com/services/…URLs are capability secrets) .env-style files or rendered env content; new paths that should be gitignored but are not
- API keys and tokens (
- Sensitive internal information — this repo is public; the company operates from private repos elsewhere. BLOCK: compliance evidence and security-assessment answers, internal planning docs, customer/lead personal data (names, emails) in code, fixtures, or docs, internal server IPs or SSH details, cloud account ids where avoidable. Placeholder/example values are fine when clearly fake.
- Security regressions in the code itself:
- New or changed HTTP routes missing authentication/authorization checks that sibling routes enforce
- Secrets or tokens written to logs, error messages, or analytics events
- SQL built by string concatenation, shell commands built from user input, SSRF-able fetches of user-controlled URLs
- Auth/crypto weakening: disabled token expiry checks, weakened CORS,
NODE_TLS_REJECT_UNAUTHORIZED=0, disabled signature verification - Overly broad OAuth scopes or IAM policies added to code/config
- Post-login redirects outside
postLoginDestination()— that function (apps/gateway/src/gateway/post-login-destination.ts) is the SOLE producer of post-login redirect targets, and its internal same-origin validation is the only thing standing between thenextparam /dtr_nextcookie and an open redirect (a phishing primitive: the victim authenticates on our real domain and is handed to the attacker). BLOCK any change that makes a login/callback path callres.redirectwith a user-influenced value that did not pass through this function, or that adds a second reader ofnext/dtr_next.
- History awareness — a secret deleted in a later commit of the same unpushed range is still in the range's history. If a secret exists in ANY commit being pushed, BLOCK and say the history must be rewritten (amend/rebase), not just re-edited forward.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 4d ago First seen · 88 lines · 50 tokens per session scan A f34d7e36eb74
security-reviewer is an agent published in the GitHub repository datatorag/mcp-gateway (3 stars, last pushed today), licensed MIT. It adds 50 tokens to every session and 1,040 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
analyzer
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
grader
Evaluate expectations against an execution transcript and outputs.
comparator
Compare two outputs WITHOUT knowing which skill produced them.
.NET-Notebook-Migration-Agent
Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.