通过使用 endoflife.date API,启用 AI 助手检查软件的生命周期结束日期和支持状态,实时提供有关软件生命周期、安全状态和升级建议的准确信息。
446 查看 · 2026-07-07 更新
简介
通过使用 endoflife.date API,启用 AI 助手检查软件的生命周期结束日期和支持状态,实时提供有关软件生命周期、安全状态和升级建议的准确信息。
简介
通过使用 endoflife.date API,启用 AI 助手检查软件的生命周期结束日期和支持状态,实时提供有关软件生命周期、安全状态和升级建议的准确信息。
EOL MCP 服务器 📅
一个模型上下文协议(MCP)服务器,使像 Claude 这样的 AI 助手能够通过 endoflife.date API 检查软件的生命周期结束(EOL)日期和支持状态。这有助于 AI 模型实时提供关于软件生命周期和安全状态的准确信息。
什么是 MCP?🤔
模型上下文协议 (MCP) 是一个系统,它允许像 Claude Desktop 这样的 AI 应用程序连接到外部工具和数据源。它为 AI 助手提供了与本地服务和 API 协作的标准方式,同时保持用户的控制权。
这个服务器做什么?🚀
EOL MCP 服务器:
- 检查软件的生命周期结束日期和支持状态
- 扫描软件版本中的 CVE 漏洞
- 提供版本比较和升级建议
- 支持关于软件生命周期的自然语言查询
- 处理多种软件产品(Python、Node.js、Ubuntu 等)
- 缓存最近的查询以快速参考
特性 ✨
核心功能
- 实时 EOL 日期验证
- 版本支持状态检查
- 安全漏洞分析
- 全面的版本比较
- 自然语言查询处理
- 详细的生命周期验证
工具
-
check_version- 获取 EOL 日期和支持状态
- 检查最新的补丁版本
- 验证 LTS 状态
- 验证支持时间线
-
get_all_details(新!)- 获取全面的生命周期详情
- 查看所有版本周期
- 检查支持时间线
- 获取验证结果
- 计算剩余的支持天数
-
compare_versions- 比较当前版本与最新版本
- 获取升级建议
- 检查兼容性
- 评估升级紧迫性
- 验证升级路径
-
check_cve- 安全漏洞扫描
- 支持状态验证
- 安全补丁验证
- 厂商支持检查
-
list_products- 浏览可用软件
- 使用过滤器搜索
- 验证产品名称
- 获取产品详情
提示
-
check_software_status- 验证版本支持
- 检查 EOL 日期
- 获取安全状态
-
compare_versions- 分析版本差异
- 获取升级建议
- 检查兼容性
-
analyze_security- 安全漏洞分析
- 支持状态检查
- 补丁验证
-
natural_language_query- 处理自然语言问题
- 获取上下文响应
- 智能版本检测
-
validate_version- 验证版本推荐
- 检查支持状态
- 验证安全影响
响应示例
版本验证
{ "current_date": "2024-02-20T00:00:00.000Z", "validations": { "current": { "version": "1.20", "eol_check": { "date": "2024-02-06", "valid": false, "days_remaining": -14, "message": "Version 1.20 EOL date 2024-02-06 is invalid, -14 days from now" }, "support": { "status": "not supported", "lts": "not LTS" } } }, "recommendation": { "needs_update": true, "urgency": "critical", "message": "Current version needs urgent upgrade - use a supported version" } }
全部详细信息响应(新!)
{ "product": "go", "current_date": "2024-02-20T00:00:00.000Z", "cycles": [ { "cycle": "1.22", "releaseDate": "2024-02-06", "eol": "2025-02-06", "latest": "1.22.0", "validation": { "is_valid": true, "days_to_eol": 351, "is_supported": true, "message": "Version 1.22 EOL date 2025-02-06 is valid, +351 days from now" } } ] }
示例对话 💬
- 基本版本检查:
Human: Is Python 3.8 still good to use? Claude: Let me check the status of Python 3.8. [Uses check_version tool] Based on the EOL data, Python 3.8: - Security support ends: October 2024 - Current status: Security fixes only Recommendation: Consider upgrading to Python 3.11 for new projects.
- 安全分析:
Human: Any security concerns with Node.js 16? Claude: I'll analyze the security status of Node.js 16. [Uses check_version tool] [Uses check_cve tool] Found: - Support Status: LTS until September 2023 - Critical CVEs: 2 in last 6 months - CVSS Score Range: 7.5-9.8 Recommendation: Update to latest 16.x patch or consider Node.js 18 LTS.
- 版本比较:
Human: Which Ubuntu version should I use? Claude: I'll help you compare Ubuntu versions. [Uses version-comparison prompt] Analysis: - 22.04 LTS: Supported until 2027, recommended for new deployments - 20.04 LTS: Supported until 2025, stable and widely used - 18.04 LTS: Approaching EOL, plan migration Recommendation: Use 22.04 LTS for best long-term support.
Human: Which Ubuntu version should I use? Claude: I'll help you compare Ubuntu versions. [Uses version-comparison prompt] Analysis: - 22.04 LTS: Supported until 2027, recommended for new deployments - 20.04 LTS: Supported until 2025, stable and widely used - 18.04 LTS: Approaching EOL, plan migration Recommendation: Use 22.04 LTS for best long-term support.
先决条件 📋
在开始之前,请确保您已经安装了以下软件:
- Node.js (版本 18 或更高)
- 已安装 Claude Desktop
- 已安装 Git
您可以运行以下命令来验证 Node.js 的安装:
node --version # Should show v18.0.0 or higher
安装 🛠️
- 克隆仓库:
git clone https://github.com/ducthinh993/mcp-server-endoflife cd mcp-server-endoflife
- 安装依赖项:
npm install
- 构建项目:
npm run build
- 创建全局链接:
npm link
配置 ⚙️
1. Claude Desktop 配置
配置 Claude Desktop 以识别 EOL MCP 服务器:
对于 macOS:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
对于 Windows:
code %APPDATA%\Claude\claude_desktop_config.json
添加 EOL 服务器配置:
{ "mcpServers": { "eol": { "command": "npx", "args": ["/path/to/eol-mcp-server/build/index.js"] } } }
2. 重启 Claude Desktop
为了让更改生效:
- 完全退出 Claude Desktop(不仅仅是关闭窗口)
- 再次启动 Claude Desktop
- 查找 🔌 图标以验证 EOL 服务器已连接
故障排除 🔧
常见问题
-
找不到服务器
- 确认 npm 链接设置正确
- 检查 Claude Desktop 配置语法
- 确保 Node.js 正确安装
-
API 问题
- 检查 endoflife.date API 是否可访问
- 确认 API 响应格式没有变化
- 检查网络连接
-
连接问题
- 完全重启 Claude Desktop
- 检查 Claude Desktop 日志:
# macOS tail -n 20 -f ~/Library/Logs/Claude/mcp*.log
获取帮助
如果您遇到问题:
- 查看 MCP 文档
- 查看 endoflife.date API 文档
- 在 GitHub 仓库中打开一个 issue
致谢 🙏
- endoflife.date 提供的全面的软件生命周期 API
- Model Context Protocol 提供的 MCP 规范
- Anthropic 提供的 Claude Desktop
## 工具列表 - **check_version**: Check EOL status and support information for software versions - **check_cve**: Scan for known security vulnerabilities and support status - **list_products**: Browse or search available software products - **compare_versions**: Compare versions and get detailed upgrade analysis - **get_all_details**: Get comprehensive lifecycle details for all versions of a product ## 服务配置 ```json [{'mcpServers': {'eol': {'args': ['/path/to/eol-mcp-server/build/index.js'], 'command': 'npx'}}}]
来源
- 来源:github
- 链接:https://github.com/ducthinh993/mcp-server-endoflife