Skip to content

Commit cd3c949

Browse files
committed
Sync open source content 🐝 (from f8633cc569270efea1cc338c4d0cf7e981e54ee6)
1 parent e1b7d64 commit cd3c949

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

mcp/optimizing-your-openapi-for-mcp.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ Here's how to use this extension:
276276
x-speakeasy-mcp:
277277
name: "driver_fastest_lap_tool"
278278
description: "Find the fastest lap time a driver has ever recorded at any track"
279-
scope: [read, performance-stats]
279+
scopes: [read, performance-stats]
280280
````
281281
282282
#### Customize tool names and descriptions
@@ -330,18 +330,18 @@ paths:
330330
get:
331331
summary: List all drivers
332332
x-speakeasy-mcp:
333-
scope: [read]
333+
scopes: [read]
334334
# ...
335335
post:
336336
summary: Create a new driver
337337
x-speakeasy-mcp:
338-
scope: [write]
338+
scopes: [write]
339339
# ...
340340
"/drivers/{driver_id}":
341341
delete:
342342
summary: Delete a driver
343343
x-speakeasy-mcp:
344-
scope: [write, destructive]
344+
scopes: [write, destructive]
345345
# ...
346346
```
347347

@@ -387,11 +387,11 @@ To apply scopes consistently across many operations, you can use the global `x-s
387387
x-speakeasy-mcp:
388388
scope-mapping:
389389
- pattern: "^get|^list"
390-
scope: [read]
390+
scopes: [read]
391391
- pattern: "^create|^update"
392-
scope: [write]
392+
scopes: [write]
393393
- pattern: "^delete"
394-
scope: [write, destructive]
394+
scopes: [write, destructive]
395395
```
396396

397397
This automatically applies scopes based on operation name patterns, saving you from manually tagging each endpoint.
@@ -432,7 +432,7 @@ When using MCP, it's essential to provide clear descriptions for each operation.
432432
Fetch complete details about a specific racing driver including their
433433
name, team, career statistics, and full history of lap times across all tracks.
434434
Use this tool when you need comprehensive information about a driver.
435-
scope: [read, driver-info]
435+
scopes: [read, driver-info]
436436
parameters:
437437
- name: driver_id
438438
in: path

0 commit comments

Comments
 (0)