UNPKG

mcp-codesentry

Version:

CodeSentry MCP - AI-powered code review assistant with 5 specialized review tools for security, best practices, and comprehensive code analysis

84 lines (69 loc) 3.38 kB
# Task ID: 1 # Title: Setup MCP Server Project Structure # Status: done # Dependencies: None # Priority: high # Description: Initialize the TypeScript project for the Model Context Protocol server with necessary dependencies and configuration files. # Details: 1. Create a new TypeScript project 2. Install dependencies: - @modelcontextprotocol/sdk for MCP server functionality - @google/generative-ai for Gemini API integration - TypeScript and development tools (vitest, eslint, tsx) - Supporting libraries (winston for logging, fs-extra, execa for repomix, etc.) 3. Configure tsconfig.json for modern TypeScript features: - ES2022 target with ESNext modules - Strict type checking (adjusted for initial development) - Source maps and declarations for debugging 4. Setup project directory structure: ``` /src /core # MCP server core functionality /repomix # Repomix integration /storage # Storage management /gemini # Gemini API client /review # Review engine /types # TypeScript interfaces /utils # Utility functions /config # Configuration templates /tests # Test files /dist # Build output ``` 5. Create initial package.json with scripts for build, test, and run 6. Setup .gitignore, README.md, LICENSE (MIT), and environment configuration files 7. Implement foundational components: - Main entry point (src/index.ts) with basic MCP server setup - Winston logger configuration with console and file outputs - Complete TypeScript type definitions for all major interfaces - Basic test suite to verify setup # Test Strategy: Verify project structure is correctly set up with all necessary files. Ensure all dependencies can be installed and the project can be built without errors. Run basic tests to confirm the environment is properly configured, including: 1. Dependency installation verification 2. TypeScript compilation success 3. Execution of initial test suite 4. Verification of build output in dist/ directory # Subtasks: ## 1.1. Create package.json with dependencies [completed] ### Dependencies: None ### Description: Created package.json with all necessary dependencies including @modelcontextprotocol/sdk, @google/generative-ai, TypeScript tools, and supporting libraries. ### Details: ## 1.2. Configure TypeScript [completed] ### Dependencies: None ### Description: Configured TypeScript with ES2022 target, ESNext modules, strict type checking, source maps and declarations for debugging. ### Details: ## 1.3. Create project directory structure [completed] ### Dependencies: None ### Description: Created complete project directory structure with placeholder files in core modules. ### Details: ## 1.4. Implement foundational components [completed] ### Dependencies: None ### Description: Implemented main entry point, Winston logger, TypeScript type definitions, and basic test suite. ### Details: ## 1.5. Create configuration files [completed] ### Dependencies: None ### Description: Created tsconfig.json, vitest.config.ts, eslint.config.js, .gitignore, env.example, and LICENSE (MIT). ### Details: ## 1.6. Build and test project [completed] ### Dependencies: None ### Description: Successfully installed dependencies, compiled TypeScript, ran initial tests, and verified build output. ### Details: