spotify-mcp-server: Instructions file for Codex

AGENTS.md

spotify-mcp-server AGENTS.md is an instructions file for Codex, OpenCode from NovaLux12/spotify-mcp-server. It costs 16,754 tokens per session, scanned A, original, MIT.

A repository instruction document for working on a Spotify Web API server. It records rules about Spotify facts, authorization, code structure and contribution checks for coding agents and developers.

In plain words
What is it for?
Use it as a reference when changing, reviewing or releasing the Spotify MCP server.
Why use it?
It reduces mistakes caused by guessing API endpoints, permissions or repository conventions.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/novalux12/spotify-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/novalux12/spotify-mcp-server/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16,754 This file is loaded in full into every session.
When invoked 16,754 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.16754 $0.16754
Opus 5.5 $0.06702 $0.06702
Sonnet 5.5 $0.03351 $0.03351
Haiku 4.5 $0.01675 $0.01675

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

Security

Grade A, and why

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

Makes network callslowCapability

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

curl -sS "https://registry.npmjs.org/<pkg>?cb=$(date +%s)" | jq '.["dist-tags"]'
AGENTS.md · 1,091 lines

How it starts

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

AGENTS.md — working on SpotifyMCP

This repository wraps the Spotify Web API as an MCP server. The rules below are the ones that are easy to get wrong and expensive when you do. The Spotify account-level rules (scopes, redirects, blocked endpoints) encode facts you cannot infer from the code. The repo-level rules (gates, manifests, budgets) encode the reasons the tree is shaped the way it is.

  • Contribution and release process for humans: CONTRIBUTING.md
  • Tool contracts: SPEC.md
  • Architecture and module map: ARCHITECTURE.md
  • Env vars: docs/configuration.md
  • Schema budgets: docs/schema-budgets.md

1. Spotify facts you must not guess

The authoritative source is the official OpenAPI schema, not your memory:

Do not guess endpoint paths, query parameter names, or response field names. Look them up. Spotify will 400 on a wrong query parameter name and this server has shipped more than one such bug (see §6).

Do not reach for as any to read a payload. It is the cast that turns off the compiler at exactly the place a field rename would otherwise be caught, and the value then arrives as undefined wearing a plausible type. src/tools is at zero and CI fails if one comes back (node scripts/check-no-explicit-any.mjs). The fix is to widen the shared shape in src/types/spotify.ts — which is owned by one file on purpose — or to narrow the read to a typed helper. as unknown as and : any are not covered by that gate.

as unknown as T and : any are ratcheted separately, by tests/payload-casts.test.ts, which counts both per file, requires every file that still holds one to be listed in its BASELINE table with a stated reason, and fails on any new one. as unknown as Record<string, unknown> is excluded and deliberately so: widening a payload to the wire's own type asserts nothing the reader did not already believe, and structuredContent() in src/shaping.ts is the blessed form of it. Declaring a payload as a type rather than an interface is what closes the gap the cast was papering over — a type alias of an object literal type is assignable to Record<string, unknown>, an interface is not, and that difference is the whole reason as unknown as was needed at all.

Read the full file on GitHub · 1,091 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. 4d ago Changed · -27 lines · -395 tokens per session d36a16a36c74
  2. 28d ago Changed · +563 lines · +9,225 tokens per session 8029a12dc3fb
  3. 29d ago First seen · 555 lines · 7,924 tokens per session scan A 06a0c4506e24

Subscribe to this mod's changes

spotify-mcp-server AGENTS.md is an instructions file published in the GitHub repository NovaLux12/spotify-mcp-server (1 stars, last pushed 3d ago), licensed MIT. It adds 16,754 tokens to every session, about $0.0670 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-09-27.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,581 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens