openreality / mcp
CLAUDE.md221 starsChanged 3 months agoBSD-2-ClauseView on GitHub
The mcp/ component of the public reality-opened/openreality monorepo (npm openreality-mcp): Open Reality OS as MCP tools. An all-plugin cordis app. Read the Architecture section of README.md before changing src/. - Registrations are effects. Every tool/resource contribution goes through ctx.mcp.tool(ctx, ...) / ctx.mcp.resource(ctx, ...), which install via ctx.effect(); disposal must unregister (proven by test/cordis.test.ts). - Plugins, not assembly changes. New behavior is a new plugin (named exports name / inject / apply, no default export) or a new tool in an…
- Installs packages
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
We split this CLAUDE.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
- Very specific: line 10
Registrations are effects: Every tool/resource contribution goes through ctx.mcp.tool(ctx, ...) / ctx.mcp.resource(ctx, ...), which install …
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.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
CLAUDE.md - openreality-mcp
The mcp/ component of the public reality-opened/openreality monorepo
(npm openreality-mcp): Open Reality OS as MCP tools. An all-plugin cordis
app. Read the Architecture section of README.md before changing
src/.
Rules
- Registrations are effects. Every tool/resource contribution goes through
ctx.mcp.tool(ctx, ...)/ctx.mcp.resource(ctx, ...), which install viactx.effect(); disposal must unregister (proven bytest/cordis.test.ts). - Plugins, not assembly changes. New behavior is a new plugin (named
exports
name/inject/apply, no default export) or a new tool in an existing namespace;src/app.tsstays pure composition. Service classes (src/services/) default-export the class. - The wire contract is vendored, not owned.
vendor/protocol/is a pinned copy of the privatereality-opened/webpackages/protocol. Never edit it here; follow the sync procedure in vendor/protocol/README.md. - Honesty doctrine passes through verbatim:
units,scale_source,provenance,degraded, and typed server refusals (409/422 bodies) reach the model unedited. Never soften or convert them. - Artifacts go to disk, never into context: fetch tools return paths.
- Persisted contracts keep historical names: API routes,
derived/demo/*keys, andDEMO_*env fallbacks spelldemoon purpose; never rename.
Commands
npm install
npm run build # tsup → dist/cli.js (vendored protocol bundled in)
npm run typecheck
npm test # build + unit/contract/lifecycle/stdio-e2e; regenerates examples/transcript.md
npm run simulator # mock broker on :8973 for offline developmentDoes 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.

