mcp-arr AGENTS.md

mcp-arr AGENTS.md is an instructions file for Codex, OpenCode from aplaceforallmystuff/mcp-arr. It costs 811 tokens per session, scanned A, original, MIT.

A development guide for an MCP server that connects AI clients to Sonarr, Radarr, Lidarr, and Prowlarr, which manage television, movies, music, and search sources.

In plain words
What is it for?
Building and running integrations that manage television shows, movies, music, and media indexers through those services.
Why use it?
It documents the code structure, build commands, and required service URLs and API keys needed to work on the server.

Instructions file for CodexOpenCode

Install

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.

agentmods
npx agentmods add instructions/aplaceforallmystuff/mcp-arr/agents-md
Clone the repo
git clone --depth 1 https://github.com/aplaceforallmystuff/mcp-arr

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-arr AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/aplaceforallmystuff/mcp-arr/agents-md.svg)](https://agentmods.dev/instructions/aplaceforallmystuff/mcp-arr/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/aplaceforallmystuff/mcp-arr/agents-md"><img src="https://agentmods.dev/badge/instructions/aplaceforallmystuff/mcp-arr/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 811 This file is loaded in full into every session.
When invoked 811 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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.00811 $0.00811
Opus 5 $0.00405 $0.00405
Sonnet 5 $0.00162 $0.00162
Haiku 4.5 $0.00081 $0.00081

Measured 6d ago against content hash 50b66f8087c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

mcp-arr 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 6d 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 · 117 lines

How it starts

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

AGENTS.md - mcp-arr

MCP server for the *arr media management suite (Sonarr, Radarr, Lidarr, Prowlarr).

Tech Stack

  • Language: TypeScript
  • Runtime: Node.js (ES modules)
  • Protocol: Model Context Protocol (MCP)
  • Build: TypeScript compiler (tsc)

Architecture

src/
├── index.ts          # Server entry point, tool registration
├── tools/            # Tool implementations by service
│   ├── sonarr.ts     # TV show management
│   ├── radarr.ts     # Movie management
│   ├── lidarr.ts     # Music management
│   └── prowlarr.ts   # Indexer management
└── types.ts          # Shared TypeScript types

Development Commands

# Build
npm run build

# Watch mode
npm run watch

# Test locally (requires env vars)
node dist/index.js

Environment Variables

Variable Required Description
SONARR_URL For Sonarr Base URL (e.g., http://localhost:8989)
SONARR_API_KEY For Sonarr API key from Sonarr settings
RADARR_URL For Radarr Base URL
RADARR_API_KEY For Radarr API key
LIDARR_URL For Lidarr Base URL
LIDARR_API_KEY For Lidarr API key
PROWLARR_URL For Prowlarr Base URL
PROWLARR_API_KEY For Prowlarr API key

Constraints

rules:
  - id: no-hardcoded-urls
    description: Never hardcode service URLs or API keys
    check: All service access via environment variables

  - id: consistent-tool-naming
    description: Tool names follow pattern {service}_{action}
    examples:
      - sonarr_get_series
      - radarr_search
      - lidarr_get_albums

  - id: error-handling
    description: All API calls must handle errors gracefully
    requirements:
      - Check for missing env vars before API call
      - Return meaningful error messages
      - Don't expose raw API errors to users

  - id: trash-guides-integration
    description: TRaSH Guides tools use embedded guide data
    note: Guide data fetched from trash-guides.info at runtime

Read the full file on GitHub · 117 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. 6d ago First seen · 117 lines · 811 tokens per session scan A 50b66f8087c0

Subscribe to this mod's changes

mcp-arr AGENTS.md is an instructions file published in the GitHub repository aplaceforallmystuff/mcp-arr (207 stars, last pushed 2d ago), licensed MIT. It adds 811 tokens to every session, about $0.0041 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-30.