Back to MCP directory
publicPublicdnsLocal runtime

AI-Verse-MCP-Server

基于Spring-AI的AI服务管理平台,提供文件访问和API接口

article

README

🚀 人工智能领域中的MCP服务器注册机

这是一个基于Spring - AI构建的MCP Server注册机,主要用于管理和提供多个AI服务,能有效提升AI服务的管理效率与便捷性。

✨ 主要特性

  • 支持本地文件系统的访问,方便对本地文件进行操作。
  • 提供RESTful API接口,便于与其他系统进行交互。
  • 集成了Spring AI的功能,充分利用Spring AI的强大能力。

📦 安装指南

系统要求

  • Java 17或更高版本
  • Maven 3.6或更高版本
  • Spring Boot 3.2.3
  • Spring AI 0.8.1

配置说明

  1. 设置环境变量:
export OPENAI_API_KEY=your_api_key_here
  1. 确保共享文件目录存在:
mkdir -p /private/data/shared_files

📚 详细文档

API接口

获取TXT文件列表

GET /api/files/txt

获取文件内容

GET /api/files/content/{filePath}

🚀 快速开始

构建和运行

mvn clean package
java -jar target/mcp-server-1.0-SNAPSHOT.jar

⚠️ 重要提示

  • 请确保有适当的文件系统权限。
  • 需要配置有效的OpenAI API密钥。
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