Back to MCP directory
publicPublicdnsLocal runtime

spring-io-api-mcp

一个基于Spring AI MCP的服务器,用于从api.spring.io获取Spring项目版本和支持信息

article

README

🚀 使用 Spring AI MCP 服务器访问 https://api.spring.io 的信息

本项目实现了一个使用 Spring AI MCP 访问 spring 项目数据的 MCP 服务器。该服务器可提供有关发布版本和支持周期的信息,帮助开发者更好地了解 Spring 项目的相关情况。

🚀 快速开始

📦 安装指南

构建项目,可使用以下命令:

./mwnw clean package

💻 使用示例

基础用法

配置客户端以使用此 MCP 服务器,将以下配置添加到 MCP 服务器配置中(例如,在 VSCode 中使用 Cline):

"spring-project-information": {
  "command": "java",
  "args": [
    "-Dtransport.mode=stdio",
    "-Dspring.main.web-application-type=none",
    "-Dlogging.file.name=/spring-io-api-mcp.log",
    "-jar",
    "<path-to-project>/target/spring-io-api-mcp-0.0.1-SNAPSHOT.jar"
  ]
}

示例提示

该 MCP 服务器提供有关 Spring 项目发布版本和维护周期的信息,你可以提出以下问题:

  • 哪个 spring-boot 项目的版本已经发布?
  • 当前最新发布的 spring-boot 版本是什么?

要获取支持范围的详细信息,也可以询问相关信息:

  • 最新的 spring-boot 版本在开源领域内得到支持的时间截止到何时?
  • spring-boot 2.7.x 在开源领域内支持的时间截止到何时?
  • 你能告诉我 spring-data-core 是否会在未来 90 天内发布新版本吗?
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client