MCP-APIKit

by scarqin
Verified

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Integrations

  • Used for environment variable configuration of the MCP-APIKit server

  • Used for repository hosting and cloning the MCP-APIKit project

  • Used for package management in the MCP-APIKit project

MCP-API工具包

MCP-APIKit 是一个专为 Windsurf IDE 集成设计的微服务控制平面 (MCP) 服务器。它从 Eolink OpenAPI 获取 API 信息并将其提供给 IDE 的 MCP 客户端,从而实现开发环境中 API 的无缝集成和管理。

特征

  • 连接到 Eolink OpenAPI 以检索 API 规范
  • 将 API 信息公开为 MCP 资源
  • 提供 API 发现和探索工具
  • 支持 Windsurf IDE 中的 API 测试和集成
  • 实现模型上下文协议 (MCP) 以实现标准化通信

安装

# Clone the repository git clone https://github.com/yourusername/mcp-apikit.git cd mcp-apikit # Install dependencies pnpm install # Build the project pnpm run build

配置

在根目录中创建一个.env文件,其中包含以下变量:

EOLINK_API_KEY=your_eolink_api_key EOLINK_BASE_URL=https://api.eolink.com SPACE_ID=your_space_id PROJECT_ID=your_project_id

用法

启动服务器

pnpm start

服务器将在您的.env文件中指定的端口上启动(默认值:3000)。

调试

npx @modelcontextprotocol/inspector node dist/index.js

从 Windsurf IDE 连接

pnpm build

在您的 Windsurf IDE 设置中,添加一个具有以下配置的新 MCP 服务器:

"mcpServers": { "apikit": { "command": "node", "args": [ "/Users/{userName}/Documents/mcp-apikit/dist/index.js" ], "env": {} } }

API 资源

MCP-APIKit 服务器公开以下资源:

  • api://projects - 列出所有 API 项目
  • api://projects/{projectId} - 获取特定项目的详细信息
  • api://projects/{projectId}/apis - 列出项目中的所有 API
  • api://projects/{projectId}/apis/{apiId} - 获取特定 API 的详细信息

工具

该服务器提供以下工具:

  • search-apis - 在所有项目中搜索 API
  • test-api - 使用自定义参数测试 API 端点
  • import-api - 将 API 规范从 Eolink 导入到您的项目

发展

# Run in development mode with hot reloading npm run dev

执照

麻省理工学院

-
security - not tested
F
license - not found
-
quality - not tested

微服务控制平面服务器通过从 Eolink OpenAPI 获取 API 信息并将其公开为 MCP 资源与 Windsurf IDE 集成,从而实现开发环境中的无缝 API 集成和管理。

  1. Features
    1. Installation
      1. Configuration
        1. Usage
          1. Starting the Server
          2. Debug
          3. Connecting from Windsurf IDE
        2. API Resources
          1. Tools
            1. Development
              1. License

                Appeared in Searches

                ID: 76hjmqg6wz