Skip to content

Commit 2f35b1f

Browse files
fengshaokangdsp-ant
authored andcommitted
docs: modify the TypeScript server demo
1 parent 2d8014a commit 2f35b1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/quickstart/server.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ The tool execution handler is responsible for actually executing the logic of ea
543543
```typescript
544544
// Register weather tools
545545
server.tool(
546-
"get-alerts",
546+
"get_alerts",
547547
"Get weather alerts for a state",
548548
{
549549
state: z.string().length(2).describe("Two-letter state code (e.g. CA, NY)"),
@@ -591,7 +591,7 @@ server.tool(
591591
);
592592

593593
server.tool(
594-
"get-forecast",
594+
"get_forecast",
595595
"Get weather forecast for a location",
596596
{
597597
latitude: z.number().min(-90).max(90).describe("Latitude of the location"),

0 commit comments

Comments
 (0)