mcp-memory-server
AGENTS.md30 starsChanged 38 days agoMITView on GitHub
Instructions for AI coding agents working in this repository. The human-facing version of the same rules is CONTRIBUTING.md; where the two differ, CONTRIBUTING.md wins. You do not need to change this repository. Use one of these: CI runs the tests in three time zones, so do not assume UTC in tests that touch timestamps. src/configs/source.json is the only file edited by hand for distribution metadata: descriptions, install snippets, env variables, registry fields. After changing it: Do not edit generated files…
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 35,337 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
4 rules. About 0 are common, 2 are distinctive, and 2 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.
2
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
- Distinctive: line 28
Commit the source change together with every regenerated file.
- Very specific: line 32
Do not hard-code distribution metadata in src/, and do not add a parallel config file next to source.json.
- Distinctive: line 42
After an authorized package release, follow the wave tracker and deployment checks.
- Very specific: line 46
Keep one concern per PR, run npm test and npm run verify:configs before pushing, and say in the description which of the checks above you …
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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
AGENTS.md
Instructions for AI coding agents working in this repository. The human-facing version of the same rules is CONTRIBUTING.md; where the two differ, CONTRIBUTING.md wins.
If you are here to connect memory for a user
You do not need to change this repository. Use one of these:
- ChatGPT: install the published Mnemoverse Memory plugin and complete browser sign-in. Start with https://mnemoverse.com/docs/api/chatgpt; no local package or custom MCP setup is needed for this route.
- Hosted endpoint, no key to paste:
https://mcp.mnemoverse.com/mcp(Streamable HTTP, OAuth sign-in in the browser). Per-client setup: https://mnemoverse.com/docs/api/install-by-host - Local stdio server: follow
llms-install.md, which is written for an agent installing on a user's behalf. Have the user enter their key in the client's protected settings or a private user-level configuration, not in chat. Never invent a key or write a literalmk_live_key into a file that gets committed.
Setup and checks
- Node.js 18 or newer. Install with
npm ci. - Build:
npm run build(the prebuild step runs the config generator, the postbuild step regeneratestools.json). - Tests:
npm test(vitest). Test types:npm run typecheck:test. - Drift checks:
npm run verify:configs(generated files matchsrc/configs/source.json) andnpm run verify:tools(committedtools.jsonmatches the built server).
CI runs the tests in three time zones, so do not assume UTC in tests that touch timestamps.
The one rule: src/configs/source.json
src/configs/source.json is the only file edited by hand for distribution metadata: descriptions, install snippets, env variables, registry fields. After changing it:
npm run generate:configsnpm run verify:configs- Commit the source change together with every regenerated file.
Do not edit generated files by hand. They are server.json, manifest.json, everything under docs/configs/ and docs/snippets/, and the README regions between the INSTALL_SNIPPETS, MORE_CLIENTS and LOCAL_KEY_SNIPPETS HTML comment markers. A hand edit is overwritten on the next run and fails verify-configs.yml in the meantime. If a diff appears in one of these files and source.json did not change, discard it unless it is a regenerated tool-description change in manifest.json: the generator reads those descriptions from tools.json, which is built from src/tools.ts. For tool-description changes, run npm run build and commit the source plus regenerated tools.json and manifest.json.
Do not hard-code distribution metadata in src/, and do not add a parallel config file next to source.json.
Tool surface and changelog
Any change to what a tool does, returns or says about itself, including a description or parameter text, needs an entry under ## [Unreleased] in CHANGELOG.md in the same PR. That text is what a model reads, so even a wording change is a release-worthy patch. An internal refactor with identical behaviour gets [skip changelog] in the PR description instead. changelog-reminder.yml enforces this for changes under src/.
Versions and releases
The version lives only in package.json; src/index.ts reads it and server.json is generated from it. Releases are cut by pushing a vX.Y.Z tag, and .github/workflows/release.yml publishes to npm and the MCP Registry. Do not bump versions, tag or publish unless a maintainer asks you to.
After an authorized package release, follow the wave tracker and deployment checks. A successful publication does not prove the docs or hosted connector updated, and does not authorize an otherwise excluded production deployment.
Pull requests
Keep one concern per PR, run npm test and npm run verify:configs before pushing, and say in the description which of the checks above you ran.
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.

