contentful-mcp-server: Instructions file for Codex

AGENTS.md

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

A set of instructions for working on the Contentful MCP server, a codebase that lets agents interact with Contentful content-management tools. It points to the repository map, build guidance, conventions, and safety limits.

In plain words
What is it for?
Use it when changing or reviewing that repository so the agent knows where implementations live, how the server works, and which constraints to follow.
Why use it?
It gives an agent the project context and warns about rules such as required initialization, limited entry mutations, ESM imports, and disabled migration tools.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/contentful/contentful-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/contentful/contentful-mcp-server/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 893 This file is loaded in full into every session.
When invoked 893 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.00893 $0.00893
Opus 5.5 $0.00357 $0.00357
Sonnet 5.5 $0.00179 $0.00179
Haiku 4.5 $0.00089 $0.00089

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

Security

Grade A, and why

contentful-mcp-server 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 11d 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 · 63 lines

How it starts

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

Agent Guide

Read this file first. It tells you where to find context in this repo.

Quick Reference

What you need Where to look
How this repo is structured ARCHITECTURE.md
How to build/test/run CONTRIBUTING.md
Why decisions were made docs/ADRs/
What this repo does README.md
PR review rules .bito/guidelines/
Active specs/work docs/specs/
MCP tool implementations packages/mcp-tools/src/tools/
Server entry point packages/mcp-server/src/index.ts

Sharp Edges & Invariants

  • Always call get_initial_context first — the server's agent instructions require this as the first tool call in every session. It initializes connection context and returns space metadata.
  • Entry mutation limit: 5 per conversation — the system prompt enforces a max of 5 entry create/edit/mutate operations at a time.
  • ESM-only — both packages output ESM. All internal imports must use .js extensions (even in .ts source files).
  • Migration tools are disabled by default — export_space, import_space, and space_to_space_param_collection are registered but disabled. Only space_to_space_migration_handler can enable them.
  • contentful-export and contentful-import are lazy-loaded — they are dynamically imported at runtime to avoid bundling their large dependency trees when not needed.
  • Zod schemas define tool input contracts — every tool uses Zod for input validation. Most tools pass .shape to the MCP SDK; strict schemas must pass the full Zod object so unknown arguments are rejected.
  • X-Contentful-User-Agent-Tool header — all CMA calls include this header with the MCP version. Do not remove or change the header name; it's used for observability.
  • Never hardcode space/environment IDs in tool implementations — always read from ContentfulConfig or tool input params.
  • contentful-management uses namespace imports — since CMA v12, use import * as ctfl from 'contentful-management' (not default import).

Read the full file on GitHub · 63 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. 11d ago Changed · +2 lines · +25 tokens per session 0f0f96d7dfa2
  2. 2mo ago First seen · 61 lines · 868 tokens per session scan A b6c53e1bf230

Subscribe to this mod's changes

contentful-mcp-server AGENTS.md is an instructions file published in the GitHub repository contentful/contentful-mcp-server (62 stars, last pushed yesterday), licensed MIT. It adds 893 tokens to every session, about $0.0036 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-30.

Related

contentful-mcp-server AGENTS.md compared with instructions from other repositories

contentful-mcp-server AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
contentful-mcp-server AGENTS.mdcontentful/contentful-mcp-serverInstructions file62yesterdayMITA893Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode