create-mcp-server: Instructions file for Codex

AGENTS.md

create-mcp-server AGENTS.md is an instructions file for Codex, OpenCode from agentailor/create-mcp-server. It costs 5,810 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for a TypeScript command-line tool that creates starter projects for MCP servers. MCP, or Model Context Protocol, is a way for AI applications to connect to tools and data sources.

In plain words
What is it for?
Use them when developing, testing, building, or reviewing the project generator and its templates.
Why use it?
They give contributors the project structure, development commands, dependencies, build details, and less obvious rules needed to change the repository safely.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/agentailor/create-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/agentailor/create-mcp-server/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,810 This file is loaded in full into every session.
When invoked 5,810 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.05810 $0.05810
Opus 5.5 $0.02324 $0.02324
Sonnet 5.5 $0.01162 $0.01162
Haiku 4.5 $0.00581 $0.00581

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

Security

Grade A, and why

create-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 1mo 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 · 421 lines

How it starts

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

@agentailor/create-mcp-server

A CLI tool to scaffold new MCP (Model Context Protocol) server projects.

Working notes for anyone — human or coding agent — changing this repo. The README covers using the CLI; this file covers the invariants that are not obvious from the code.

Project Structure

create-mcp-server/
├── src/
│   ├── index.ts                    # CLI entry point
│   ├── cli.ts                      # CLI argument parsing (Commander.js)
│   ├── cli.test.ts                 # Tests for CLI argument parsing
│   ├── skills.ts                   # Copies the vendored tool-design skill
│   ├── skills.test.ts              # Tests for the skill copy
│   ├── assets/                     # Non-TS files copied into dist/ at build
│   │   └── skills/tool-design/     # Vendored skill (verbatim from upstream)
│   ├── interactive.ts              # Interactive prompt flow (prompts library)
│   ├── project-generator.ts        # Shared project generation logic
│   └── templates/
│       ├── common/                 # Shared template files
│       │   ├── package.json.ts     # package.json template (transport-aware)
│       │   ├── tsconfig.json.ts    # tsconfig.json template
│       │   ├── gitignore.ts        # .gitignore template
│       │   ├── env.example.ts      # .env.example template
│       │   ├── agents.md.ts        # AGENTS.md template (per-variant guidance)
│       │   ├── agents.md.test.ts   # Tests for the AGENTS.md template
│       │   └── templates.test.ts   # Tests for common templates
│       ├── deployment/             # Deployment configuration templates
│       │   ├── dockerfile.ts       # Dockerfile template
│       │   ├── dockerignore.ts     # .dockerignore template
│       │   ├── index.ts            # Barrel exports
│       │   └── templates.test.ts   # Tests for deployment templates
│       └── sdk/                    # Official MCP SDK v2 templates
│           ├── http/               # HTTP transport template + shared primitives
│           │   ├── server.ts       # Composition root (registers the primitives)
│           │   ├── tools.ts        # Tool definitions template
│           │   ├── prompts.ts      # Prompt definitions template
│           │   ├── resources.ts    # Resource definitions template
│           │   ├── store.ts        # notes-store.ts template (no MCP imports)
│           │   ├── store-test.ts   # notes-store.test.ts template
│           │   ├── server-test.ts  # server.test.ts template
│           │   ├── index.ts        # getIndexTemplate (createMcpHandler + toNodeHandler)
│           │   ├── readme.ts       # README.md template (OAuth-aware)
│           │   ├── auth.ts         # OAuth authentication template
│           │   ├── auth.test.ts    # Tests for auth template
│           │   └── templates.test.ts
│           └── stdio/              # stdio transport template
│               ├── server.ts       # Re-exports from http
│               ├── index.ts        # Barrel export + getIndexTemplate (serveStdio)
│               ├── readme.ts       # README.md template (for local clients)
│               └── templates.test.ts
├── vitest.config.ts                # Scopes the test run; excludes generated/
├── dist/                           # Compiled output (generated)
├── docs/
│   └── oauth-setup.md              # OAuth setup guide for various providers
├── official-examples/              # Reference MCP server examples
├── package.json
├── tsconfig.json
└── README.md

Read the full file on GitHub · 421 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. 1mo ago Changed · +9 lines · +287 tokens per session e84bb2994bbe
  2. 1mo ago First seen · 412 lines · 5,523 tokens per session scan A f08024f20f83

Subscribe to this mod's changes

create-mcp-server AGENTS.md is an instructions file published in the GitHub repository agentailor/create-mcp-server (14 stars, last pushed 22d ago), licensed Apache-2.0. It adds 5,810 tokens to every session, about $0.0232 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-09-20.

Related

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

create-mcp-server AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
create-mcp-server AGENTS.mdagentailor/create-mcp-serverInstructions file1422d agoApache-2.0A5,810Codex, 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