npm run build- Compile TypeScript to dist/npm run lint- Run ESLint and TypeScript checksnpm test- Run all Jest testsnpm run test:watch- Run tests in watch modejest src/tools/sendEmail/__tests__/sendEmail.test.ts- Run single test filenpm run dev- Run MCP server with inspector for testing
- MCP (Model Context Protocol) server integrating with Mailtrap email service
- Main entry point:
src/index.tsregisters tools and handles server lifecycle - Tools located in
src/tools/with pattern: each tool has subdirectory with index.ts, schema.ts, implementation.ts, and tests/ - Client configuration:
src/client.tshandles Mailtrap API initialization - Configuration:
src/config/index.tsfor server constants
- Uses Airbnb TypeScript ESLint config with Prettier
- TypeScript strict mode enabled, targeting ES2022 with CommonJS
- Zod schemas for all tool input validation
- Error handling: catch and re-throw with descriptive messages
- Import style: ES modules syntax, grouped with external first
- Naming: camelCase for functions/variables, PascalCase for types/interfaces
- No console.log allowed in production code (use proper error handling)