MCP Tools

MCP Tools

A modular multi-server architecture providing development automation, JIRA management, and performance reporting for Claude Code. It features specialized tools for PR health analysis, code reviews, and generating comprehensive team and individual quarterly reports.

Category
访问服务器

README

MCP Tools - Multi-Server Architecture

A modular FastMCP server architecture providing development tools, analytics, and reporting for Claude Code integration.

🏗️ Architecture Overview

MCP Tools uses a multi-server composition architecture with three specialized servers:

  • 🎯 Coordinator (localhost:8002) - Main orchestration server that composes tools and reports
  • 🛠️ Tools (localhost:8003) - Development workflow automation (PR analysis, code review, JIRA)
  • 📈 Reports (localhost:8004) - Performance analytics and reporting (quarterly reports, metrics)

All servers can run independently or composed together through the coordinator using FastMCP's mount() pattern.

🚀 Quick Start

Container-First Deployment (Recommended)

# Start all services
./scripts/start.sh

# Check status
./scripts/status.sh

# Stop all services
./scripts/stop.sh

# Add to Claude Code (coordinator endpoint)
claude mcp add mcp-tools http://localhost:8002/mcp/ --transport http --scope user

Development Setup

# Install dependencies
poetry install

# Run coordinator (mounts all servers)
poetry run python coordinator/server.py

# Or run individual servers
poetry run python tools/server.py      # Tools only (port 8003)
poetry run python reports/server.py    # Reports only (port 8004)

📊 Service Endpoints

Service Port Health Check Purpose
Coordinator 8002 http://localhost:8002/health Main composition server
Tools 8003 http://localhost:8003/health Development workflows
Reports 8004 http://localhost:8004/health Analytics & reporting

🛠️ Available Tools (14 Core Tools)

Development Workflow Tools (Tools Server)

1. PR Health (pr_health)

Analyzes PR health including open review threads, CI status, and merge readiness.

  • Input: GitHub PR URL, optional description
  • Output: Comprehensive health analysis with actionable solutions
  • Example: "pr_health https://github.com/owner/repo/pull/123"

2. Code Review (code_review)

Performs comprehensive code quality review with security and performance analysis.

  • Input: GitHub PR URL, optional focus area, max diff lines
  • Output: Structured code quality assessment
  • Example: "code_review https://github.com/owner/repo/pull/123 security"

3. Tech Design Review (tech_design_review)

Reviews technical design documents with architecture and implementation analysis.

  • Input: Document URL (Confluence/GitHub), optional focus area
  • Output: Design review with architecture recommendations
  • Example: "tech_design_review https://company.atlassian.net/wiki/pages/123456"

4. JIRA Transition (jira_transition)

Automates JIRA workflow transitions with intelligent state management.

  • Input: Ticket ID, target state (supports aliases: "dev", "review", "qa", "done")
  • Output: JIRA transition instructions with Atlassian MCP integration
  • Example: "jt SI-1234 start" or "jira_transition SI-1234 development"

5. Get JIRA Transitions (get_jira_transitions)

Calculates optimal transition paths between JIRA statuses.

  • Input: From status, optional to status
  • Output: Step-by-step transition path with MCP commands
  • Example: "get_jira_transitions 'Open' 'In Development'"

6. Epic Status Report (epic_status_report)

Generates comprehensive epic status with sub-task analysis and progress tracking.

  • Input: Epic ticket ID, optional focus area
  • Output: Epic progress analysis with assignee action items
  • Example: "epic_status_report SI-9038"

Analytics & Reporting Tools (Reports Server)

7. Quarterly Team Report (quarterly_team_report)

Generates comprehensive quarterly team performance reports with anonymized metrics.

  • Input: Team prefix, year, quarter, optional description
  • Output: Team analysis using JIRA and GitHub data
  • Example: "quarterly_team_report SI 2025 2"

8. Quarter-over-Quarter Analysis (quarter_over_quarter_analysis)

Analyzes team performance trends and size changes across multiple quarters.

  • Input: Team prefix, period (e.g., "2024", "2023-2025")
  • Output: Multi-quarter trend analysis with team composition tracking
  • Example: "quarter_over_quarter_analysis SI 2024"

