agentleFS
stabganstabgan/openrouter-mcp-multimodal/AGENTS.md

openrouter-mcp-multimodal

AGENTS.md95 starsChanged 3 months agoApache-2.0View on GitHub

Guidance for AI coding agents (Cursor, Claude Code, Copilot, etc.) working in openrouter-mcp-multimodal. Full guide: docs/RELEASING.md Normal path: land conventional commits on main → merge the Release Please PR → tag is created automatically → publish.yml publishes everywhere. Manual path: bump all version files (see list below) → npm run version:check → test → commit → git tag vX.Y.Z → push tag. Check: npm run version:check Use Conventional Commits:

  • Reads credentials
  • Commits and pushes
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Run npm run ci before claiming work is done (lint, format, version sync, build, tests).

    line 7
  2. Very specific:

    Do not commit secrets (.env, API keys).

    line 8
  3. Distinctive:

    Keep imports at the top of files — no inline imports unless documented for circular deps.

    line 9
  4. Very specific:

    Use exhaustive switch with never in the default case for TypeScript unions.

    line 10
  5. Distinctive:

    Create git commits or tags unless the user asked you to release.

    line 79

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 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

Agent instructions

Guidance for AI coding agents (Cursor, Claude Code, Copilot, etc.) working in openrouter-mcp-multimodal.

Before you ship

  1. Run npm run ci before claiming work is done (lint, format, version sync, build, tests).
  2. Do not commit secrets (.env, API keys).
  3. Keep imports at the top of files — no inline imports unless documented for circular deps.
  4. Use exhaustive switch with never in the default case for TypeScript unions.

Releasing (read this before publishing)

Full guide: docs/RELEASING.md

Short version

ActionUpdates npm/PyPI?Updates Docker :latest?
Push to mainNoNo
Merge Release Please PR → tag vX.Y.ZYesYes
Manual git tag vX.Y.Z && git push origin vX.Y.ZYesYes

Normal path: land conventional commits on main → merge the Release Please PR → tag is created automatically → publish.yml publishes everywhere.

Manual path: bump all version files (see list below) → npm run version:check → test → commit → git tag vX.Y.Z → push tag.

Version files (must all match package.json)

  • package.json / package-lock.json
  • src/version.ts (SERVER_VERSION)
  • python/pyproject.toml
  • server.json (version fields + Docker OCI tag)
  • .release-please-manifest.json
  • CHANGELOG.md (release notes)
  • README.md pin examples (recommended)

Check: npm run version:check

Pre-release tests

npm run ci
npm run test:smoke:npm
npm run test:smoke:uvx:local
# Docker: docker build -t openrouter-mcp-multimodal:$(node -p "require('./package.json').version")-test .
#         node scripts/smoke-docker-mcp.mjs

Commit messages for Release Please

Use Conventional Commits:

  • fix: … — patch release
  • feat: … — minor release
  • feat!: … or footer BREAKING CHANGE: — major release

Repo map

AreaLocation
MCP entry + handshakesrc/index.ts, src/version.ts
Tool routersrc/tool-handlers.ts
Tool JSON schemassrc/tool-definitions.ts
Handler implementationssrc/tool-handlers/
Testssrc/__tests__/
Python uvx launcherpython/mcp_server_openrouter_multimodal/
MCP registry manifestserver.json
Security policySECURITY.md
Smoke testsscripts/smoke-*.mjs
CI.github/workflows/ci.yml
Publish.github/workflows/publish.yml
Release automation.github/workflows/release-please.yml, release-please-config.json

Do not

  • Push to main and assume npm/PyPI updated — they only publish on version tags.
  • Bump version in only one file — CI will fail version:check.
  • Create git commits or tags unless the user asked you to release.

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.