Code mode / bulk tool execution
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with the Pizza Maker demo, its individual WebMCP tools, and the proof of concept linked in the issue. Review WebMCP's tool and spec extension points to determine where bulk execution and tool annotations would belong. Done means agreeing on a concrete API and specification change, then implementing them with examples and tests; the issue currently leaves implementation location and requirements unresolved.
由索引模型根据 Issue 内容生成。
描述
Code mode or code execution with MCP is a concept that was more broadly shared late last year:
https://www.anthropic.com/engineering/code-execution-with-mcp
https://blog.cloudflare.com/code-mode/
I was wondering how this concept could be applied to WebMCP so I was tinkering with it over at https://github.com/GoogleChromeLabs/webmcp-tools/pull/287
The idea is simple: instead of (or in addition to) exposing every single WebMCP tool to an agent, there's a single execute_tools tool that allows the agent to execute N tools in one go.
Let's take this Pizza Maker demo as an example. To create a pizza, you'd normally call tools such as set_pizza_size, set_pizza_style, and add_topping one after the other. That's a lot of roundtrips and a lot of tokens. The same task with execute_batch could be accomplished with a single tool call execute_tools([set_pizza_size, set_pizza_style, add_topping]).
Early testing shows greatly reduced number of roundtrips, token usage, and increased speed. Which is why I think this could be really interesting for both website developers as well as the agent developers. Such an execute_tools function could be implemented on either side.
Of course this works best for more deterministic scenarios that don't involve dynamic tool additions or page navigations. So it made me wonder how the WebMCP spec could help in this case. For example with a new ToolAnnotation to mark tools suitable for this kind of batching. (See also #176). Or a way to define meta tools such as make_pizza, which under the hood would be execute_tools([set_pizza_size, set_pizza_style, add_topping])
- 主要语言
- Bikeshed
- 星标
- 4.7k
- 派生
- 328
- 平均合并
- 2 天 9 小时
- 30 天内合并 PR
- 15
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
webmachinelearning/webmcp 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
webmachinelearning/webmcp#362 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 72/100
webmachinelearning/webmcp#360 · 1 条评论 ·
维护者通常 1 天内回复
-
Say how an agent should weigh annotations that the page wrote about itself可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
webmachinelearning/webmcp#353 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 67/100
webmachinelearning/webmcp#343 · 1 个 reaction ·
维护者通常 1 天内回复
-
Agenda+ i18n-tracker
难度 2/5 1-3 小时 新手友好度 75/100
webmachinelearning/webmcp#273 · 3 条评论 ·
维护者通常 1 天内回复
查看 webmachinelearning/webmcp 的全部 Issue
相似的 Issue
-
area: backend enhancement payments
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 79/100
-
triage
难度 2/5 1-3 小时 新手友好度 74/100
blockscout/blockscout#14982 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 79/100
galaxyproject/loom#616 ·
维护者通常 1 天内回复
-
area/config comp/tools P2 platform/telegram type/bug
难度 2/5 1-3 小时 新手友好度 74/100
NousResearch/hermes-agent#145412 ·
维护者通常 1 天内回复