Skip to main content
Glama

n8n MCP Server

by CodeHalwell
test_validator.py955 B
from __future__ import annotations from core.specs import WorkflowSpec, NodeSpec, ConnectionSpec from core.validator import validate_workflow def test_missing_name() -> None: spec = WorkflowSpec(name="", nodes=[], connections=[]) errors = validate_workflow(spec) assert any("workflow.name is required" in e for e in errors) def test_basic_webhook_flow_validates() -> None: spec = WorkflowSpec( name="t", nodes=[ NodeSpec( name="Webhook", type="n8n-nodes-base.webhook", parameters={"path": "p", "httpMethod": "POST"}, ), NodeSpec( name="Code", type="n8n-nodes-base.function", parameters={"functionCode": "return items;"}, ), ], connections=[ConnectionSpec(fromNode="Webhook", toNode="Code")], ) errors = validate_workflow(spec) assert errors == []

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CodeHalwell/n8n-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server