Conversation
`mcp2cli n8n list_workflows` now resolves to `n8n_list_workflows` automatically since the service is already specified. Eliminates wasted calls from agents that don't know the prefix convention. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Claude finished @rodaddy's task —— View job PR Review: feat/auto-prefix-tool-names
Overall the implementation is clean and well-scoped. A few issues worth addressing, roughly ordered by severity: Security: Access control checked against unresolved name
The access policy check happens before tool name resolution in both paths. This means a user can bypass a blocklist on In In Fix: resolve the tool name first (or re-check access against the resolved name after resolution). Bug:
|
Summary
mcp2cli n8n list_workflowsnow auto-resolves ton8n_list_workflowswhen the unprefixed name doesn't matchresolveToolName()insrc/schema/introspect.ts-- tries exact match first, then{service}_{tool}prefixgetToolSchema(), direct connection, and daemon/callendpointTest plan
mcp2cli n8n list_workflows --params '{}'resolves correctly🤖 Generated with Claude Code