MCP-API工具包
MCP-APIKit 是一个专为 Windsurf IDE 集成设计的微服务控制平面 (MCP) 服务器。它从 Eolink OpenAPI 获取 API 信息并将其提供给 IDE 的 MCP 客户端,从而实现开发环境中 API 的无缝集成和管理。
特征
连接到 Eolink OpenAPI 以检索 API 规范
将 API 信息公开为 MCP 资源
提供 API 发现和探索工具
支持 Windsurf IDE 中的 API 测试和集成
实现模型上下文协议 (MCP) 以实现标准化通信
Related MCP server: MCP-FEISHU
安装
# 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- 列出项目中的所有 APIapi://projects/{projectId}/apis/{apiId}- 获取特定 API 的详细信息
工具
该服务器提供以下工具:
search-apis- 在所有项目中搜索 APItest-api- 使用自定义参数测试 API 端点import-api- 将 API 规范从 Eolink 导入到您的项目
发展
# Run in development mode with hot reloading
npm run dev执照
麻省理工学院
Resources
Looking for Admin?
Admins can modify the Dockerfile, update the server description, and track usage metrics. If you are the server author, to access the admin panel.