Skip to main content
Glama
nickbaumann98

Release Notes MCP Server

发行说明服务器

一个 MCP 服务器,可以从 GitHub 仓库生成精美的发行说明。它可以高效地获取提交,按类型组织它们,并以简洁易读的格式呈现。

特征

  • 🎯 按日期或 SHA 智能提交过滤

  • 📊 按类型(功能、修复等)对提交进行分组

  • 🔍 使用 PR 数据丰富提交

  • 📈 包含详细的统计数据

  • 🎨 使用表情符号清理 Markdown 格式

  • ⚡ 使用 GitHub 的since参数高效使用 API

Related MCP server: Git Auto Commit MCP Server

安装

npm install npm run build

用法

将此服务器添加到您的 MCP 配置中:

{ "mcpServers": { "release-notes": { "command": "node", "args": ["/path/to/release-notes-server/build/index.js"], "env": { "GITHUB_TOKEN": "your-github-token" } } } }

可用工具

生成发布说明

为 GitHub 存储库生成发行说明。

参数:

{ "owner": string, // Repository owner "repo": string, // Repository name "commitRange": { "fromCommit"?: string, // Starting commit SHA "toCommit"?: string // Ending commit SHA }, "format": { "type": "markdown", // Output format "groupBy": "type", // How to group commits "includeStats": boolean // Include commit statistics } }

例子:

const result = await use_mcp_tool({ server_name: "release-notes", tool_name: "generate_release_notes", arguments: { owner: "owner", repo: "repo", commitRange: { fromCommit: "abc123" // Get commits from this SHA }, format: { type: "markdown", groupBy: "type", includeStats: true } } });

输出格式

生成的发行说明包括:

  1. 带有生成日期和统计信息的标题

  2. 按提交类型分组的部分:

    • 🚀 功能

    • 🐛 修复

    • 📚 文档

    • ⚡ 性能

    • ♻️ 重构

    • 🧪 测试

    • 🏗️ 构建

    • 🔧 其他

  3. 详细统计数据包括:

    • 总提交数

    • 重大变更

    • 按类型提交

    • 作者提交

环境变量

  • GITHUB_TOKEN :具有 repo 访问权限的 GitHub 个人访问令牌

实现细节

服务器通过以下方式实现高效的提交提取:

  1. 尽可能使用 GitHub 的since参数来减少 API 调用

  2. 必要时回退到基于 SHA 的过滤

  3. 正确处理分页

  4. 保持发行说明的最新优先顺序

  5. 使用可用的 PR 数据来丰富提交

执照

麻省理工学院

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nickbaumann98/release-notes-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server