agentleFS
valITinovalITino/dfireballz/mcp-servers/CLAUDE.md

dfireballz / mcp-servers

CLAUDE.md4 starsChanged 9 months agoMITView on GitHub

Every server.py follows this structure: Server code is volume-mounted read-only. Restart the container to pick up changes: No image rebuild needed unless you modify a Dockerfile.

The file

We split this CLAUDE.md into the rules it gives an agent

7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All subprocess calls MUST use subprocess.run(args_list, shell=False) — never shell=True

    line 5
  2. Distinctive:

    All tool inputs MUST be validated with Pydantic models

    line 6
  3. Very specific:

    All evidence access MUST create a chain_of_custody_log entry via the orchestrator API

    line 7
  4. Very specific:

    All servers MUST use mcp.run(transport="stdio") — no HTTP, no SSE

    line 8
  5. Very specific:

    Never log API keys or secrets — use * masking if you must log key presence

    line 9
  6. Very specific:

    Every server.py follows this structure:

    line 13
  7. Distinctive:

    No image rebuild needed unless you modify a Dockerfile.

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

MCP Servers — Directory Rules

Mandatory

  • All subprocess calls MUST use subprocess.run(args_list, shell=False) — never shell=True
  • All tool inputs MUST be validated with Pydantic models
  • All evidence access MUST create a chain_of_custody_log entry via the orchestrator API
  • All servers MUST use mcp.run(transport="stdio") — no HTTP, no SSE
  • Never log API keys or secrets — use *** masking if you must log key presence

Server Pattern

Every server.py follows this structure:

from fastmcp import FastMCP
mcp = FastMCP("server-name")

@mcp.tool()
def tool_name(param: str) -> str:
    """Tool description."""
    result = subprocess.run([...], shell=False, capture_output=True, text=True)
    return result.stdout

if __name__ == "__main__":
    mcp.run(transport="stdio")

Testing Changes

Server code is volume-mounted read-only. Restart the container to pick up changes:

make restart-<service>   # e.g. make restart-kali

No image rebuild needed unless you modify a Dockerfile.

Path Conventions

  • Evidence: /evidence/ (read-only)
  • Cases: /cases/ (read-write)
  • Reports: /reports/ (read-write)
  • Output: /output/ (read-write — host-visible investigation output)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.