skills/api-server/SKILL.md
API Server - DeepSeek/Kimi 多模型 Agent,131个MCP工具,支持 tool calling 自动循环
npx skillsauth add birdywen/genspark-agent api-serverInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
独立 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 端点:
tools
微信桌面版命令行控制工具,通过 macOS Accessibility API 读取聊天列表、消息内容,搜索联系人,发送消息
data-ai
守护进程控制,用于重启 genspark-agent 主服务器
tools
# viaSocket Flow 自动化管理 Skill ## 概述 通过逆向工程 viaSocket 平台 API,实现 agent 自主搜索插件、创建/配置/发布/执行自动化工作流。viaSocket 为 agent 提供通往数百个 SaaS 服务的云端操作层,flow 发布后 7x24 运行,无需本地机器在线。 ## 能力 - 插件发现: 搜索 50+ 外部插件 + 10 个内置工具 - Flow 生命周期: 创建 - 添加步骤 - 写入代码 - 发布 - 执行 - 查看日志 - 步骤类型: function, plugin, ifBlock, variable, comment, response, api, break - 执行方式: Webhook GET/POST, Dry-run, 定时触发 - 已授权服务: Google Sheets, YouTube, viaSocket Table, viaSocket Utilities, Gtwy ## 文件结构 skills/viasocket/ SKILL.md - 本文件 API
databases
Supabase 后端即服务 (BaaS),提供 PostgreSQL 数据库、身份认证、实时订阅、存储等,免费套餐适合小项目