{
  "name": "Zero-Fluff Ops #006 — Scoped MCP Tool Gateway (n8n Native MCP Server Trigger)",
  "nodes": [
    {
      "parameters": {
        "path": "zerofluff-ops-mcp",
        "authentication": "bearerAuth"
      },
      "id": "mcp-server-trigger",
      "name": "MCP Server Trigger",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "typeVersion": 1,
      "position": [220, 300]
    },
    {
      "parameters": {
        "conditions": {
          "number": [
            {
              "value1": "={{ ($json.query || $json.title || '').length }}",
              "operation": "larger",
              "value2": 3
            }
          ]
        }
      },
      "id": "early-guardrail",
      "name": "Early Input Guardrail",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [460, 300]
    },
    {
      "parameters": {
        "dataType": "string",
        "value1": "={{ $json.action }}",
        "rules": {
          "rules": [
            { "value2": "search_sop", "output": 0 },
            { "value2": "create_task", "output": 1 }
          ]
        }
      },
      "id": "action-switch",
      "name": "Deterministic Action Switch",
      "type": "n8n-nodes-base.switch",
      "typeVersion": 2,
      "position": [700, 280]
    },
    {
      "parameters": {
        "resource": "databasePage",
        "operation": "getAll",
        "databaseId": "YOUR_NOTION_SOP_DATABASE_ID",
        "limit": 3
      },
      "id": "notion-sop-search",
      "name": "Notion SOP Search (Max 3)",
      "type": "n8n-nodes-base.notion",
      "typeVersion": 2,
      "position": [960, 180]
    },
    {
      "parameters": {
        "resource": "task",
        "operation": "create",
        "list": "YOUR_CLICKUP_LIST_ID",
        "name": "={{ $json.title }}"
      },
      "id": "clickup-task-create",
      "name": "ClickUp Task Create",
      "type": "n8n-nodes-base.clickUp",
      "typeVersion": 1,
      "position": [960, 380]
    },
    {
      "parameters": {
        "resource": "databasePage",
        "operation": "create",
        "databaseId": "YOUR_AUDIT_LOG_DATABASE_ID"
      },
      "id": "audit-log",
      "name": "Append MCP Audit Log",
      "type": "n8n-nodes-base.notion",
      "typeVersion": 2,
      "position": [1220, 280]
    }
  ],
  "connections": {
    "MCP Server Trigger": {
      "main": [[{ "node": "Early Input Guardrail", "type": "main", "index": 0 }]]
    },
    "Early Input Guardrail": {
      "main": [[{ "node": "Deterministic Action Switch", "type": "main", "index": 0 }], []]
    },
    "Deterministic Action Switch": {
      "main": [
        [{ "node": "Notion SOP Search (Max 3)", "type": "main", "index": 0 }],
        [{ "node": "ClickUp Task Create", "type": "main", "index": 0 }]
      ]
    },
    "Notion SOP Search (Max 3)": {
      "main": [[{ "node": "Append MCP Audit Log", "type": "main", "index": 0 }]]
    },
    "ClickUp Task Create": {
      "main": [[{ "node": "Append MCP Audit Log", "type": "main", "index": 0 }]]
    }
  }
}
