We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4646b48 commit e257fd1Copy full SHA for e257fd1
1 file changed
packages/mcp/src/index.ts
@@ -197,7 +197,9 @@ const main = async () => {
197
}
198
199
200
- let toolName = endpoint.name.replace(/^\//, '').replace(/\//g, '_');
+ // Updated code to include the HTTP method in the tool name
201
+ const method = endpoint.method.toLowerCase();
202
+ let toolName = `${method}_${endpoint.name.replace(/^\//, '').replace(/\//g, '_')}`;
203
toolName = toolName.replace(/{([^}]+)}/g, 'by_$1');
204
205
server.tool(
0 commit comments