Skip to content

Commit 1e37f6d

Browse files
[Agents] Add missing zod import (#25851)
Added missing `zod` import in two examples. --------- Co-authored-by: Pedro Sousa <[email protected]>
1 parent 8728b69 commit 1e37f6d

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/content/docs/agents/model-context-protocol/tools.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ For example, the following code from [this example MCP server](https://github.co
1717
```ts title="src/index.ts"
1818
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp";
1919
import { McpAgent } from "agents/mcp";
20+
import { z } from "zod";
2021

2122
export class MyMCP extends McpAgent {
2223
server = new McpServer({ name: "Demo", version: "1.0.0" });

src/content/docs/agents/x402.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ x402 supercharges your MCP servers so they can include paid tools.
9696
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
9797
import { McpAgent } from "agents/mcp";
9898
import { withX402, type X402Config } from "agents/x402";
99+
import { z } from "zod";
99100

100101
const X402_CONFIG: X402Config = {
101102
network: "base",

0 commit comments

Comments
 (0)