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.
- llms.txtllms.txt
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
- Very specific: line 7
Run npm run ci before claiming work is done (lint, format, version sync, build, tests).
- Very specific: line 8
Do not commit secrets (.env, API keys).
- Distinctive: line 9
Keep imports at the top of files — no inline imports unless documented for circular deps.
- Very specific: line 10
Use exhaustive switch with never in the default case for TypeScript unions.
- Distinctive: line 79
Create git commits or tags unless the user asked you to release.
≈ “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.
Files
Agent instructions
Guidance for AI coding agents (Cursor, Claude Code, Copilot, etc.) working in openrouter-mcp-multimodal.
Before you ship
- Run
npm run cibefore claiming work is done (lint, format, version sync, build, tests). - Do not commit secrets (
.env, API keys). - Keep imports at the top of files — no inline imports unless documented for circular deps.
- Use exhaustive
switchwithneverin the default case for TypeScript unions.
Releasing (read this before publishing)
Full guide: docs/RELEASING.md
Short version
| Action | Updates npm/PyPI? | Updates Docker :latest? |
Push to main | No | No |
Merge Release Please PR → tag vX.Y.Z | Yes | Yes |
Manual git tag vX.Y.Z && git push origin vX.Y.Z | Yes | Yes |
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.jsonsrc/version.ts(SERVER_VERSION)python/pyproject.tomlserver.json(version fields + Docker OCI tag).release-please-manifest.jsonCHANGELOG.md(release notes)README.mdpin 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.mjsCommit messages for Release Please
Use Conventional Commits:
fix: …— patch releasefeat: …— minor releasefeat!: …or footerBREAKING CHANGE:— major release
Repo map
| Area | Location |
| MCP entry + handshake | src/index.ts, src/version.ts |
| Tool router | src/tool-handlers.ts |
| Tool JSON schemas | src/tool-definitions.ts |
| Handler implementations | src/tool-handlers/ |
| Tests | src/__tests__/ |
| Python uvx launcher | python/mcp_server_openrouter_multimodal/ |
| MCP registry manifest | server.json |
| Security policy | SECURITY.md |
| Smoke tests | scripts/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
mainand 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.
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
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.

