用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Birdywen/genspark-agent --skill api-server命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| 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 端点: