contentful-mcp-server AGENTS.md

contentful-mcp-server AGENTS.md is an instructions file for Codex, OpenCode from contentful/contentful-mcp-server. It costs 868 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

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/contentful/contentful-mcp-server/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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 868 This file is loaded in full into every session.
When invoked 868 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 $0.00868 $0.00868
Opus 5 $0.00434 $0.00434
Sonnet 5 $0.00174 $0.00174
Haiku 4.5 $0.00087 $0.00087

Measured 4d ago against content hash b6c53e1bf230, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

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 · 61 lines

How it starts

The opening of the file, as written. The whole thing — 61 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 defaultexport_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. The .shape property of the schema is passed to MCP SDK for client-side validation hints.
  • 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 · 61 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 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 (60 stars, last pushed 2d ago), licensed MIT. It adds 868 tokens to every session, about $0.0043 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.