agentleFS
G12789G12789/mcp-quickstart/AGENTS.md

mcp-quickstart

AGENTS.md81 starsChanged 6 months agoMITView on GitHub

Guidance for AI coding agents working in this repository. mcp-quickstart is a CLI that scaffolds Model Context Protocol (MCP) servers. It is published to npm as create-mcp-quickstart and invoked via npm create mcp-quickstart@latest or npx mcp-quickstart. - Pure ESM, Node >= 18, no build step for the CLI itself. - Template files use {{projectName}} / {{projectNameSnake}} placeholders, replaced in scaffold.js. - Dotfiles are stored with a leading underscore (_gitignore, _env.example) and renamed on generation, so npm does not mangle them…

  • Installs packages
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repositoryOne other file it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create templates/<language>-<transport>/, mirror the existing structure, and the CLI will pick it up automatically (template name is …

    line 59

≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

AGENTS.md

Guidance for AI coding agents working in this repository.

What this project is

mcp-quickstart is a CLI that scaffolds Model Context Protocol (MCP) servers. It is published to npm as create-mcp-quickstart and invoked via npm create mcp-quickstart@latest or npx mcp-quickstart.

Layout

src/
  index.js      CLI entry: arg parsing, prompts, orchestration
  scaffold.js   recursive template copy + placeholder replacement (incl. extra vars)
  openapi.js    OpenAPI loader + spec->tools codegen (the --from-openapi feature)
  curl.js       curl tokenizer/parser + curl->tool codegen (the --from-curl feature)
  schema.js     JSON/OpenAPI schema -> zod string (+ $ref resolve, infer from value)
templates/
  typescript-stdio/    working TS MCP server (stdio)
  typescript-http/     working TS MCP server (streamable HTTP, Express)
  typescript-openapi/  TS MCP server generated from an OpenAPI spec / curl ({{TOOLS}} injection)
  typescript-cloudflare/ remote MCP server for Cloudflare Workers (createMcpHandler, wrangler)
  typescript-cloudflare-openapi/ API-backed remote MCP server for Workers ({{TOOLS}} injection + http.ts); used when a generated source is combined with --transport cloudflare
  python-stdio/        working Python MCP server (stdio)
  python-http/         working Python MCP server (streamable HTTP, FastMCP)

Conventions

  • Pure ESM, Node >= 18, no build step for the CLI itself.
  • Template files use {{projectName}} / {{projectNameSnake}} placeholders, replaced in scaffold.js.
  • Dotfiles are stored with a leading underscore (_gitignore, _env.example) and renamed on generation, so npm does not mangle them when publishing.
  • Inside generated templates, keep pure logic in tools.ts / tools.py and the MCP wiring in index.ts / server.py. This keeps tests dependency-free.
  • On stdio servers, logs go to stderr only — stdout is the protocol channel.

How to test changes

npm install
node src/index.js tmp-out --lang ts -y      # generate a TS project
node src/index.js tmp-out-py --lang python -y
node src/index.js tmp-api --from-openapi scripts/fixtures/sample-openapi.json -y
node src/index.js tmp-curl --from-curl scripts/fixtures/sample-curl.txt -y
node src/index.js tmp-edge --from-openapi scripts/fixtures/sample-openapi.json --transport cloudflare -y  # API -> Workers
npm run test:e2e                            # scaffolds + builds + tests every variant

Then inside a generated TS project: npm install && npm test && npm run build. The generated server must start and print ... running on stdio to stderr. For the OpenAPI variant, npm run build (tsc) is the test: generated tools must typecheck.

Adding a template

Create templates/<language>-<transport>/, mirror the existing structure, and the CLI will pick it up automatically (template name is <language>-<transport>).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.