lorcana-mcp-platform: Instructions file for Codex

AGENTS.md

lorcana-mcp-platform AGENTS.md is an instructions file for Codex, OpenCode from kschltz/lorcana-mcp-platform. It costs 742 tokens per session, scanned A, original, MIT.

Project instructions for the Lorcana MCP Playtest Platform, a TypeScript monorepo containing a card-game engine, data builder, server, user interface, and match-running command line tool. A monorepo keeps several related packages in one repository.

In plain words
What is it for?
Use them when building, testing, running, or modifying this platform, especially its five npm-workspaces packages and local services.
Why use it?
They document the repository structure, build order, development commands, and project-specific caveats that are easy to miss.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is kschltz/lorcana-mcp-platform's own configuration. It tells Codex and OpenCode how to work on lorcana-mcp-platform itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything lorcana-mcp-platform configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kschltz/lorcana-mcp-platform. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kschltz/lorcana-mcp-platform/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/kschltz/lorcana-mcp-platform

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lorcana-mcp-platform AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kschltz/lorcana-mcp-platform/agents-md/github.svg)](https://agentmods.dev/instructions/kschltz/lorcana-mcp-platform/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/kschltz/lorcana-mcp-platform/agents-md"><img src="https://agentmods.dev/badge/instructions/kschltz/lorcana-mcp-platform/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lorcana-mcp-platform AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/kschltz/lorcana-mcp-platform/agents-md"><img src="https://agentmods.dev/badge/instructions/kschltz/lorcana-mcp-platform/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 742 This file is loaded in full into every session.
When invoked 742 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00742 $0.00742
Opus 5.5 $0.00297 $0.00297
Sonnet 5.5 $0.00148 $0.00148
Haiku 4.5 $0.00074 $0.00074

Measured 2mo ago against content hash 24bdea6aaa47, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lorcana-mcp-platform AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 40 lines

How it starts

The opening of the file, as written. The whole thing — 40 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

Cursor Cloud specific instructions

This repo is the Lorcana MCP Playtest Platform — an npm-workspaces monorepo (Node 20+, TypeScript ESM) with five packages under packages/:

  • @lorcana/engine — deterministic rules engine (library, no process).
  • @lorcana/card-data — builds dist-data/*.json card definitions/scripts (library; artifacts committed).
  • @lorcana/mcp-server — the one long-running service: MCP endpoint + spectator REST/SSE API + serves the built UI. Default port 8787.
  • @lorcana/ui — React spectator app (Vite). In prod it is static files served by mcp-server; npm run dev -w @lorcana/ui runs a separate Vite dev server on :5173 that proxies /api → :8787.
  • @lorcana/bots — CLI (not a daemon) that drives AI-vs-AI matches over MCP.

Running / building / testing (standard commands live in root package.json and README.md)

  • Build all packages: npm run build (order matters: card-data → engine → mcp-server → bots → ui). The build is also the type-check/lint step — there is no ESLint config; correctness relies on tsc.
  • Run the server (dev, hot reload): npm run dev (tsx watch on mcp-server). Production entrypoint: npm start.
  • Tests: npm test (Vitest across all workspaces). No running services needed for tests.

Non-obvious caveats

  • The server serves the spectator UI only if packages/ui/dist exists. npm run dev (mcp-server) does NOT build the UI. If you want the browser UI at http://localhost:8787/, run npm run build (or at least npm run build -w @lorcana/ui) first. Otherwise use the @lorcana/ui Vite dev server on :5173.
  • mcp-server dynamically imports @lorcana/engine at runtime; if the engine's dist is missing it silently falls back to a limited StubEngine (logs a warning). Always npm run build before running for full rules behavior.
  • Sample decks in data/acceptance/*.txt reference some card names not in the committed pool; the bot runner auto-substitutes them (prints substitution notes) — this is expected, not an error.
  • Persistence is plain JSON on disk (packages/mcp-server/data/matches/*.json, gitignored) — no external DB/Docker. Matches resume across server restarts.
  • Optional LLM bot seats (--llmSeat) require a local Ollama at :11434; heuristic bots need nothing extra.

Read the full file on GitHub · 40 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 40 lines · 742 tokens per session scan A 24bdea6aaa47

Subscribe to this mod's changes

lorcana-mcp-platform AGENTS.md is an instructions file published in the GitHub repository kschltz/lorcana-mcp-platform (0 stars, last pushed 3mo ago), licensed MIT. It adds 742 tokens to every session, about $0.0030 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

lorcana-mcp-platform AGENTS.md compared with instructions from other repositories

lorcana-mcp-platform AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lorcana-mcp-platform AGENTS.mdkschltz/lorcana-mcp-platformInstructions file03mo agoMITA742Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode