meshcore-mcp CLAUDE.md

meshcore-mcp CLAUDE.md is an instructions file for coding agents from dpup/meshcore-mcp. It costs 522 tokens per session, scanned A, original, MIT.

A project instruction file for Claude Code working on an MCP server that exposes a MeshCore node. It records the architecture, testing commands, coding rules, and issues that must not regress.

In plain words
What is it for?
Use it when changing, testing, building, or checking documentation for dpup/meshcore-mcp. The project uses Bun, TypeScript, Node.js 18 or newer, and an in-memory MCP client for tests.
Why use it?
It tells the coding agent how the server is designed and how to verify changes without breaking its contracts.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/dpup/meshcore-mcp/claude-md
Clone the repo
git clone --depth 1 https://github.com/dpup/meshcore-mcp

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 meshcore-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dpup/meshcore-mcp/claude-md.svg)](https://agentmods.dev/instructions/dpup/meshcore-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/dpup/meshcore-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/dpup/meshcore-mcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 522 This file is loaded in full into every session.
When invoked 522 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00522 $0.00522
Opus 5 $0.00261 $0.00261
Sonnet 5 $0.00104 $0.00104
Haiku 4.5 $0.00052 $0.00052

Measured 3d ago against content hash db81bfddbba2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

meshcore-mcp CLAUDE.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 3d 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.

CLAUDE.md · 38 lines

What it actually says

CLAUDE.md

Project guidance for Claude Code lives in AGENTS.md — read it first. It covers the architecture, the two contracts, conventions, and the don't-regress list.

TL;DR

  • An MCP server exposing a MeshCore node as tools/resources/prompts. Built on @dpup/meshcore-ts; tested/demoed against @dpup/meshcore-sim. Ungated by design — no policy layer (that's meshcore-elmer).
  • MeshService takes an injected MeshCoreClient + Clock. Tests drive a real MCP Client (in-memory transport) → server → sim-backed client.
  • Verify with: bun run typecheck · bun run test · bun run build · bun run docs:check (the generated docs/api.md must stay in sync).
  • ESM-only, Node ≥ 18, NodeNext, verbatimModuleSyntax, strict.js import extensions, split import type / export type.

Don't-regress (details in AGENTS.md)

  1. Injected MeshCoreClient + Clock; never construct them inside MeshService.
  2. No Date.now()/setTimeout below the entrypoint — use the Clock.
  3. Provenance is structural: verified channelMessage/contactMessage vs. unverified channelData/advert/raw — each event carries decryptVerified.
  4. admin is an enumerated, curated set (execution plan §9) — never free-form; risk tier → annotations is deterministic; dryRun never touches the device.
  5. Annotations are the boundary; structured output + actionable isError results, never raw frames or thrown exceptions.
  6. stdout is the MCP channel; diagnostics to stderr.
  7. docs/api.md is generated (bun run docs) — never hand-edit; drift.test.ts guards both contracts.

Planning docs

  • docs/plans/2026-05-26-initial-prd.md — the PRD (Spec v0.3).
  • docs/plans/2026-05-27-execution-plan.md — milestones M0–M9, the two contracts, and §9 the enumerated admin set.
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. 3d ago First seen · 38 lines · 522 tokens per session scan A db81bfddbba2

Subscribe to this mod's changes

meshcore-mcp CLAUDE.md is an instructions file published in the GitHub repository dpup/meshcore-mcp (1 stars, last pushed 3mo ago), licensed MIT. It adds 522 tokens to every session, about $0.0026 per session on Opus 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.