MCPAudit: Instructions file for Codex

AGENTS.md

MCPAudit AGENTS.md is an instructions file for Codex, OpenCode from saagpatel/MCPAudit. It costs 429 tokens per session, scanned A, original, MIT.

A project instruction file for MCPAudit, a local tool that checks Model Context Protocol configurations and reports what connected servers may access.

In plain words
What is it for?
Use it when developing or operating MCPAudit, running tests and linting, performing configuration audits, or producing scan reports.
Why use it?
It defines the project's safe, read-only operating rules, current state, technology stack, and recommended checks.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is saagpatel/MCPAudit's own configuration. It tells Codex and OpenCode how to work on MCPAudit itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything MCPAudit configures →

Reuse

Borrowing it

Nothing to install: this file belongs to saagpatel/MCPAudit. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/saagpatel/MCPAudit/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/saagpatel/MCPAudit

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for MCPAudit AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/saagpatel/mcpaudit/agents-md/github.svg)](https://agentmods.dev/instructions/saagpatel/mcpaudit/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/saagpatel/mcpaudit/agents-md"><img src="https://agentmods.dev/badge/instructions/saagpatel/mcpaudit/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for MCPAudit AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/saagpatel/mcpaudit/agents-md"><img src="https://agentmods.dev/badge/instructions/saagpatel/mcpaudit/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 429 This file is loaded in full into every session.
When invoked 429 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00429 $0.00429
Opus 5.5 $0.00172 $0.00172
Sonnet 5.5 $0.00086 $0.00086
Haiku 4.5 $0.00043 $0.00043

Measured 14d ago against content hash 172ced2dcc39, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

MCPAudit AGENTS.md 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 14d 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.

AGENTS.md · 43 lines

How it starts

The opening of the file, as written. The whole thing — 43 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

Purpose

MCPAudit reviews MCP client and server configuration, reports declared access and observed metadata, and highlights drift. Static, read-only review is the default.

Layout

  • src/mcp_audit/ contains the CLI, discovery, analysis, and report code.
  • tests/ contains unit, integration, and fixture-backed regression tests.
  • docs/ contains user guides, contracts, and maintainer procedures.
  • examples/ contains synthetic configurations and safe walkthroughs.

Setup

Use Python 3.14.8 and uv.

uv sync --locked --dev
uv run mcp-audit --help
uv run mcp-audit check --config examples/sandbox/fixtures/synthetic-mcp-config.json \
  --config-only --skip-connect --override-config /dev/null

The explicit fixture, --config-only, and empty override keep this smoke test on synthetic input without discovering workstation configs or connecting.

Checks

Run make check for lint, formatting, type checking, and the default test suite. Use focused pytest commands for targeted changes. Use the synthetic sandbox fixture for CLI smoke checks; connected tests and platform-specific lanes have additional prerequisites documented in CONTRIBUTING.md.

Boundaries

  • Prefer explicit synthetic configs with --config-only --skip-connect for checks that do not need workstation discovery.
  • Do not read .env files, keychains, OAuth stores, browser profiles, raw logs, private transcripts, cookies, or credential-bearing configs.
  • Reports may contain configuration shape, tool names, and evidence text. Report environment variable key names only, never values, and review output before sharing it.
  • Remote package verification, downloads, LLM analysis, and connected scans are opt-in higher-reach operations.
  • Preserve report schema compatibility and surface incomplete or skipped checks clearly.

Delivery

Use small Conventional Commits. Before proposing a release, follow maintainers/RELEASE-CHECKLIST.md; do not claim hosted CI, publication, or runtime behavior from local checks alone.

Read the full file on GitHub · 43 lines

Changes

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.

  1. 14d ago Changed · -67 lines · -776 tokens per session 172ced2dcc39
  2. 21d ago Changed · +1 tokens per session 9d2324ecce46
  3. 23d ago Changed · +8 lines · +402 tokens per session 688823961af8
  4. 1mo ago First seen · 102 lines · 802 tokens per session scan A d0d7a7994720

Subscribe to this mod's changes

MCPAudit AGENTS.md is an instructions file published in the GitHub repository saagpatel/MCPAudit (4 stars, last pushed 2d ago), licensed MIT. It adds 429 tokens to every session, about $0.0017 per session on Opus 5.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.

Related

Other instructions, from other repositories