PatchEvergreen MCP Server

PatchEvergreen MCP Server

Provides breaking changes analysis for libraries across multiple languages, enabling version upgrade planning, dependency audits, and migration reports through MCP tool access and expert workflows.

Category
访问服务器

README

PatchEvergreen MCP Server & Skill

This repository provides both a Model Context Protocol (MCP) server and an Agent Skill for accessing PatchEvergreen's breaking changes database. The MCP server provides tool access, while the Skill provides expert workflows and guidance for analyzing breaking changes across multiple programming languages.

What's New: Skills Support

This package now includes a Skill (SKILL.md) that can be used across multiple AI coding tools including:

  • Claude Code (claude.ai)
  • Cursor
  • OpenClaw (Clawdbot)
  • VS Code (with MCP support)
  • Any MCP-compatible tool

Skills provide the expertise and workflow knowledge, while the MCP server provides the underlying tool access. They work together to deliver a complete solution.

MCP Server

The MCP server is a lightweight Model Context Protocol server that interfaces with the PatchEvergreen API to fetch issues for breaking changes for libraries. It uses FastMCP for proper MCP implementation. It does not (currently) support API access tokens, so all accesses are "slow" requests into that API.

Please note that libraries are named as written in their respective ecosystem tools, so as you would type them in files like:

  • composer.json (php)
  • requirements.txt (python)
  • manifest.json (Javascript)
  • gemfile (Ruby)
  • package.json (Javascript)
  • cargo.toml (Rust)
  • libs.versions.toml (Java)
  • pom.xml (Java)
  • build.gradle.kts (Kotlin)

Setup

The file mcp_server.py is a stdio server that assumes you have a working copy of Python 3 installed on your machine.

Installing Dependencies

Install the required dependencies:

pip3 install -r requirements.txt

Note: If you encounter issues with asgiref, you may need to upgrade it:

pip3 install --upgrade asgiref

The requirements.txt specifies asgiref>=3.8.0 to avoid the yanked 3.7.0 version.

[If you are using tools like venv or Docker to run Python, you will need to configure them in your normal way.]

SSE (Server-Sent Events) Hosted Server

The file mcp_server_sse.py is designed for hosting on external servers. It provides a unified server on a single port (8000) that handles both:

  1. MCP Server: SSE transport for MCP protocol communication at /sse
  2. HTTP Skill Endpoints: Serves the SKILL.md file for web clients

Prerequisites

Before running the SSE server, ensure all dependencies are installed:

# Install all dependencies
pip3 install -r requirements.txt

# If you encounter asgiref issues, upgrade it
pip3 install --upgrade asgiref

The requirements.txt specifies asgiref>=3.8.0 to avoid the yanked 3.7.0 version.

Running the SSE Server

Option 1: Direct Python Execution

To run the unified server directly:

python3 mcp_server_sse.py

This starts a single server on port 8000 that handles:

  • MCP SSE protocol at /sse
  • Skill file endpoints at /.well-known/skill, /api/skill, etc.
  • All routing is handled internally in Python - no nginx or reverse proxy needed!

Option 2: Docker Compose (Recommended for Production)

For easy deployment and consistency, use Docker Compose:

# Build and start the container (logs will be shown in terminal)
docker compose up

# To stop the container, press Ctrl+C or in another terminal:
docker compose down

The container will:

  • Build the Docker image with all dependencies
  • Run the server on port 8000
  • Automatically restart if it crashes
  • Include health checks

Access the server at http://localhost:8000 (or your server's IP address).

Option 3: Docker (Manual)

If you prefer to use Docker directly:

# Build the image
docker build -f Docker/Dockerfile -t patchevergreen-mcp .

# Run the container
docker run -d -p 8000:8000 --name patchevergreen-mcp-server patchevergreen-mcp

# View logs
docker logs -f patchevergreen-mcp-server

# Stop the container
docker stop patchevergreen-mcp-server
docker rm patchevergreen-mcp-server

### Single Port Operation

The server runs everything on a single port (8000) using Python's uvicorn ASGI server with internal routing:

- **MCP SSE**: Handles `/sse` endpoint for MCP protocol
- **Skill endpoints**: Handles all other routes (`.well-known/skill`, `/api/skill`, etc.)

All routing is handled internally by the Python server - no nginx or reverse proxy needed!

When you run `python3 mcp_server_sse.py`, both services are available on port 8000:
- MCP SSE: `http://localhost:8000/sse`
- Skill file: `http://localhost:8000/.well-known/skill`
- Skill metadata: `http://localhost:8000/.well-known/skill/metadata`
- Skills list: `http://localhost:8000/.well-known/skills`

### Skill HTTP Endpoints

The SSE server exposes the following HTTP endpoints for web clients to access the Skill:

#### Get Full Skill File
- `GET /.well-known/skill` - Returns the complete SKILL.md file
- `GET /api/skill` - Alternative endpoint for skill content
- `GET /skill` - Simple endpoint for skill content

**Response**: Markdown content with `Content-Type: text/markdown; charset=utf-8`

#### Get Skill Metadata (Discovery)
- `GET /.well-known/skill/metadata` - Returns only YAML frontmatter for discovery
- `GET /api/skill/metadata` - Alternative endpoint for metadata

**Response**: YAML frontmatter with `Content-Type: text/yaml; charset=utf-8`

