Skip to content

Commit fbed4be

Browse files
[Docs] Update MCP tool filtering to use comma-separated list (#8189)
1 parent 5a26217 commit fbed4be

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

apps/portal/src/app/ai/mcp/page.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>
1717

1818
Make sure to keep your secret key safe and never share it with anyone.
1919

20-
By default, all tools are available. You can filter the tools available by passing multiple `tool` query parameter.
20+
By default, all tools are available. You can filter the tools available by passing a comma-separated list of tools as a query parameter.
2121

2222
```http
23-
https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>&tool=fetchWithPayment&tool=getWalletBalance
23+
https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>&tools=fetchWithPayment,getWalletBalance
2424
```
2525

2626
You can find all available tools at the bottom of this page.

apps/portal/src/app/payments/x402/agents/page.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Easily create AI agents that can pay for any x402-compatible API calls.
99

1010
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.
1111

12-
The MCP server comes with all the tools by default, but you can filter the tools available by passing multiple `tool` query parameter.
12+
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.
1313

1414
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).
1515

@@ -33,7 +33,7 @@ const model = new ChatOpenAI({
3333

3434
const mcpServers = {
3535
thirdweb: {
36-
url: `https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>&tool=fetchWithPayment&tool=getWalletBalance`
36+
url: `https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>&tools=fetchWithPayment,getWalletBalance`
3737
}
3838
};
3939

@@ -59,7 +59,7 @@ from langgraph.prebuilt import create_react_agent
5959
client = MultiServerMCPClient(
6060
{
6161
"thirdweb": {
62-
"url": "https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>&tool=fetchWithPayment&tool=getWalletBalance",
62+
"url": "https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>&tools=fetchWithPayment,getWalletBalance",
6363
}
6464
}
6565
)

0 commit comments

Comments
 (0)