mcp-server: Instructions file for Codex

AGENTS.md

mcp-server AGENTS.md is an instructions file for Codex, OpenCode from scanmalware/mcp-server. It costs 1,708 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for building a Python server that lets AI clients use the ScanMalware.com security-scanning API. They document the API, authentication, scan workflow, and tool design.

In plain words
What is it for?
Use them when adding or reviewing ScanMalware API features, authentication, scan operations, downloads, or Model Context Protocol tools.
Why use it?
They give contributors a shared reference for using the API correctly, including endpoints that return files rather than JSON and endpoints that need login details.

Instructions file for CodexOpenCode

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

This is scanmalware/mcp-server's own configuration. It tells Codex and OpenCode how to work on mcp-server 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 mcp-server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to scanmalware/mcp-server. 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/scanmalware/mcp-server/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/scanmalware/mcp-server

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 mcp-server AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/scanmalware/mcp-server/agents-md/github.svg)](https://agentmods.dev/instructions/scanmalware/mcp-server/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/scanmalware/mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/scanmalware/mcp-server/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 mcp-server AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/scanmalware/mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/scanmalware/mcp-server/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,708 This file is loaded in full into every session.
When invoked 1,708 The same file — it is already loaded in full.
Security scan A 1 finding. 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.01708 $0.01708
Opus 5.5 $0.00683 $0.00683
Sonnet 5.5 $0.00342 $0.00342
Haiku 4.5 $0.00171 $0.00171

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

Security

Grade A, and why

mcp-server AGENTS.md scanned grade A with 1 finding 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 19d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Other “download” style endpoints may be binary (verify with `curl -D - -o /dev/null ...`).
AGENTS.md · 127 lines

How it starts

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

AGENTS.md

This repo contains a Python Model Context Protocol (MCP) server that exposes the ScanMalware.com API as tools/resources for an MCP client (128 tools on mcp 2.3.0, served at https://mcp.scanmalware.com/mcp; operations in docs/OPERATIONS.md). The sections below are the original design notes; where they differ from the code, the code and the runbook are current.

API source of truth

  • OpenAPI spec: https://scanmalware.com/openapi.json
  • Base URL (OpenAPI omits servers): https://scanmalware.com
  • API prefix: /api/v1
  • OpenAPI currently lists ~146 paths / ~147 operations; many response schemas are {} (treat as untyped JSON and verify with live calls).

Practical note: some endpoints return binary despite the OpenAPI describing JSON:

  • GET /api/v1/screenshot/{scan_id} returns PNG bytes.
  • GET /api/v1/tls/{scan_id}/certificate/download returns PEM (application/x-pem-file).
  • Other “download” style endpoints may be binary (verify with curl -D - -o /dev/null ...).

Authentication

Most endpoints are public (no auth in OpenAPI). Auth-gated endpoints in the spec:

  • Bearer (HTTPBearer)
    • GET /api/v1/auth/profile
    • GET /api/v1/auth/admin
    • GET /api/v1/auth/analyst
  • Optional bearer (OptionalHTTPBearer)
    • GET /api/v1/auth/test-optional
  • HTTP Basic (HTTPBasic) (Module Monitoring)
    • GET /api/v1/modules/health
    • GET /api/v1/modules/stats
    • GET /api/v1/modules/failures
    • GET /api/v1/modules/stuck
    • GET /api/v1/modules/chains
    • GET /api/v1/modules/scan/{scan_id}
    • GET /api/v1/modules/percentiles/{module_name}
    • POST /api/v1/modules/admin/change-password

The server deliberately exposes none of these auth-gated or /modules/* endpoints, so it needs no Basic credentials.

Env vars (never hardcode secrets; full list in docs/OPERATIONS.md):

  • SCANMALWARE_BASE_URL (default: https://scanmalware.com)
  • SCANMALWARE_BEARER_TOKEN (optional; needed for private scans)

Read the full file on GitHub · 127 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. 19d ago Changed · +2 lines · +158 tokens per session a49b293ab65e
  2. 1mo ago First seen · 125 lines · 1,550 tokens per session scan A b28e9ddbe126

Subscribe to this mod's changes

mcp-server AGENTS.md is an instructions file published in the GitHub repository scanmalware/mcp-server (0 stars, last pushed 4d ago), licensed Apache-2.0. It adds 1,708 tokens to every session, about $0.0068 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). 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