#### List Available Skills
- `GET /.well-known/skills` - Returns JSON list of available skills
- `GET /api/skills` - Alternative endpoint for skill listing

**Response**: JSON array with skill metadata:
```json
{
  "skills": [{
    "name": "PatchEvergreen Breaking Changes Analyzer",
    "description": "Expert skill for analyzing breaking changes...",
    "version": "1.0.0",
    "url": "/.well-known/skill"
  }]
}

Accessing Skills from Web Clients

Web clients (like ClaudeCode, OpenClaw, etc.) can access your Skill by:

  1. Direct HTTP Access: Fetch the skill from your hosted server:

    https://your-hosted-server.com/.well-known/skill
    
  2. Discovery: Query the skills endpoint to discover available skills:

    https://your-hosted-server.com/.well-known/skills
    
  3. MCP Resource: Access via MCP resource URI:

    skill://patch-evergreen/SKILL.md
    

Example: Using Skill from Web Client

# Get skill metadata for discovery
curl https://your-hosted-server.com/.well-known/skills

# Get full skill file
curl https://your-hosted-server.com/.well-known/skill

# Get only metadata (faster for discovery)
curl https://your-hosted-server.com/.well-known/skill/metadata

Using as a Skill

Quick Start

  1. Install the MCP Server (see Setup section below)
  2. Configure your tool to use the PatchEvergreen MCP server
  3. Load the Skill - The SKILL.md file contains all the workflow instructions and expertise

The Skill automatically teaches your AI assistant how to:

  • Analyze breaking changes for libraries
  • Plan version upgrades
  • Conduct dependency audits
  • Assess compatibility impacts
  • Generate migration reports

Cross-Platform Usage

Claude Code / Claude Desktop

  1. Connect the PatchEvergreen MCP server (SSE or stdio)
  2. Reference the SKILL.md file or load it as a skill resource
  3. The skill will guide Claude on how to use the MCP tools effectively

Cursor

  1. Configure the MCP server in .cursor/mcp.json (see configuration examples below)
  2. The skill can be loaded as a resource or referenced directly
  3. Cursor will use both the MCP tools and skill workflows

OpenClaw (Clawdbot)

  1. Configure the MCP server connection
  2. Load the SKILL.md file as a skill
  3. OpenClaw will use the skill's workflows with the MCP server tools

Skill Features

The Skill provides five specialized workflows:

  1. Quick Breaking Changes Check - Fast overview of breaking changes
  2. Comprehensive Analysis - Detailed analysis with migration guidance
  3. Dependency Audit - Systematic review of all project dependencies
  4. Version Upgrade Planning - Step-by-step upgrade plans
  5. Compatibility Impact Summary - Focused compatibility assessment

See SKILL.md for complete documentation on workflows and best practices.

Using with Cursor (MCP Server)

Once installed, this server is designed to be used as a stdio MCP server, typically launched and managed by the Cursor editor. You do not need to run it manually or specify a port.

MCP.png

Cursor automatically communicates with this MCP server over stdio when you invoke MCP features (such as asking for issues for a library) within the editor. No manual requests or HTTP endpoints are needed.

Configuring MCP Server with .cursor/mcp.json

To configure Cursor to use this MCP server, add a .cursor/mcp.json to your project. Example configurations are provided below.

MCP Endpoint

The server implements the Model Context Protocol (MCP) standard using FastMCP. It automatically handles all MCP-specific communication, including streaming responses.

Error Handling

The server will return appropriate error messages if:

  • No user message is found in the request
  • The library and language parameters cannot be parsed from the message
  • The PatchEvergreen API request fails
  • Any other unexpected errors occur

All responses are handled automatically by FastMCP, including proper streaming and error handling.

Configuration Examples

Cursor Configuration (stdio)

Create .cursor/mcp.json:

{
  "mcpServers": {
    "PatchEvergreen": {
      "command": "python3",
      "args": ["/path/to/PatchEvergreen-MCP-Server/mcp_server.py"]
    }
  }
}

Cursor Configuration (SSE - for hosted server)

Create .cursor/mcp.json:

{
  "mcpServers": {
    "PatchEvergreen": {
      "url": "https://your-hosted-server.com/sse",
      "transport": "sse"
    }
  }
}

Claude Desktop Configuration

Edit your Claude Desktop configuration file (location varies by OS):

{
  "mcpServers": {
    "PatchEvergreen": {
      "command": "python3",
      "args": ["/path/to/PatchEvergreen-MCP-Server/mcp_server.py"]
    }
  }
}

Or for SSE:

{
  "mcpServers": {
    "PatchEvergreen": {
      "url": "https://your-hosted-server.com/sse",
      "transport": "sse"
    }
  }
}

OpenClaw Configuration

Configure in OpenClaw's MCP settings to point to either:

  • Local stdio server: python3 /path/to/mcp_server.py
  • Hosted SSE server: https://your-hosted-server.com/sse

Then load the SKILL.md file as a skill resource.

Architecture

This package follows the modern Skills + MCP architecture:

  • MCP Server (mcp_server.py, mcp_server_sse.py): Provides tool access via the Model Context Protocol
  • Skill (SKILL.md): Provides workflow knowledge and expertise on how to use the tools effectively

This separation allows:

  • The MCP server to be used independently for tool access
  • The Skill to work with any compatible MCP server
  • Cross-platform compatibility through the Agent Skills open standard

推荐服务器

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

官方
精选