mcp-server-semgrep
Version:
MCP Server for Semgrep Integration - static code analysis with AI
24 lines (21 loc) • 926 B
Markdown
# Semgrep MCP Server - Agent Guidelines
## Commands
- Build: `pnpm build`
- Start: `pnpm start`
- Dev: `pnpm dev`
- Test all: `pnpm test`
- Test watch: `pnpm test:watch`
- Test single: `pnpm test -- -t "test name"`
- Lint: `pnpm lint`
## Code Style
- **Imports**: ES modules with `.js` extensions, group external first
- **Formatting**: 2-space indent, semicolons, single quotes, ~100 char lines
- **Types**: Strict TypeScript, explicit function types, interfaces for objects
- **Naming**: camelCase (vars/functions), PascalCase (classes/types), UPPER_SNAKE (constants)
- **Error handling**: McpError class, try/catch for external calls, validate inputs
- **Structure**: Functions modular and testable, avoid side effects
## Project
- Node.js >=18 application using TypeScript and MCP SDK
- ESM modules with path aliases via tsconfig
- Vitest for testing (describe/it pattern)
- Semgrep integration for static code analysis