mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-08 22:33:08 +00:00
Fixed n8n_validate_workflow tool failing in multi-tenant mode with error: "n8n API not configured. Please set N8N_API_URL and N8N_API_KEY environment variables." Root cause: handleValidateWorkflow called handleGetWorkflow without the context parameter. Closes #474 Conceived by Romuald Członkowski - https://www.aiadvisors.pl/en 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Romuald Członkowski <romualdczlonkowski@MacBook-Pro-Romuald.local> Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
committed by
GitHub
parent
cdaa29e7a2
commit
560e0c5b86
@@ -984,7 +984,7 @@ export async function handleValidateWorkflow(
|
||||
const input = validateWorkflowSchema.parse(args);
|
||||
|
||||
// First, fetch the workflow from n8n
|
||||
const workflowResponse = await handleGetWorkflow({ id: input.id });
|
||||
const workflowResponse = await handleGetWorkflow({ id: input.id }, context);
|
||||
|
||||
if (!workflowResponse.success) {
|
||||
return workflowResponse; // Return the error from fetching
|
||||
|
||||
Reference in New Issue
Block a user