mcp-modus: Instructions file for Claude Code

CLAUDE.md

mcp-modus CLAUDE.md is an instructions file for Claude Code from julianoczkowski/mcp-modus. It costs 1,467 tokens per session, scanned A, original, MIT.

A project instruction file for MCP Modus, a Node.js server that gives AI assistants access to Modus Web Components documentation. It records the project's structure, commands, and development workflow.

In plain words
What is it for?
Building, testing, watching, and updating the documentation for the MCP server during development.
Why use it?
It gives contributors one place to find how the repository works, how to rebuild it, and how to test changes.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is julianoczkowski/mcp-modus's own configuration. It tells Claude Code how to work on mcp-modus 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 mcp-modus configures →

Reuse

Borrowing it

Nothing to install: this file belongs to julianoczkowski/mcp-modus. 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/julianoczkowski/mcp-modus/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/julianoczkowski/mcp-modus

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/julianoczkowski/mcp-modus/claude-md.svg)](https://agentmods.dev/instructions/julianoczkowski/mcp-modus/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/julianoczkowski/mcp-modus/claude-md"><img src="https://agentmods.dev/badge/instructions/julianoczkowski/mcp-modus/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,467 This file is loaded in full into every session.
When invoked 1,467 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.01467 $0.01467
Opus 5 $0.00733 $0.00733
Sonnet 5 $0.00293 $0.00293
Haiku 4.5 $0.00147 $0.00147

Measured 7d ago against content hash acd45af33829, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

mcp-modus 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 7d 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 · 174 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

MCP Modus is a Model Context Protocol (MCP) server that provides AI assistants with access to Modus Web Components documentation. It runs as a standalone Node.js process that communicates via stdio using JSON-RPC, serving documentation from pre-bundled files.

Development Commands

Build & Development

# Build TypeScript to JavaScript (required before testing/running)
npm run build

# Watch mode for development (auto-rebuild on changes)
npm run watch

# Test the server (runs the built server via dist/index.js)
npm test

# Update documentation from GitHub (downloads latest docs)
npm run update-docs

Testing During Development

# After making changes to src/index.ts:
npm run build && npm test

Architecture

Core Structure

The codebase implements a single-file MCP server with three main responsibilities:

  1. Documentation Loading (src/index.ts:89-160)

    • Loads markdown files from docs/ (49 components), rules/ (6 design rules), and setup/ (5 guides)
    • Parses filenames to extract component names and categories
    • Stores in-memory arrays: this.docs, this.rules, this.setup
    • Path resolution handles both development (dist/../docs) and production (dist/docs) layouts
  2. MCP Tool Registration (src/index.ts:162-350)

    • Registers 10 MCP tools via ListToolsRequestSchema handler
    • Handles tool invocations via CallToolRequestSchema handler
    • Tools are categorized: 4 component tools, 3 design rule tools, 3 setup tools
  3. Tool Implementations (src/index.ts:352-757)

    • Search tools use case-insensitive string matching across content
    • Get tools use direct lookups with normalized names
    • List tools organize data by categories extracted from markdown frontmatter

Communication Flow

IDE/Claude Desktop → stdio (JSON-RPC) → MCP Server (Node.js) → in-memory docs → stdio (JSON-RPC) → IDE/Claude Desktop

Read the full file on GitHub · 174 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. 7d ago First seen · 174 lines · 1,467 tokens per session scan A acd45af33829

Subscribe to this mod's changes

mcp-modus CLAUDE.md is an instructions file published in the GitHub repository julianoczkowski/mcp-modus (4 stars, last pushed 2mo ago), licensed MIT. It adds 1,467 tokens to every session, about $0.0073 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.

Related

Other instructions, from other repositories

create-trimble-app copilot-instructions.md

Copilot instructions for julianoczkowski/create-trimble-app, covering modus react app - copilot instructions, commands, design system (9 colors only), component patterns and critical bugs.

julianoczkowski/create-trimble-app · 646 tokens

create-trimble-app styles.instructions.md

Instructions for julianoczkowski/create-trimble-app, covering css and design system patterns, color variables, custom border utilities, custom opacity utilities and forbidden patterns.

julianoczkowski/create-trimble-app · 577 tokens

create-trimble-app typescript.instructions.md

Instructions for julianoczkowski/create-trimble-app, covering typescript patterns for modus components, event type casting, common event types, component ref types and modal ref pattern.

julianoczkowski/create-trimble-app · 583 tokens

create-trimble-app components.instructions.md

Instructions for julianoczkowski/create-trimble-app, covering modus wrapper component patterns, event handling pattern, state management, props pattern and modal implementation.

julianoczkowski/create-trimble-app · 442 tokens

create-trimble-app demos.instructions.md

Instructions for julianoczkowski/create-trimble-app, covering demo page patterns, page structure, demo section pattern, styling rules and interactive examples.

julianoczkowski/create-trimble-app · 489 tokens

create-trimble-app pages.instructions.md

Instructions for julianoczkowski/create-trimble-app, covering application page patterns, page structure, layout patterns, navigation and styling rules.

julianoczkowski/create-trimble-app · 403 tokens