9. Personal Quarterly Report (personal_quarterly_report)

Generates individual contributor performance reports for personal development.

  • Input: Team prefix, year, quarter
  • Output: Personal performance analysis with growth recommendations
  • Example: "personal_quarterly_report SI 2025 2"

10. Personal Quarter-over-Quarter (personal_quarter_over_quarter)

Analyzes personal performance trends and growth across multiple time periods.

  • Input: Team prefix, period
  • Output: Personal growth analysis with development insights
  • Example: "personal_quarter_over_quarter SI 2024"

System & Utility Tools

11. Setup Prerequisites (setup_prerequisites)

Validates and sets up all prerequisites required by MCP Tools.

  • Output: Comprehensive validation with setup instructions
  • Features: GitHub CLI, JIRA access, tool availability checks

12. Check Tool Requirements (check_tool_requirements)

Checks specific prerequisites for individual MCP tools.

  • Input: Tool name
  • Output: Tool-specific validation results

13. Echo (echo)

Simple connectivity test for MCP communication validation.

14. Get System Info (get_system_info)

System diagnostics and server health monitoring.

🐳 Container Architecture

Multi-Stage Dockerfiles

  • Builder Stage: Poetry dependency installation
  • Production Stage: Minimal runtime with non-root user
  • Multi-arch: Supports AMD64 and ARM64 architectures

Container Features

  • Health Checks: Built-in /health endpoints for all services
  • Security: Non-root user execution
  • Logging: Structured logging with configurable levels
  • Networking: Isolated bridge network for service communication

Docker Compose Services

services:
  mcp-coordinator:   # Main orchestration (port 8002)
  mcp-tools:         # Development tools (port 8003)
  mcp-reports:       # Analytics server (port 8004)

🔧 Development & Deployment

Environment Variables

Variable Default Description
MCP_SERVER_PORT 8002/8003/8004 Server port
LOG_LEVEL INFO Logging level
MOUNT_TOOLS true Mount tools server (coordinator only)
MOUNT_REPORTS true Mount reports server (coordinator only)

Container Management

# Build all containers
podman-compose build

# Start with logs
podman-compose up

# Background mode
podman-compose up -d

# Check status
podman-compose ps

# View logs
podman-compose logs -f mcp-coordinator

🎯 Integration Patterns

Claude Code Integration

# Primary endpoint (coordinator with all tools)
claude mcp add mcp-tools http://localhost:8002/mcp/ --transport http --scope user

# Individual servers (if needed)
claude mcp add mcp-tools-dev http://localhost:8003/mcp/ --transport http --scope user
claude mcp add mcp-reports http://localhost:8004/mcp/ --transport http --scope user

Workflow Examples

# Complete development workflow
claude "jt SI-1234 start -> pr_health https://github.com/owner/repo/pull/123 -> code_review same_url"

# Quarterly reporting workflow  
claude "quarterly_team_report SI 2025 2 -> personal_quarterly_report SI 2025 2"

# Epic management workflow
claude "epic_status_report SI-9038 -> jt SI-1234 start -> create implementation plan"

🚨 Alpha Development Status

MCP Tools is currently in alpha development:

  • ⚠️ Not production ready - features and accuracy not guaranteed
  • 🔬 Internal use only - data validation required
  • 📊 Report outputs require manual verification
  • 🔄 Format and structure may change without notice

🏗️ Architecture Benefits

Modularity

  • Independent Deployment: Each server can run standalone
  • Specialized Concerns: Development tools vs. reporting separated
  • Scalable: Add new servers without modifying existing ones

FastMCP Composition

  • Server Mounting: Coordinator mounts specialized servers
  • Unified Interface: Single endpoint with all tools
  • Service Discovery: Automatic tool registration and health monitoring

Container-First Design

  • Production Ready: Multi-stage builds with security best practices
  • Orchestration: Docker Compose with networking and health checks
  • Portability: Runs consistently across development and production environments

Requirements: Python 3.11+, Poetry, Podman/Docker, Git, curl, jq

推荐服务器

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 模型以安全和受控的方式获取实时的网络信息。

官方
精选