Python MCP workflow tools for host-controlled planning workflows
Project description
Ymcp
Trae / 通用 LLM 宿主可用的 MCP 工具包,提供 ydeep、yplan、ydo 等 workflow tools,以及基于 MemPalace 的长期记忆能力。
核心模型
- tool 负责轻 gate:阶段入口、统一 handoff、Elicitation 选项、必要时产出最终交接 artifact
- skill 负责思考:具体推理过程由 LLM 自主完成
- LLM 自主循环:Ymcp 不维护重型服务端状态机,只提供关键流转约束
- 中间阶段不回灌复杂状态:同一调用链内由 LLM 自己承接上下文
- handoff.options 更接近菜单项:重点是
value、title、description、recommended
当前 workflow tools
ydeep- 对应 prompt:
deep-interview - 输入核心:
brief - 输出核心:
skill_content、统一handoff
- 对应 prompt:
yplan- 对应 prompts:
planner→architect→critic - 输入核心:
task - 输出核心:阶段
skill_content、统一handoff - 阶段链路:
yplan -> yplan_architect -> yplan_critic -> yplan_complete
- 对应 prompts:
ydo- 对应 prompt:
ralph - 输入核心:无业务输入(依赖当前调用链上下文)
- 输出核心:
skill_content、统一handoff
- 对应 prompt:
Handoff contract
handoff.options是下一步动作的唯一权威源- tool 只声明“有哪些下一步选项”,不声明自动参数映射协议
- 推荐宿主按固定约定串联阶段,而不是让 LLM 或 tool 维护复杂路由协议
ydeep_complete默认只进入yplan,不再直接跳到ydoyplan只接受task;如果来源是clarified_artifact,应由宿主先转换为普通taskyplan_critic只声明两个合法下一步:yplan_critic或yplan_completeyplan_critic不强制固定APPROVE/REVISE协议;由 LLM 自行判断继续评审还是完成收口yplan_complete/ydo_complete现在是更彻底的无输入收口阶段:调用它本身就表示 LLM 认为当前阶段已结束- 只有
ydeep_complete仍产出clarified_artifact;planning / execution 的 complete 阶段不再要求输入摘要或构造中间 artifact
设计边界
- MCP tool 提供结构化阶段边界与下一步选项
- LLM 先完整思考与输出,再由宿主点击 complete / next-step 进入下一个 workflow
- complete 类工具(
ydeep_complete/yplan_complete/ydo_complete)在关键节点提供 handoff 选项,并应通过 Elicitation 向用户展示菜单 host_controls仅表达当前返回实际依赖的宿主能力status表示当前 tool 调用结果;meta.required_host_action只表达宿主当前是“继续思考”还是“展示并收口”handoff.options是下一步动作的唯一权威源;allowed_next_actions仅为派生兼容视图handoff.options应被视为服务端给出的菜单,而不是让 LLM 自己构造的路由对象
安装
pip install ymcp
更新
pip install -U ymcp
一键初始化 Trae 与默认记忆库
ymcp init-trae
记忆
回答历史事实前先查 mempalace_search / mempalace_get_drawer;任务完成后把稳定偏好、项目约定、重要决策和踩坑结论写入 mempalace_add_drawer 或 mempalace_diary_write。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ymcp-0.3.0.tar.gz.
File metadata
- Download URL: ymcp-0.3.0.tar.gz
- Upload date:
- Size: 43.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b78b040c9b55569caf6ec8331a7415235273409ffed7f2a7a76fc77c583d02c
|
|
| MD5 |
8f22ad5c1c3bd0a1a12b8bd592265b91
|
|
| BLAKE2b-256 |
624d63a93ec460610d44d8ba8b50502c54273fbf53e82434e162207c681f9c03
|
Provenance
The following attestation bundles were made for ymcp-0.3.0.tar.gz:
Publisher:
release.yml on CodeyLife/Ymcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ymcp-0.3.0.tar.gz -
Subject digest:
8b78b040c9b55569caf6ec8331a7415235273409ffed7f2a7a76fc77c583d02c - Sigstore transparency entry: 1390933282
- Sigstore integration time:
-
Permalink:
CodeyLife/Ymcp@731ab2defbe8601348c9a4b212b9e7bc2050f1c3 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/CodeyLife
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@731ab2defbe8601348c9a4b212b9e7bc2050f1c3 -
Trigger Event:
release
-
Statement type:
File details
Details for the file ymcp-0.3.0-py3-none-any.whl.
File metadata
- Download URL: ymcp-0.3.0-py3-none-any.whl
- Upload date:
- Size: 45.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a037af20a8af1f0be14f7b85cd111d549116e074806e27bbcd1b8d47a5187b26
|
|
| MD5 |
bc392b016e0d359bf1d53efd43192bc5
|
|
| BLAKE2b-256 |
131d4fb5f2a15f806dd345fd928b7ae3522febf0bcea7b07e193358903a15622
|
Provenance
The following attestation bundles were made for ymcp-0.3.0-py3-none-any.whl:
Publisher:
release.yml on CodeyLife/Ymcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ymcp-0.3.0-py3-none-any.whl -
Subject digest:
a037af20a8af1f0be14f7b85cd111d549116e074806e27bbcd1b8d47a5187b26 - Sigstore transparency entry: 1390933366
- Sigstore integration time:
-
Permalink:
CodeyLife/Ymcp@731ab2defbe8601348c9a4b212b9e7bc2050f1c3 -
Branch / Tag:
refs/tags/v0.3.1 - Owner: https://github.com/CodeyLife
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@731ab2defbe8601348c9a4b212b9e7bc2050f1c3 -
Trigger Event:
release
-
Statement type: