Skip to content

Commit fb3abd2

Browse files
committed
docs(router): rename omit_operation_prefix to strip_tool_name_prefix
Update config option name per maintainer feedback in wundergraph/cosmo#2441.
1 parent 49f2b4c commit fb3abd2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/router/mcp.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ mcp:
216216
exclude_mutations: true
217217
enable_arbitrary_operations: false
218218
expose_schema: false
219-
omit_operation_prefix: false # When true: GetUser → get_user (no execute_operation_ prefix)
219+
strip_tool_name_prefix: false # When true: GetUser → get_user (no execute_operation_ prefix)
220220

221221
# Configure storage providers
222222
storage_providers:
@@ -238,7 +238,7 @@ storage_providers:
238238
| `exclude_mutations` | Whether to exclude mutation operations from being exposed | `false` |
239239
| `enable_arbitrary_operations` | Whether to allow arbitrary GraphQL operations to be executed. <Warning>Security risk: Should only be enabled in secure, internal environments.</Warning> | `false` |
240240
| `expose_schema` | Whether to expose the full GraphQL schema. <Warning>Security risk: Should only be enabled in secure, internal environments.</Warning> | `false` |
241-
| `omit_operation_prefix` | When true, MCP tool names are generated without the `execute_operation_` prefix (e.g., `GetUser` → `get_user` instead of `execute_operation_get_user`). Can also be set via `MCP_OMIT_OPERATION_PREFIX` environment variable. | `false` |
241+
| `strip_tool_name_prefix` | When true, MCP tool names are generated without the `execute_operation_` prefix (e.g., `GetUser` → `get_user` instead of `execute_operation_get_user`). Can also be set via `MCP_STRIP_TOOL_NAME_PREFIX` environment variable. | `false` |
242242

243243
## Session Handling
244244

@@ -377,14 +377,14 @@ The MCP server converts each operation into a corresponding tool:
377377

378378
Operations are converted to snake_case for tool naming consistency.
379379

380-
#### Omitting the Operation Prefix
380+
#### Stripping the Tool Name Prefix
381381

382-
By default, all operation tools include the `execute_operation_` prefix. If you prefer shorter, cleaner tool names, enable the `omit_operation_prefix` configuration option:
382+
By default, all operation tools include the `execute_operation_` prefix. If you prefer shorter, cleaner tool names, enable the `strip_tool_name_prefix` configuration option:
383383

384384
```yaml
385385
mcp:
386386
enabled: true
387-
omit_operation_prefix: true
387+
strip_tool_name_prefix: true
388388
```
389389

390390
With this option enabled:

0 commit comments

Comments
 (0)