mcproc: Instructions file for Claude Code

CLAUDE.md

mcproc CLAUDE.md is an instructions file for Claude Code from neptaco/mcproc. It costs 3,910 tokens per session, scanned A, original, MIT.

Project instructions for mcproc, a Rust daemon that runs and monitors development processes and provides their logs to AI tools through the Model Context Protocol. A daemon is a background program that continues running and managing other programs.

In plain words
What is it for?
Use it when developing mcproc features involving process launching, log capture, monitoring, MCP tool calls, gRPC communication, or its Rust architecture.
Why use it?
It explains the project's architecture and the roles of its command-line tool, background process manager, log system, and communication layers. This helps an agent make changes in the correct part of the system.

Instructions file for Claude Code

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

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

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/username/.mcproc/log/.

Reuse

Borrowing it

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

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 mcproc CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/neptaco/mcproc/claude-md/github.svg)](https://agentmods.dev/instructions/neptaco/mcproc/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/neptaco/mcproc/claude-md"><img src="https://agentmods.dev/badge/instructions/neptaco/mcproc/claude-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 mcproc CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/neptaco/mcproc/claude-md"><img src="https://agentmods.dev/badge/instructions/neptaco/mcproc/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,910 This file is loaded in full into every session.
When invoked 3,910 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.03910 $0.03910
Opus 5.5 $0.01564 $0.01564
Sonnet 5.5 $0.00782 $0.00782
Haiku 4.5 $0.00391 $0.00391

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

Security

Grade A, and why

mcproc 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 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.

CLAUDE.md · 440 lines

How it starts

The opening of the file, as written. The whole thing — 440 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

mcproc is a Rust-based daemon that fulfills Model Context Protocol (MCP) tool calls from LLMs and manages multiple development processes. The project provides a robust process management system with comprehensive logging, validation, and monitoring capabilities.

Key Architecture Components

High-Level Architecture

Claude / Other LLMs
      │  JSON-RPC 2.0 (MCP) via stdio
      ▼
┌───────────────────────────────┐
│   mcproc (CLI + MCP server)   │
│───────────────────────────────│
│  • MCP Tool Handlers          │
│  • gRPC Client                │
└───────────────────────────────┘
      │ gRPC (Unix Domain Socket)
      ▼
┌───────────────────────────────┐
│   mcproc daemon (--daemon)    │
│───────────────────────────────│
│  • Process Manager            │
│  • Log Hub (direct file I/O)  │
│  • gRPC API (tonic)           │
└───────────────────────────────┘
      │ stdout/stderr capture
      ▼
┌────────────────────────────────┐
│  Child Processes               │
│  (npm run dev, python app.py,  │
│   cargo run, etc.)             │
└────────────────────────────────┘

Core Components

  • mcproc daemon: The main daemon process (runs as mcproc --daemon)

    • Process Manager for spawning/managing child processes
    • Log Hub with file-based logging (temporary, deleted on system reboot)
    • API Layer using tonic (gRPC via Unix Domain Socket)
    • Port detection and monitoring
    • Process state tracking (Starting, Running, Stopping, Stopped, Failed)
  • mcproc: CLI tool for interacting with the daemon

    • Communicates via gRPC Unix socket
    • Supports commands: start, stop, restart, ps, logs, grep, clean, mcp serve
    • Project-based process organization
    • Auto-starts daemon if not running
  • mcp-rs: Reusable MCP library

    • ServerBuilder for creating MCP servers
    • Transport implementations (stdio implemented, SSE/HTTP planned)
    • Tool registry and handler interfaces

Read the full file on GitHub · 440 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 · 440 lines · 3,910 tokens per session scan A 3c7f7aac4bb7

Subscribe to this mod's changes

mcproc CLAUDE.md is an instructions file published in the GitHub repository neptaco/mcproc (10 stars, last pushed 25d ago), licensed MIT. It adds 3,910 tokens to every session, about $0.0156 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.