Project Tracker MCP Server

Project Tracker MCP Server

A TypeScript-based REST API that integrates project and task management with MCP (Model Context Protocol), allowing users to manage projects and tasks through natural language interactions.

Category
访问服务器

Tools

natural_language_query

Process natural language queries about projects and tasks with intelligent parsing

workload_analysis

Analyze workload for a specific person with detailed insights

risk_assessment

Assess project risks and provide recommendations

README

Project Tracker API with MCP Integration

TypeScript Node.js Express PostgreSQL Prisma Redis Jest MCP License

A TypeScript-based REST API for project and task management with MCP (Model Context Protocol) integration.

👨‍💻 Author

Jatinder (Jay) Bhola - Engineering Leader & Tech Lead

  • 🏠 Location: Toronto, ON, Canada
  • 🎯 Expertise: Cloud-Native & Event-Driven Architectures, Building Scalable Systems
  • 🔗 Connect: GitHub | LinkedIn

"Engineering leader with 10+ years of experience improving developer workflows and scaling cloud-native systems. Proven track record in leading and delivering high-impact, customer-facing platforms and empowering engineering teams to build fast, resilient web applications."

Technology Stack

  • Node.js 18+ with TypeScript
  • Express.js framework
  • PostgreSQL with Prisma ORM
  • Redis for caching
  • Zod for validation
  • Jest for testing
  • Swagger/OpenAPI for documentation
  • MCP SDK for agent integration

Project Structure

project-tracker-api/
├── src/
│   ├── controllers/     # API route handlers
│   ├── services/        # Business logic layer
│   ├── models/         # Database models/schemas
│   ├── middleware/     # Validation, error handling
│   ├── utils/         # Helper functions and date utilities
│   ├── mcp/          # MCP server implementation
│   ├── config/       # Database and app configuration
│   └── test/         # Test setup and utilities
├── prisma/           # Database schema and migrations
├── docs/            # API documentation and setup guides
└── scripts/         # Setup and seed scripts

Architecture Overview

Architecture System Diagram

Getting Started

Quick Setup (Recommended)

For the interviewer or anyone who wants to get everything running quickly:

# One-command setup (recommended)
npm run setup

This will:

  • ✅ Install all dependencies
  • ✅ Start PostgreSQL and Redis services
  • ✅ Create databases and run migrations
  • ✅ Seed test data
  • ✅ Build the project
  • ✅ Run tests to verify everything works
  • ✅ Create environment configuration

After setup, run the demo to see all features:

# Start the API server in one terminal
npm run dev

# Run the demo in another terminal
npm run demo

Manual Setup

If you prefer to set up manually:

  1. Clone the repository
  2. Install dependencies:
    npm install
    
  3. Initialize the database:
    # Create databases
    createdb taskflow
    createdb taskflow_test
    
    # Generate Prisma client
    npm run prisma:generate
    
    # Run migrations
    npm run prisma:migrate
    
  4. Seed test data:
    node scripts/seed-test-data.js
    
  5. Build the project:
    npm run build
    
  6. Start the development server:
    npm run dev
    
  7. Test MCP Integration:
    # Test MCP server
    npm run mcp:test
    
    # Interactive testing with MCP Inspector
    npm run mcp:inspector
    

Database Configuration

Environment Variables

Create a .env file with the following variables:

# Main database
DATABASE_URL="postgresql://username:password@localhost:5432/taskflow"

# Test database (separate from main)
TEST_DATABASE_URL="postgresql://username:password@localhost:5432/taskflow_test"

# Redis configuration
REDIS_URL="redis://localhost:6379/0"
TEST_REDIS_URL="redis://localhost:6379/1"

# Optional: Use main database for tests (not recommended for production)
USE_MAIN_DB_FOR_TESTS=false

Setting Up Test Database

  1. Create Test Database:

    createdb taskflow_test
    
  2. Run Migrations on Test Database:

    TEST_DATABASE_URL="postgresql://localhost:5432/taskflow_test" npx prisma migrate deploy
    
  3. Verify Setup:

    npm run test:verify-env
    

🤖 MCP Integration

For detailed MCP documentation and architecture, see docs/ASSESSMENT_DEMONSTRATION.md.

Available Scripts

Development

  • npm run dev - Start development server with hot reload

  • npm run build - Build for production

  • npm start - Start production server

  • npm run format - Format code with Prettier

  • npm run lint - Run ESLint [TODO]

Database Management

  • npm run prisma:generate - Generate Prisma client
  • npm run prisma:migrate - Run database migrations
  • npm run prisma:studio - Open Prisma Studio for main database
  • npm run prisma:studio:test - Open Prisma Studio for test database
  • npm run prisma:studio:main - Open Prisma Studio for main database

Testing

  • npm test - Run all tests
  • npm run test:unit - Run unit tests only
  • npm run test:integration - Run integration tests only
  • npm run test:coverage - Run tests with coverage report
  • npm run test:watch - Run tests in watch mode
  • npm run test:setup - Create test database
  • npm run test:reset - Reset test database (drop, recreate, migrate)
  • npm run test:verify-env - Verify environment variables

MCP Integration

  • npm run mcp:start - Start MCP server
  • npm run mcp:debug - Start MCP server in debug mode
  • npm run mcp:test - Run unified MCP tests
  • npm run mcp:inspector - Start MCP Inspector for interactive testing

Testing

Test Architecture

The project uses a comprehensive testing setup with:

  • Unit Tests: Test individual service methods and business logic
  • Integration Tests: Test API endpoints and database interactions
  • Test Utilities: Centralized test data builders and assertions
  • Date Utils: Centralized date conversion utilities for consistent testing

Test Configuration

  • Separate Test Database: Prevents accidental data loss
  • Redis Isolation: Uses separate Redis database for tests
  • Environment Detection: Automatic test environment setup
  • Clean Test Data: Automatic cleanup between tests

Running Tests

# Run all tests
npm test

# Run specific test suites
npm run test:unit
npm run test:integration

# Debug environment setup
npm run test:verify-env

Test Utilities

The test suite includes centralized utilities:

  • TestData: Builders for creating test projects and tasks
  • Assertions: Common assertion helpers for date comparisons
  • MockUtils: Utilities for mocking cache and service calls
  • TestEnv: Environment detection and configuration

Test Database Management

# Quick setup
npm run test:setup

# Reset test database
npm run test:reset

# Verify environment
npm run test:verify-env

API Documentation

Once the server is running, visit /api/docs for the Swagger documentation with organized endpoints:

  • Projects: CRUD operations for project management
  • Tasks: CRUD operations for task management

Security and TODOs

Read more about the MUST HAVE security integration

License

Code has been produced with the help of Claude IDE

ISC

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选