with one click
api-server
API Server - DeepSeek/Kimi 多模型 Agent,131个MCP工具,支持 tool calling 自动循环
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
API Server - DeepSeek/Kimi 多模型 Agent,131个MCP工具,支持 tool calling 自动循环
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| name | api-server |
| description | API Server - DeepSeek/Kimi 多模型 Agent,131个MCP工具,支持 tool calling 自动循环 |
独立 HTTP API 服务器,用 DeepSeek/Kimi 等模型 + 131个MCP工具执行复杂任务。 Claude 做大脑规划,API Server 做执行层。
# 默认 Kimi K2.5
bash /Users/yay/workspace/genspark-agent/server-v2/start-api.sh
# 指定模型
bash start-api.sh kimi # Kimi K2.5 (推荐,3轮完成,格式好)
bash start-api.sh deepseek # DeepSeek Chat (稳定,4轮完成)
bash start-api.sh kimi-think # Kimi K2 Thinking (推理增强)
| 端点 | 方法 | 说明 |
|---|---|---|
| / | GET | 健康检查,返回模型名、工具数 |
| /tools | GET | 列出所有可用工具 |
| /v1/agent | POST | Agent Loop:发 prompt,自动调工具,返回结果 |
| /v1/tool | POST | 直接调用单个工具 |
curl -s -X POST http://localhost:8780/v1/agent \
-H "Content-Type: application/json" \
-d '{"prompt":"List directories in /Users/yay/workspace"}'
curl -s -X POST http://localhost:8780/v1/agent \
-H "Content-Type: application/json" \
-d '{"prompt":"Read TODO.md", "tools":["read_text_file","write_file","list_directory"]}'
curl -s -X POST http://localhost:8780/v1/tool \
-H "Content-Type: application/json" \
-d '{"tool":"list_directory","params":{"path":"/Users/yay/workspace"}}'
| 指标 | Kimi K2.5 | DeepSeek Chat |
|---|---|---|
| 轮次效率 | 3轮 | 4轮 |
| 工具调用 | 精准 | 精准 |
| 计数准确 | 较好 | 偏差大 |
| 输出格式 | 表格+结构化 | 纯文本 |
| 思维链 | 有 reasoning_content | 无 |
| 适合场景 | 精准任务、报告 | 大量输出、批量 |
位于/Users/yay/workspace/genspark-agent/server-v2/.env.api`:DEEPSEEK_API_KEY=sk-xxx
KIMI_API_KEY=sk-xxx
LLM_FORMAT=openai
API_PORT=8780
Claude (SSE/浏览器) API Server (HTTP)
| |
| 规划、判断、审查 | 执行、工具调用
| |
+--- curl POST /v1/agent --> LLM API (Kimi/DeepSeek)
|
+-- tool_calls --> MCP Hub (131工具)
| |
| +-- filesystem (14)
| +-- playwright (22)
| +-- shell (1)
| +-- tree-sitter (26)
| +-- fetch (1)
| +-- memory (9)
| +-- ssh-oracle (7)
| +-- ssh-cpanel (7)
| +-- github (26)
| +-- chrome-devtools (26)
| +7 (2)
|
+-- tool_result --> 下一轮 LLM
|
+-- 最终文本 --> 返回给 Claude
curl -s -X POST http://localhost:8780/v1/agent \
-H "Content-Type: application/json" \
-d '{"prompt":"Read /path/to/file and summarize it"}'
curl -s -X POST http://localhost:8780/v1/agent \
-H "Content-Type: application/json" \
-d '{"prompt":"List all JS files in genspark-agent/server-v2, count lines in each, write a report to /private/tmp/report.md"}'
curl -s -X POST http://localhost:8780/v1/agent \
-H "Content-Type: application/json" \
-d '{"prompt":"Write a Node.js script at /private/tmp/hello.js that fetches https://api.github.com and prints the response"}'
curl -s -X POST http://localhost:8780/v1/agent \
-H "Content-Type: application/json" \
-d '{"prompt":"SSH to oracle server and check disk usage and running processes"}'
watchdog (port 8766) 提供 /upload-payload 端点:
AI 视频全自动生产线 - opus.pro 视频生成 + OpusClip 字幕/元数据 + Genspark 高质量缩略图 + viaSocket → YouTube,全程零成本
Cloudflare Pages 静态网站部署,支持命令行一键部署、API 部署、项目管理
Genspark AI 图片生成器 - 基于 nano-banana-pro 模型,支持任意比例、带文字渲染、自动上传公开托管,可用于缩略图/封面/社交媒体/插图等场景
Supabase 后端即服务 (BaaS),提供 PostgreSQL 数据库、身份认证、实时订阅、存储等,免费套餐适合小项目
微信桌面版命令行控制工具,通过 macOS Accessibility API 读取聊天列表、消息内容,搜索联系人,发送消息
手机推送通知工具,基于 ntfy.sh 免费服务,一行命令推送到手机