Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.55 KB

File metadata and controls

46 lines (36 loc) · 1.55 KB

Agent Configuration for MCP Server Template (TypeScript)

Build/Lint/Test Commands

  • Use pnpm as the package manager
  • Build: pnpm build (compiles TypeScript to JavaScript)
  • Lint: pnpm lint (runs ESLint on source files)
  • Format: pnpm format (formats all files with Prettier)
  • Format (check only): pnpm format:check (checks formatting without changes)
  • Test: pnpm test (runs Jest tests once)
  • Test (watch mode): pnpm test:watch (runs Jest in watch mode)
  • Test (coverage): pnpm test:coverage (runs Jest with coverage report)

Code Style Guidelines

  • TypeScript with strict mode enabled
  • ES2020 target with CommonJS modules
  • Import ordering not specified
  • Use PascalCase for classes and interfaces
  • Use camelCase for variables and functions
  • Use UPPER_SNAKE_CASE for constants
  • Code formatting managed by Prettier with the following rules:
    • Semi-colons required at end of statements
    • Trailing commas in object/array literals
    • Single quotes preferred over double quotes
    • Print width of 80 characters
    • 2 spaces for indentation (no tabs)
    • Spaces between brackets
    • Parentheses around arrow function parameters avoided when possible

Error Handling

  • Not specified in this minimal codebase

Cursor/Copilot Rules

  • No .cursorrules or copilot instructions found

Notes for Agents

  • This is a Node.js project with TypeScript support
  • Tests are written in Jest
  • ESLint is configured for code quality
  • Source files are in the src directory
  • Tests are in src/__tests__ directory
  • Zod is used for runtime type validation