docs(ai): connect-mcp — api actions have no headless dispatch either#3128
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The exposure rules and the troubleshooting table listed `url` / `modal` / `form` as the types that never reach `list_actions`, omitting `api`. isHeadlessInvokableAction only admits `script` (with target or body) and `flow` (with an automation service) — everything else, `api` included, returns false in the open framework. (`api` dispatch exists only in the ObjectOS runtime bridge, which actions-as-tools.mdx already scopes correctly.) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
xuyushun441-sys
force-pushed
the
docs/api-type-fix
branch
from
July 17, 2026 12:23
a91959e to
196e029
Compare
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.
自查发现 #3093 新增的
ai/connect-mcp.mdx有一处不完整:暴露规则与排错表把"永远不出现在list_actions"的类型列为url/modal/form,漏了api。源码
packages/runtime/src/http-dispatcher.ts:895-901isHeadlessInvokableAction只放行两种:script(需target或body)与flow(需target+ automation 服务),其余一律 false——注释也明写 "UI-only types (url,modal,form) andapihave no server dispatch here"。(
api的 HTTP 派发只存在于 ObjectOS 的 bridge,actions-as-tools.mdx:110已正确标注为 "ObjectOS runtime only",无需改。)现改为正面表述:开源框架里恰好两种类型可 headless 调用,并列全不可调用的四种。
🤖 Generated with Claude Code