agentleFS
HelmiHelmi/claude-simone/mcp-server/CLAUDE.md

claude-simone / mcp-server

CLAUDE.md558 starsChanged 15 months agoMITView on GitHub

This is the MCP (Model Context Protocol) server implementation for Simone. This is a complete rewrite of the legacy directory-based command system. When configured in a project's .mcp.json:

  • In this repositoryOne other file it gives its agents.

The file

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

10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    Use conventional commits: type(scope): description

    line 61
  2. Very specific:

    Use generate-changelog prompt to create human-readable entries

    line 69
  3. Very specific:

    Run appropriate release script: pnpm release:patch/minor/major

    line 74
  4. Distinctive:

    Commit and push changes

    line 76
  5. Distinctive:

    Do NOT release without user approval for minor/major versions

    line 77
  6. Very specific:

    When configured in a project's .mcp.json:

    line 90
  7. Distinctive:

    TypeScript strict mode: - All code must pass strict type checking

    line 108
  8. Distinctive:

    Testing: - Write tests for new features

    line 110
  9. Distinctive:

    Documentation: - Update README and inline docs

    line 111
  10. Distinctive:

    Performance: - Keep the server lightweight and fast

    line 112

≈ “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

CLAUDE Instructions - MCP Server Development

Overview

This is the MCP (Model Context Protocol) server implementation for Simone. This is a complete rewrite of the legacy directory-based command system.

Tech Stack

  • Package Manager: pnpm (v9.15.2)
  • Language: TypeScript 5.8.3
  • MCP SDK: @modelcontextprotocol/sdk (official)
  • Database: SQLite with better-sqlite3
  • Testing: Vitest + coverage-v8
  • Build: tsup
  • Node.js: >=20.0.0
  • Code Quality: ESLint 9, Prettier, Husky, lint-staged, commitlint

Project Structure

./mcp-server/
├── src/              # TypeScript source
│   ├── config/       # Configuration management
│   ├── templates/    # Handlebars templates and prompts
│   ├── tools/        # MCP tools (activity logger, etc.)
│   ├── types/        # TypeScript type definitions
│   └── utils/        # Utility functions
├── dist/             # Build output (gitignored)
├── coverage/         # Test coverage (gitignored)
├── package.json
├── tsconfig.json
├── vitest.config.ts
├── eslint.config.js
└── README.md

Development Commands

pnpm dev              # Development mode with hot-reload
pnpm build            # Build for production
pnpm test             # Run tests
pnpm test:coverage    # Run tests with coverage
pnpm lint             # Lint code
pnpm format           # Format code with Prettier
pnpm typecheck        # Type checking
pnpm clean            # Clean build artifacts

Development Standards

Versioning (SemVer)

  • Currently in pre-release (0.x.y) - stay here until API stabilizes
  • Patch bumps (0.1.0 → 0.1.1): Do automatically after commits for bug fixes
  • Minor bumps (0.1.0 → 0.2.0): Only with user confirmation for new features
  • Major bumps (0.x.y → 1.0.0): Only with explicit user approval

Commits

  • Use conventional commits: type(scope): description
  • Types: feat, fix, docs, style, refactor, test, chore
  • Commits are validated by commitlint
  • Pre-commit hooks run linting and formatting

Changelog

  • Maintained in Keep a Changelog format
  • Use generate-changelog prompt to create human-readable entries
  • Categories: Added, Changed, Deprecated, Removed, Fixed, Security

Release Process

  1. Run appropriate release script: pnpm release:patch/minor/major
  2. This will bump version and update changelog
  3. Commit and push changes
  4. Do NOT release without user approval for minor/major versions

Architecture Notes

MCP Server Design

  • Environment-based project context: Project path passed via PROJECT_PATH env variable
  • Handlebars templating: Hot-reloading prompt system with partials support
  • SQLite activity logging: Persistent tracking of development activities
  • Modular prompts: YAML-based prompt definitions with template inheritance

Usage Pattern

When configured in a project's .mcp.json:

{
  "mcpServers": {
    "simone": {
      "command": "npx",
      "args": ["simone-mcp"],
      "env": {
        "PROJECT_PATH": "/path/to/project"
      }
    }
  }
}

Development Guidelines

  1. TypeScript strict mode - All code must pass strict type checking
  2. Error handling - Log errors to files, not console
  3. Testing - Write tests for new features
  4. Documentation - Update README and inline docs
  5. Performance - Keep the server lightweight and fast

Current Implementation Status

Completed

  • Basic MCP server with stdio transport
  • Handlebars templating system with hot-reload
  • Activity logging tool with SQLite backend
  • GitHub integration prompts
  • Development tooling setup

In Progress

  • Task source adapters (GitHub issues, markdown files)
  • Project configuration system
  • Additional MCP tools

Planned

  • Task management tools
  • Project analytics
  • Integration with more services

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.