Repository navigation
feat(mcp): MCP server——让 AI agent 直接话题进、成片出 - #19
Merged
Merged
Conversation
- 五个工具:create_video / render_project / job_status / list_projects / doctor;任务化,状态落盘,server 重启后旧任务如实报 interrupted - 任务跑 CLI 的 new --json / run --json(新增结构化末行),不抄第三份编排;质检没过但片子出来了不算失败;失败原因取最后一条 ⛔ - 协议自实现(initialize / ping / tools/list / tools/call),不引 SDK;server 名 openshorts-kaipian - README 中英、SKILL.md、CHANGELOG 真跑:MCP 用本机 Ollama 写脚本 60 s → render_project 285 s 出片(抽帧看过);npm pack 装出来的包里可用;真 Claude Code 注册后 agent 调用结果正确。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
对标同名项目最强的分发渠道:agent 直接调用。我们的引擎本来就出自 agent 编排,做起来顺。
改动
openshorts mcp:stdio 的 MCP server,五个工具create_video/render_project/job_status/list_projects/doctor~/.openshorts/mcp-jobs/;server 被客户端重启后旧任务如实报interrupted;子进程不 detach,server 退出一并收掉new --json/run --json(新增:stdout 末行@@json {...}),不抄第三份编排done+qualityPass=false,不算失败;失败原因取日志里最后一条 ⛔ 穿透给 agentopenshorts-kaipian,与注册表里不相关的io.github.mutonby/openshorts分得开验证
render_project出片(285 s,1080×1920,抽四帧看过)→job_status拿到全部路径与质检提醒npm pack→ 空目录安装 → 装出来的包里npx openshorts mcp可用claude mcp add注册后,claude -p让 agent 调list_projects+doctor,回答与事实一致