docs(router): document omit_tool_name_prefix config for MCP tool names#238
docs(router): document omit_tool_name_prefix config for MCP tool names#238
Conversation
Add documentation for the new omit_operation_prefix configuration option that allows cleaner MCP tool names without the execute_operation_ prefix. Related: wundergraph/cosmo#2441
Update config option name per maintainer feedback in wundergraph/cosmo#2441.
Updated the description of the 'strip_tool_name_prefix' option to clarify its effect on tool name length and its optional nature.
- Remove 'cleaner' language from subsection - Add examples for default (disabled) behavior - Replace arrow character with 'becomes'
Noroth
left a comment
There was a problem hiding this comment.
I think this also has to be documented in docs/router/configuration.mdx
WalkthroughTwo documentation files were updated to introduce a new MCP configuration option Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~4 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
docs/router/mcp.mdx (1)
241-241: Minor: Consider rephrasing for grammatical completeness.The sentence "Can also be set via
MCP_OMIT_TOOL_NAME_PREFIXenvironment variable." lacks a subject. Consider rephrasing to: "This option can also be set via theMCP_OMIT_TOOL_NAME_PREFIXenvironment variable."However, this style is common in table descriptions for brevity, so this is optional.
📝 Suggested fix
-| `omit_tool_name_prefix` | When enabled, MCP tool names generated from GraphQL operations omit the `execute_operation_` prefix. For example, the GraphQL operation `GetUser` results in a tool named `get_user` instead of `execute_operation_get_user`. This produces shorter tool names and is entirely optional. Can also be set via `MCP_OMIT_TOOL_NAME_PREFIX` environment variable. | `false` | +| `omit_tool_name_prefix` | When enabled, MCP tool names generated from GraphQL operations omit the `execute_operation_` prefix. For example, the GraphQL operation `GetUser` results in a tool named `get_user` instead of `execute_operation_get_user`. This produces shorter tool names and is entirely optional. This option can also be set via the `MCP_OMIT_TOOL_NAME_PREFIX` environment variable. | `false` |🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/router/mcp.mdx` at line 241, Rephrase the fragment describing omit_tool_name_prefix so the sentence is grammatically complete; change "Can also be set via `MCP_OMIT_TOOL_NAME_PREFIX` environment variable." to something like "This option can also be set via the `MCP_OMIT_TOOL_NAME_PREFIX` environment variable." Ensure references to the option name `omit_tool_name_prefix` and the env var `MCP_OMIT_TOOL_NAME_PREFIX` remain unchanged.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@docs/router/mcp.mdx`:
- Line 241: Rephrase the fragment describing omit_tool_name_prefix so the
sentence is grammatically complete; change "Can also be set via
`MCP_OMIT_TOOL_NAME_PREFIX` environment variable." to something like "This
option can also be set via the `MCP_OMIT_TOOL_NAME_PREFIX` environment
variable." Ensure references to the option name `omit_tool_name_prefix` and the
env var `MCP_OMIT_TOOL_NAME_PREFIX` remain unchanged.
Supercedes #221
Summary
Documents the new
omit_tool_name_prefixconfiguration option for MCP tool names.Replaces #216 (directive-based approach was superseded by config-based approach)
Related implementation: wundergraph/cosmo#2441
Changes
omit_tool_name_prefixto config example with inline commentMCP_OMIT_TOOL_NAME_PREFIX)Summary by CodeRabbit
New Features
Documentation