mcproc CLAUDE.md

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

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/neptaco/mcproc/claude-md
Clone the repo
git clone --depth 1 https://github.com/neptaco/mcproc
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. 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.03910 $0.03910
Opus 5 $0.01955 $0.01955
Sonnet 5 $0.00782 $0.00782
Haiku 4.5 $0.00391 $0.00391

Measured 2d ago against content hash 3c7f7aac4bb7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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. 2d 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 9d ago), licensed MIT. It adds 3,910 tokens to every session, about $0.0196 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