agentleFS
claude-did-thisclaude-did-this/MCPControl/CLAUDE.md

MCPControl

CLAUDE.md331 starsChanged 19 months agoMITView on GitHub

Note: MCP Servers are typically launched by the Client as a subprocess.

The file

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

7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Test: pwsh.exe -c "npm run test" - Runs all Vitest tests

    line 8
  2. Very specific:

    Run single test: pwsh.exe -c "npm run test -- tools/keyboard.test.ts" or pwsh.exe -c "npm run test -- -t \"specific test name\""

    line 9
  3. Very specific:

    Default HTTPS port is still 3232 (use --port to change)

    line 17
  4. Distinctive:

    Imports: Use ES module syntax with named imports

    line 23
  5. Distinctive:

    Error Handling: Use try/catch with standardized response objects

    line 25
  6. Distinctive:

    Functions: Keep functions small and focused on single responsibility

    line 27
  7. Distinctive:

    Comments: Add JSDoc comments for public APIs

    line 28

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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

MCPControl - Development Guide

Build & Test Commands

  • Build: pwsh.exe -c "npm run build" - Compiles TypeScript to JavaScript
  • Lint: pwsh.exe -c "npm run lint" - Runs ESLint to check code quality (TS and JS)
  • Format: pwsh.exe -c "npm run format" - Runs Prettier to format code
  • Format Check: pwsh.exe -c "npm run format:check" - Checks if files are properly formatted
  • Test: pwsh.exe -c "npm run test" - Runs all Vitest tests
  • Run single test: pwsh.exe -c "npm run test -- tools/keyboard.test.ts" or pwsh.exe -c "npm run test -- -t \"specific test name\""
  • Watch tests: pwsh.exe -c "npm run test:watch" - Runs tests in watch mode
  • Coverage: pwsh.exe -c "npm run test:coverage" - Generates test coverage report
  • E2E Test: cd test && ./e2e-test.sh [iterations] - Runs end-to-end tests with Claude and MCPControl

Running with HTTPS/TLS

MCPControl supports HTTPS for secure SSE connections (mandatory per MCP spec for production):

  • node build/index.js --sse --https --cert /path/to/cert.pem --key /path/to/key.pem
  • Default HTTPS port is still 3232 (use --port to change)
  • Both --cert and --key are required when using --https

Note: MCP Servers are typically launched by the Client as a subprocess.

Code Style Guidelines

  • Imports: Use ES module syntax with named imports
  • Types: Define TypeScript interfaces for inputs/outputs in types/ directory
  • Error Handling: Use try/catch with standardized response objects
  • Naming: camelCase for variables/functions, PascalCase for interfaces
  • Functions: Keep functions small and focused on single responsibility
  • Comments: Add JSDoc comments for public APIs
  • Testing:
    • Unit tests: Place in same directory as implementation with .test.ts suffix
    • E2E tests: Added to the test/ directory
  • Formatting: Code is formatted using Prettier (pre-commit hooks will run automatically)
  • Error Responses: Return { success: false, message: string } for errors
  • Success Responses: Return { success: true, data?: any } for success
  • Linting: Both TypeScript and JavaScript files are linted with ESLint

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.