instrument-mcp: Instructions file for Claude Code

CLAUDE.md

instrument-mcp CLAUDE.md is an instructions file for Claude Code from mingyo186/instrument-mcp. It costs 2,011 tokens per session, scanned A, original, MIT.

Project-specific instructions for an open-source Python server that connects AI assistants to laboratory instruments such as oscilloscopes, logic analysers, multimeters, and power supplies. It covers the project structure, technology choices, safety rules, and testing.

In plain words
What is it for?
Finding code locations, working with instrument drivers and controls, running tests, and maintaining limits on hardware-changing actions.
Why use it?
They provide the repository’s rules for instrument communication and safety-sensitive operations, reducing mistakes when developing or modifying the server.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

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

Reuse

Borrowing it

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mingyo186/instrument-mcp/claude-md.svg)](https://agentmods.dev/instructions/mingyo186/instrument-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/mingyo186/instrument-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/mingyo186/instrument-mcp/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,011 This file is loaded in full into every session.
When invoked 2,011 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.02011 $0.02011
Opus 5 $0.01006 $0.01006
Sonnet 5 $0.00402 $0.00402
Haiku 4.5 $0.00201 $0.00201

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

Security

Grade A, and why

instrument-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 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 · 166 lines

How it starts

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

Instrument MCP Server - Project Rules

Project Overview

계측기(오실로스코프, 로직 분석기, 멀티미터, 파워서플라이)를 MCP(Model Context Protocol)를 통해 AI에 연결하는 오픈소스 Python 서버.

Tech Stack

  • Language: Python 3.12+
  • MCP Framework: FastMCP (fastmcp)
  • Instrument Communication: PyVISA + pyvisa-py (SCPI/VISA), saleae (Saleae API), pyserial
  • Testing: pytest + pytest-asyncio
  • Packaging: pyproject.toml (PEP 621)
  • Linting: ruff

Directory Structure

src/
├── server.py              # MCP 서버 진입점, FastMCP 인스턴스 생성
├── config.py              # 설정 관리 (safety limits, connection defaults)
├── safety.py              # 안전 계층: 쓰기 동작 승인, 범위 제한
├── drivers/
│   ├── __init__.py
│   ├── base.py            # InstrumentDriver 추상 베이스 클래스
│   ├── visa_driver.py     # SCPI/VISA 공통 드라이버
│   ├── saleae_driver.py   # Saleae 전용 드라이버
│   └── serial_driver.py   # 시리얼 통신 드라이버
├── tools/
│   ├── __init__.py
│   ├── oscilloscope.py    # scope_* Tool 정의
│   ├── logic_analyzer.py  # logic_* Tool 정의
│   ├── multimeter.py      # dmm_* Tool 정의
│   └── power_supply.py    # psu_* Tool 정의
├── mock/
│   ├── __init__.py
│   ├── mock_scope.py      # 가상 오실로스코프
│   ├── mock_logic.py      # 가상 로직 분석기
│   ├── mock_dmm.py        # 가상 멀티미터
│   ├── mock_psu.py        # 가상 파워서플라이
│   └── sample_data/       # 샘플 파형/프로토콜 JSON
├── resources/             # MCP Resource 정의 (데이터시트 스펙 등)
└── utils/
    ├── __init__.py
    ├── waveform.py        # 파형 분석 유틸리티
    └── protocol.py        # 프로토콜 디코드 유틸리티
tests/
├── unit/                  # Mock 기반 단위 테스트
└── integration/           # 실장비 연동 테스트 (CI에서 skip)

Architecture Rules

3-Layer Architecture

  1. Tool Layer (src/tools/) - MCP Tool 정의. AI에게 노출되는 인터페이스. 비즈니스 로직 없음.
  2. Driver Layer (src/drivers/) - 장비 통신 추상화. SCPI 명령 조합, 응답 파싱.
  3. Safety Layer (src/safety.py) - 모든 쓰기 동작을 가로채서 범위 검증. Driver를 직접 호출하지 않고 Safety를 거침.

Tool → Safety → Driver 호출 흐름

Tool 함수 → safety.validate_write() → Driver.send_command()
Tool 함수 → Driver.query() (읽기는 Safety 불필요)

Read the full file on GitHub · 166 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 · 166 lines · 2,011 tokens per session scan A 0c9c640ba949

Subscribe to this mod's changes

instrument-mcp CLAUDE.md is an instructions file published in the GitHub repository mingyo186/instrument-mcp (0 stars, last pushed 6mo ago), licensed MIT. It adds 2,011 tokens to every session, about $0.0101 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

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens