Back to MCP directory
publicPublicdnsLocal runtime

cloud-foundry-mcp

一个基于Spring AI MCP的Cloud Foundry交互服务器

article

README

🚀 云平台发现 MCP 服务器

本 MCP 服务器为您与 Cloud Foundry 基础设施交互提供了一个大语言模型(LLM)接口。它基于 Spring AI MCP 项目构建。

示例

🚀 快速开始

📦 安装指南

要构建此服务器,您可以使用以下命令:

./mvnw clean package

⚙️ 配置

您需要为服务器提供一个配置文件,供 MCP 客户端使用。以下是适用于 claude_desktop_config.json 的配置示例:

{
  "mcpServers": {
    "cloud-foundry": {
      "command": "java",
      "args": [
        "-Dspring.ai.mcp.server.transport=stdio",
        "-Dlogging.file.name=cloud-foundry-mcp.log",
        "-jar",
        "/path/to/cloud-foundry-mcp/target/cloud-foundry-mcp-0.0.1-SNAPSHOT.jar",
        "--server.port=8040"
      ],
      "env": {
        "CF_APIHOST": "[Your CF API Endpoint e.g. api.sys.mycf.com]",
        "CF_USERNAME": "[Your CF User]",
        "CF_PASSWORD": "[Your CF Password]",
        "CF_ORG": "[Your Org]",
        "CF_SPACE": "[Your Space]"
      }
    }
  }
}

此配置文件明确了如何启动 MCP 服务器,涵盖了可选参数和环境变量。您需要将 [Your CF API Endpoint e.g. api.sys.mycf.com][Your CF User][Your CF Password][Your Org][Your Space] 替换为您自己的 Cloud Foundry 凭据和资源路径。

通过这样的配置,您能够将 MCP 服务器与您的 Cloud Foundry 环境集成,并借助其功能实现交互。

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