diff --git a/apps/portal/src/app/ai/mcp/page.mdx b/apps/portal/src/app/ai/mcp/page.mdx index 237ce33fcb7..f2bc24f63c9 100644 --- a/apps/portal/src/app/ai/mcp/page.mdx +++ b/apps/portal/src/app/ai/mcp/page.mdx @@ -245,7 +245,7 @@ Currently, the following tools are available: - `paymentsPurchase` - `getPaymentHistory` - `fetchWithPayment` -- `listDiscoveryResources` +- `listPayableServices` - `createToken` - `listTokens` - `getTokenOwners` diff --git a/apps/portal/src/app/payments/x402/agents/page.mdx b/apps/portal/src/app/payments/x402/agents/page.mdx index d132988e51f..cc9453098c1 100644 --- a/apps/portal/src/app/payments/x402/agents/page.mdx +++ b/apps/portal/src/app/payments/x402/agents/page.mdx @@ -20,7 +20,7 @@ The easiest way to equip your agents with the ability to pay for API calls is to 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 `listDiscoveryResources` as the only 2 tools we give our agent. You can view the full list of available tools [here](/ai/mcp#available-tools). +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). @@ -42,7 +42,7 @@ const model = new ChatOpenAI({ const mcpServers = { thirdweb: { - url: `https://api.thirdweb.com/mcp?secretKey=&tools=fetchWithPayment,listDiscoveryResources` + url: `https://api.thirdweb.com/mcp?secretKey=&tools=fetchWithPayment,listPayableServices` } }; @@ -53,7 +53,7 @@ const tools = await client.getTools(); const agent = createReactAgent({ llm: model, tools: tools, - prompt: "Use the fetchWithPayment tool to fetch any endpoint. Discover the available endpoints with the listDiscoveryResources tool." + prompt: "Use the fetchWithPayment tool to fetch any endpoint. Discover the available endpoints with the listPayableServices tool." }); ``` @@ -68,12 +68,12 @@ from langgraph.prebuilt import create_react_agent client = MultiServerMCPClient( { "thirdweb": { - "url": "https://api.thirdweb.com/mcp?secretKey=&tools=fetchWithPayment,listDiscoveryResources", + "url": "https://api.thirdweb.com/mcp?secretKey=&tools=fetchWithPayment,listPayableServices", } } ) tools = await client.get_tools() -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.") +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.") ```