Code mode / bulk tool execution
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 28/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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])
- Lenguaje dominante
- Bikeshed
- Estrellas
- 4.7k
- Forks
- 328
- Merge medio
- 2 d 15 h
- PR fusionados (30 d)
- 16
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de webmachinelearning/webmcp
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 72/100
webmachinelearning/webmcp#360 ·
Los mantenedores suelen responder en 1 día
-
Say how an agent should weigh annotations that the page wrote about itselfPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
webmachinelearning/webmcp#353 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
webmachinelearning/webmcp#343 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Agenda+ i18n-tracker
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
webmachinelearning/webmcp#273 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
a11y-tracker Agenda+
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
webmachinelearning/webmcp#272 · 4 comentarios · 2 reacciones ·
Los mantenedores suelen responder en 1 día
Todos los issues de webmachinelearning/webmcp
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 87/100
huggingface/smolagents#3045 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
router-for-me/CLIProxyAPI#6851 ·
Los mantenedores suelen responder en 1 día