Aller au contenu
A pixelated, geometric graphic depicting interconnected computer servers, each surrounded by angular shield-like shapes. One server displays a browser icon linked to "Playwright MCP tools," while a network grid above shows data flow, emphasizing a connection to a "https://azure.microsoft.com" website icon. The design uses five corporate-style colors in a minimalist layout without text or human figures.
Generated by 🤖 AI

Nous avons ajouté la prise en charge de la configuration des serveurs MCP dans les métadonnées des scripts et leur encapsulation avec des agents. Par conséquent, vous pouvez désormais exécuter plusieurs serveurs MCP en parallèle, chacun avec son propre agent.

script({
title: "Wraps the playwright MCP server with an agent.",
mcpAgentServers: {
playwright: {
description:
"An agent that uses playwright to run browser commands.",
command: "npx",
args: ["--yes", "@playwright/mcp@latest", "--headless"],
instructions:
"Use the playwright tools as the Browser Automation Tools.",
},
},
});
$`Extract the OpenAI pricing from https://azure.microsoft.com/en-us/pricing/details/cognitive-services/openai-service/`;

Vous ne voulez pas utiliser l’abstraction des agents ? Vous pouvez également injecter directement le serveur MCP dans l’invite en utilisant le champ mcpServers.

mcpServers
script({
title: "Uses playwright MCP tools.",
mcpServers: {
playwright: {
command: "npx",
args: ["--yes", "@playwright/mcp@latest", "--headless"],
},
},
});
$`Extract the OpenAI pricing from https://azure.microsoft.com/en-us/pricing/details/cognitive-services/openai-service/`;