From 7fcba52782306e43661453bdc43c589cf4e2ca3f Mon Sep 17 00:00:00 2001 From: Joaquim Verges Date: Tue, 7 Oct 2025 00:06:09 +1300 Subject: [PATCH] [Docs] Update MCP tool filtering to use comma-separated list --- apps/portal/src/app/ai/mcp/page.mdx | 4 ++-- apps/portal/src/app/payments/x402/agents/page.mdx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/portal/src/app/ai/mcp/page.mdx b/apps/portal/src/app/ai/mcp/page.mdx index a982e39cf1b..cac91f1ad23 100644 --- a/apps/portal/src/app/ai/mcp/page.mdx +++ b/apps/portal/src/app/ai/mcp/page.mdx @@ -17,10 +17,10 @@ https://api.thirdweb.com/mcp?secretKey= Make sure to keep your secret key safe and never share it with anyone. -By default, all tools are available. You can filter the tools available by passing multiple `tool` query parameter. +By default, all tools are available. You can filter the tools available by passing a comma-separated list of tools as a query parameter. ```http -https://api.thirdweb.com/mcp?secretKey=&tool=fetchWithPayment&tool=getWalletBalance +https://api.thirdweb.com/mcp?secretKey=&tools=fetchWithPayment,getWalletBalance ``` You can find all available tools at the bottom of this page. diff --git a/apps/portal/src/app/payments/x402/agents/page.mdx b/apps/portal/src/app/payments/x402/agents/page.mdx index 36fd1b53aca..84e0d9b4b68 100644 --- a/apps/portal/src/app/payments/x402/agents/page.mdx +++ b/apps/portal/src/app/payments/x402/agents/page.mdx @@ -9,7 +9,7 @@ Easily create AI agents that can pay for any x402-compatible API calls. The easiest way to equip your agents with the ability to pay for API calls is to use the [remote MCP server](/ai/mcp) and provide the tools to your agent. -The MCP server comes with all the tools by default, but you can filter the tools available by passing multiple `tool` query parameter. +The MCP server comes with all the tools by default, but you can filter the tools available by passing a comma-separated list of tools as a query parameter. In this example, we create a ReAct agent using LangChain and filter the MCP tools to `fetchWithPayment` and `getWalletBalance` as the only 2 tools we give our agent. You can view the full list of available tools [here](/ai/mcp#available-tools). @@ -33,7 +33,7 @@ const model = new ChatOpenAI({ const mcpServers = { thirdweb: { - url: `https://api.thirdweb.com/mcp?secretKey=&tool=fetchWithPayment&tool=getWalletBalance` + url: `https://api.thirdweb.com/mcp?secretKey=&tools=fetchWithPayment,getWalletBalance` } }; @@ -59,7 +59,7 @@ from langgraph.prebuilt import create_react_agent client = MultiServerMCPClient( { "thirdweb": { - "url": "https://api.thirdweb.com/mcp?secretKey=&tool=fetchWithPayment&tool=getWalletBalance", + "url": "https://api.thirdweb.com/mcp?secretKey=&tools=fetchWithPayment,getWalletBalance", } } )