Repository navigation
dsh-cursor-subscription v0.6.2
dsh-cursor-subscription v0.6.2
Parallel Cursor MCP tool calls now resume cleanly instead of failing the turn
with Tool result not provided, and three shipped features that a bad merge
reverted on master are back.
No published version ever contained the revert. 0.6.1 on npm is unaffected;
the regression existed only in git master between the merge of PR #3
(ec5e6af) and this release.
Fixed
Parallel MCP tool calls no longer produce phantom results
- Affected: any 0.6.x build containing the PR #3 merge. When Cursor issued
more than one MCP tool call in a single turn, tool continuation failed with
Tool result not provided, or a tool call appeared with no result of its own. - Cause: three defects in the same code path.
- Every MCP exec reused one fixed DSH block index (
TOOL_BLOCK_INDEX), so
the agent loop kept only a single tool-call block while the bridge still
waited for every sibling call. - Incomplete
partialToolCallframes were emitted as tool-call blocks before
the call had an id or name, creating nameless blocks that competed with the
realmcpArgsframes. - Empty or placeholder MCP execs were accepted as pending bridge entries, so
the resume path kept waiting on calls that could never complete.
- Every MCP exec reused one fixed DSH block index (
- Fix: partial tool calls are now buffered and never emitted on their own;
each valid call gets its own block index (TOOL_BLOCK_INDEX + pendingExecs.length)
so parallel calls stay distinct; an empty or unknown MCP exec is answered
immediately with anMcpErrorinstead of becoming a pending entry; and the
tool name is resolved against the run's text tools with the arguments
normalized before the block is emitted.
Features restored after the PR #3 merge reverted them
PR #3 was authored from a tree older than 0.5.8, so merging it deleted later
work. v0.6.2 restores all of it while keeping the MCP fix:
- The account-channel mount fix is back. The channel is mounted again
through a registry owner Context that declareswebServer, with
connection.rpc.handlekept as a fallback for a Connection plugin that
declareswebServeritself. Without this, DSH 0.1.5-rc.1 fails the entire
plugin tree with
cannot get property "webServer" without inject. If you build frommaster
atec5e6af, this is the failure you would hit. - The panel's version label is back. The
versionendpoint and the exported
VERSIONwere deleted whilelib/client.jskept requesting them, which
silently dropped thev0.6.xchip next to the Settings → Cursor title. - Image input is back.
prepareCursorImages, the durable-attachment
resolver, theimageinput modality, and the conversation-history image
frames were deleted, so every model advertised text only.
Changed
- Tests: 71 in total — 42 agent-protocol, 8 panel-language contract,
6 channel mount, 6 version label, 6 native fetch, 3 image input. The
agent-protocol suite gained coverage for the parallel MCP path: valid calls
get distinct block indexes, empty execs are rejected, and no phantom call
survives the resume. - Provenance: the MCP fix comes from PR #3 by
@dengzhilong; the reverts that merge carried
are undone inadde4a5.
Before installing: pnpm's 24-hour release-age gate
pnpm 11+ ships a built-in minimumReleaseAge of 24 hours, so a range such as
^0.5.0 never selects a version published within the last day. Right after a
release, a plain dsh plugin --profile web add dsh-cursor-subscription resolves
to the newest release older than 24 hours. Either request the exact version,
or exempt the package by name in the profile's pnpm-workspace.yaml:
minimumReleaseAgeExclude:
- dsh-cursor-subscriptionThe exemption keeps the gate active for every other package. See
AGENTS.md
for the full install and verification procedure.
Install or upgrade
# exact version (works regardless of the 24-hour gate)
dsh plugin --profile web add dsh-cursor-subscription@0.6.2
# or, once the release-age exemption above is in place
dsh plugin --profile web add dsh-cursor-subscription
dsh plugin --profile web update dsh-cursor-subscription
dsh plugin --profile web list dsh-cursor-subscription --depth 0
dsh --profile web --dump-configRestart DSH manually afterwards (patchReload does not pick up new bundles or
client modules), then check:
- Settings → Cursor loads, with
v0.6.2next to the title. cursor-subscriptionappears in the model picker, and sign-in, usage and
model cards work as before.- A turn that triggers several MCP tool calls at once completes without
Tool result not provided.
Compatibility and known notes
- Restoring the channel mount matters on DSH 0.1.5-rc.1, where
@deepseek-ai/dsh-client-connectiondeclarescredentialsalone. On
0.1.0-rc.6 theauthority: "loopback"registry option still exists. - The account channel reuses Connection's envelope, trust fence, and browser
authentication, so the browser half needed no change. - Image input requires the durable attachment service; without it the request
fails asUNSUPPORTED_CONTENTrather than silently dropping the image. - Cursor's Agent protocol remains undocumented and changes over time; a
transport orCURSOR_ERRORfailure on the chat path is expected to need a
plugin update.
dsh-cursor-subscription v0.6.2
并行的 Cursor MCP 工具调用现在能正常续跑,不再以 Tool result not provided
结束整轮;同时,一次错误合并从 master 上抹掉的三项已发布功能全部回归。
没有任何已发布版本受影响。 npm 上的 0.6.1 是好的;那次回退只存在于 git
master 上 PR #3 合并(ec5e6af)之后到本版本之前的区间里。
修复
并行 MCP 工具调用不再产生幽灵结果
- 影响范围:任何包含 PR #3 合并的 0.6.x 构建。当 Cursor 在一轮里发出多个
MCP 工具调用时,工具续跑会以Tool result not provided失败,或者出现一个
没有对应结果的工具调用。 - 根因:同一条代码路径上的三个缺陷。
- 所有 MCP exec 共用一个固定的 DSH block index(
TOOL_BLOCK_INDEX),于是
agent loop 只保留了一个工具调用块,而 bridge 仍在等待每一个兄弟调用。 - 尚未完整的
partialToolCall帧在拿到 id 与名字之前就被当成工具调用块发出,
产生了与真正的mcpArgs帧竞争的匿名块。 - 空的/占位的 MCP exec 会被登记为 pending bridge 条目,于是续跑路径一直等着
永远不可能完成的调用。
- 所有 MCP exec 共用一个固定的 DSH block index(
- 修法:partial 工具调用只缓冲、不再单独发出;每个有效调用拿到自己的
block index(TOOL_BLOCK_INDEX + pendingExecs.length),并行调用之间不再互相
覆盖;空或未知的 MCP exec 立刻回一个McpError,而不是变成 pending 条目;
工具名先在本轮可用的文本工具里解析、参数归一化后再发出该块。
恢复被 PR #3 合并回退的功能
PR #3 是从早于 0.5.8 的树上做出来的,合并它等于删掉了后续的工作。v0.6.2 把这些
全部恢复,同时保留 MCP 修复:
- 账户通道挂载修复回归。 通道重新通过一个声明了
webServer的注册 owner
Context 挂载,并对自行声明webServer的 Connection 版本保留
connection.rpc.handle回退。缺了它,DSH 0.1.5-rc.1 会让整棵插件树加载失败:
cannot get property "webServer" without inject。如果你从ec5e6af的
master构建,命中的就是这个错误。 - 面板版本号回归。
version端点与导出的VERSION被删除,而
lib/client.js仍在请求它们,于是 设置 → Cursor 标题旁的v0.6.x
徽标静默消失。 - 图片输入回归。
prepareCursorImages、持久化附件解析器、image输入模态
以及会话历史里的图片帧都被删除,导致所有模型只声明文本能力。
其他变更
- 测试:共 71 个——协议 42、面板文案契约 8、通道挂载 6、版本号 6、
native fetch 6、图片输入 3。协议套件新增了并行 MCP 路径的覆盖:有效调用拿到
互不相同的 block index、空 exec 被拒绝、续跑后不残留幽灵调用。 - 来源:MCP 修复来自 @dengzhilong 的 PR #3;
该合并带进来的回退在adde4a5中撤销。
安装前必读:pnpm 的 24 小时发布年龄门限
pnpm 11 及以后内置了 24 小时的 minimumReleaseAge 供应链防护:形如 ^0.5.0
的版本范围永远不会选中最近 24 小时内发布的版本。所以在刚发布完之后执行
dsh plugin --profile web add dsh-cursor-subscription,解析到的是「发布超过 24 小时的
最新版本」。解决方式二选一:安装时显式指定版本,或在 profile 的
pnpm-workspace.yaml 里按包名豁免:
minimumReleaseAgeExclude:
- dsh-cursor-subscription按包名豁免只对这个包放行,其他依赖仍受该防护约束。完整的安装与验收流程见
AGENTS.md。
安装 / 升级
# 显式指定版本(不受 24 小时门限影响)
dsh plugin --profile web add dsh-cursor-subscription@0.6.2
# 或者先加上前面的按包名豁免,再用普通命令
dsh plugin --profile web add dsh-cursor-subscription
dsh plugin --profile web update dsh-cursor-subscription
dsh plugin --profile web list dsh-cursor-subscription --depth 0
dsh --profile web --dump-config之后手动重启 DSH(patchReload 不会重载新增 bundle 与客户端模块),然后确认:
- 设置 → Cursor 能打开,标题旁显示
v0.6.2; - 模型选择器里出现
cursor-subscription,登录、用量与模型卡片照旧可用; - 一轮里触发多个 MCP 工具调用时能正常完成,不再报
Tool result not provided。
兼容性与已知说明
- 恢复通道挂载在 DSH 0.1.5-rc.1 上尤为关键:该版本的
@deepseek-ai/dsh-client-connection只声明credentials。在 0.1.0-rc.6 上,
注册选项authority: "loopback"仍然存在。 - 账户通道复用 Connection 的信封、信任栅栏与浏览器鉴权,因此浏览器侧无需改动。
- 图片输入依赖持久化附件服务;没有该服务时请求会以
UNSUPPORTED_CONTENT
失败,而不是静默丢弃图片。 - Cursor 的 Agent 协议仍是未公开接口且会变化;聊天链路上的传输错误或
CURSOR_ERROR通常意味着需要更新插件。