Skip to content

Commit f043f1e

Browse files
[Docs] Rename listDiscoveryResources to listPayableServices in MCP tools (#8268)
1 parent d68da22 commit f043f1e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ Currently, the following tools are available:
245245
- `paymentsPurchase`
246246
- `getPaymentHistory`
247247
- `fetchWithPayment`
248-
- `listDiscoveryResources`
248+
- `listPayableServices`
249249
- `createToken`
250250
- `listTokens`
251251
- `getTokenOwners`

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The easiest way to equip your agents with the ability to pay for API calls is to
2020

2121
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.
2222

23-
In this example, we create a ReAct agent using LangChain and filter the MCP tools to `fetchWithPayment` and `listDiscoveryResources` as the only 2 tools we give our agent. You can view the full list of available tools [here](/ai/mcp#available-tools).
23+
In this example, we create a ReAct agent using LangChain and filter the MCP tools to `fetchWithPayment` and `listPayableServices` as the only 2 tools we give our agent. You can view the full list of available tools [here](/ai/mcp#available-tools).
2424

2525
<Tabs defaultValue="typescript">
2626

@@ -42,7 +42,7 @@ const model = new ChatOpenAI({
4242

4343
const mcpServers = {
4444
thirdweb: {
45-
url: `https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>&tools=fetchWithPayment,listDiscoveryResources`
45+
url: `https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>&tools=fetchWithPayment,listPayableServices`
4646
}
4747
};
4848

@@ -53,7 +53,7 @@ const tools = await client.getTools();
5353
const agent = createReactAgent({
5454
llm: model,
5555
tools: tools,
56-
prompt: "Use the fetchWithPayment tool to fetch any endpoint. Discover the available endpoints with the listDiscoveryResources tool."
56+
prompt: "Use the fetchWithPayment tool to fetch any endpoint. Discover the available endpoints with the listPayableServices tool."
5757
});
5858
```
5959

@@ -68,12 +68,12 @@ from langgraph.prebuilt import create_react_agent
6868
client = MultiServerMCPClient(
6969
{
7070
"thirdweb": {
71-
"url": "https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>&tools=fetchWithPayment,listDiscoveryResources",
71+
"url": "https://api.thirdweb.com/mcp?secretKey=<your-project-secret-key>&tools=fetchWithPayment,listPayableServices",
7272
}
7373
}
7474
)
7575
tools = await client.get_tools()
76-
agent = create_react_agent("openai:gpt-4.1", tools, prompt="Use the fetchWithPayment tool to fetch any endpoint. Discover the available endpoints with the listDiscoveryResources tool.")
76+
agent = create_react_agent("openai:gpt-4.1", tools, prompt="Use the fetchWithPayment tool to fetch any endpoint. Discover the available endpoints with the listPayableServices tool.")
7777
```
7878

7979
</TabsContent>

0 commit comments

Comments
 (0)