import { mcplug } from "@mcplug/client/ai"; const tools = await mcplug({ token, id: "01JSM2SM2KDS08YKKH2ZZAX9ME" }); const { text, response } = await generateText({ model: openai("gpt-4o"), system: "You are a friendly assistant!", maxSteps: 10, messages: [{ role:"user", content:"Hello, what is the weather in Tokyo?" }], tools });
{ "mcpServers": { "mcplug": { "command": "npx", "args": [ "-y", "@mcplug/client@latest", "01JSM2SM2KDS08YKKH2ZZAX9ME" ], } } }