{
  "name": "Make MCP Server (augmentes)",
  "nodes": [
    {
      "parameters": {
        "path": "make-mcp"
      },
      "name": "MCP Server - Make",
      "type": "@n8n/n8n-nodes-langchain.mcpTrigger",
      "typeVersion": 1.1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "url": "https://eu1.make.com/api/v2/teams",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {},
        "toolDescription": "Liste les equipes (teams) Make d'une organisation. Fournis l'organizationId numerique.",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "organizationId",
              "value": "={{ $fromAI('organizationId', \"ID numerique de l'organisation Make\") }}"
            },
            {
              "name": "pg[limit]",
              "value": "={{ $fromAI('limit', \"Resultats par page (defaut 100)\", 'number') }} || 100"
            },
            {
              "name": "pg[offset]",
              "value": "={{ $fromAI('offset', \"Decalage pagination (defaut 0)\", 'number') }} || 0"
            }
          ]
        }
      },
      "name": "make_list_teams",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        360,
        80
      ]
    },
    {
      "parameters": {
        "url": "https://eu1.make.com/api/v2/scenarios",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {},
        "toolDescription": "Liste les scenarios Make d'une team (nom, ID, statut). Fournis le teamId. Pagine via limit/offset.",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "teamId",
              "value": "={{ $fromAI('teamId', \"ID numerique de la team Make\") }}"
            },
            {
              "name": "pg[limit]",
              "value": "={{ $fromAI('limit', \"Resultats par page (defaut 100)\", 'number') }} || 100"
            },
            {
              "name": "pg[offset]",
              "value": "={{ $fromAI('offset', \"Decalage pagination (defaut 0)\", 'number') }} || 0"
            }
          ]
        }
      },
      "name": "make_list_scenarios",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        600,
        80
      ]
    },
    {
      "parameters": {
        "url": "=https://eu1.make.com/api/v2/scenarios/{{ $fromAI('scenarioId', 'ID du scenario Make', 'string') }}",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {},
        "toolDescription": "Metadonnees d'un scenario Make. Fournis le scenarioId."
      },
      "name": "make_get_scenario",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        840,
        80
      ]
    },
    {
      "parameters": {
        "url": "=https://eu1.make.com/api/v2/scenarios/{{ $fromAI('scenarioId', 'ID du scenario Make', 'string') }}/logs",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {},
        "toolDescription": "Historique des executions d'un scenario (executionId, statut, operations, date). Fournis le scenarioId.",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "pg[limit]",
              "value": "={{ $fromAI('limit', \"Resultats par page (defaut 100)\", 'number') }} || 100"
            },
            {
              "name": "pg[offset]",
              "value": "={{ $fromAI('offset', \"Decalage pagination (defaut 0)\", 'number') }} || 0"
            }
          ]
        }
      },
      "name": "make_get_scenario_executions",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        1080,
        80
      ]
    },
    {
      "parameters": {
        "url": "=https://eu1.make.com/api/v2/hooks/{{ $fromAI('hookId', 'ID du hook Make', 'string') }}",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {},
        "toolDescription": "Details d'un webhook/hook Make (dont son URL). Fournis le hookId numerique."
      },
      "name": "make_get_hook",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        1320,
        80
      ]
    },
    {
      "parameters": {
        "url": "=https://eu1.make.com/api/v2/scenarios/{{ $fromAI('scenarioId', 'ID du scenario', 'string') }}/logs/{{ $fromAI('executionId', \"ID hexa de l'execution\", 'string') }}",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {},
        "toolDescription": "Metadonnees d'une execution precise (statut, operations, duree). Fournis scenarioId + executionId hexadecimal."
      },
      "name": "make_get_execution_log",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        1560,
        80
      ]
    },
    {
      "parameters": {
        "url": "=https://eu1.make.com/api/v2/scenarios/{{ $fromAI('scenarioId', 'ID du scenario Make', 'string') }}/blueprint",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {},
        "toolDescription": "Blueprint COMPLET d'un scenario Make (flow, modules, mappers, filtres, routeurs). Fournis le scenarioId."
      },
      "name": "make_get_blueprint",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        1800,
        80
      ]
    },
    {
      "parameters": {
        "url": "https://eu1.make.com/api/v2/connections",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {},
        "toolDescription": "Liste les connexions (apps) d'une team Make avec leur ID et service. Fournis le teamId.",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "teamId",
              "value": "={{ $fromAI('teamId', \"ID team Make\", 'number') }}"
            }
          ]
        }
      },
      "name": "make_list_connections",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        360,
        230
      ]
    },
    {
      "parameters": {
        "url": "=https://eu1.make.com/streamer/scenario/{{ $fromAI('scenarioId', 'ID du scenario', 'string') }}/log/v3/{{ $fromAI('executionId', \"ID hexa de l'execution\", 'string') }}",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {},
        "toolDescription": "EXPERIMENTAL (API Bridge) : arbre d'execution detaille module par module d'un run. Peut echouer (401) si l'auth Bridge differe. Fournis scenarioId + executionId."
      },
      "name": "make_get_execution_detail",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        600,
        230
      ]
    },
    {
      "parameters": {
        "url": "=https://eu1.make.com/api/v2/scenarios/{{ $fromAI('scenarioId', 'ID du scenario a executer', 'string') }}/run",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {},
        "method": "POST",
        "toolDescription": "Lance UNE execution d'un scenario Make (consomme des operations, peut declencher des actions reelles). A n'utiliser qu'apres confirmation de l'utilisateur.",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ $fromAI('body', 'Corps JSON optionnel (ex {\"responsive\":true}). Mettre {} si rien.', 'string') || '{}' }}"
      },
      "name": "make_run_scenario",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        840,
        230
      ]
    },
    {
      "parameters": {
        "url": "https://eu1.make.com/api/v2/scenarios",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {},
        "method": "POST",
        "toolDescription": "Cree un scenario Make. blueprint et scheduling = CHAINES JSON stringifiees. Action sensible : confirmer avant.",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "blueprint",
              "value": "={{ $fromAI('blueprint', \"Blueprint complet du scenario en JSON STRINGIFIE\") }}"
            },
            {
              "name": "scheduling",
              "value": "={{ $fromAI('scheduling', \"Scheduling en JSON STRINGIFIE\") }}"
            },
            {
              "name": "teamId",
              "value": "={{ $fromAI('teamId', \"ID team Make\", 'number') }}"
            }
          ]
        }
      },
      "name": "make_create_scenario",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        1080,
        230
      ]
    },
    {
      "parameters": {
        "url": "=https://eu1.make.com/api/v2/scenarios/{{ $fromAI('scenarioId', 'ID du scenario a modifier', 'string') }}",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {},
        "method": "PATCH",
        "toolDescription": "Modifie un scenario Make existant (PATCH). N'inclure que les champs changes. Action sensible : confirmer avant.",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "blueprint",
              "value": "={{ $fromAI('blueprint', \"Blueprint modifie en JSON STRINGIFIE (optionnel)\") }}"
            },
            {
              "name": "scheduling",
              "value": "={{ $fromAI('scheduling', \"Scheduling en JSON STRINGIFIE (optionnel)\") }}"
            },
            {
              "name": "name",
              "value": "={{ $fromAI('name', \"Nouveau nom (optionnel)\") }}"
            }
          ]
        }
      },
      "name": "make_update_scenario",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        1320,
        230
      ]
    },
    {
      "parameters": {
        "url": "=https://eu1.make.com/api/v2/scenarios/{{ $fromAI('scenarioId', 'ID du scenario a cloner', 'string') }}/clone",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "options": {},
        "method": "POST",
        "toolDescription": "Clone un scenario Make existant (le plus sur pour experimenter sans toucher la prod). Fournis scenarioId + nom + teamId.",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "name",
              "value": "={{ $fromAI('name', \"Nom du scenario clone\") }}"
            },
            {
              "name": "teamId",
              "value": "={{ $fromAI('teamId', \"ID team Make\", 'number') }}"
            },
            {
              "name": "states",
              "value": "false"
            }
          ]
        }
      },
      "name": "make_clone_scenario",
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        1560,
        230
      ]
    },
    {
      "parameters": {
        "content": "## Make MCP Server (zone eu1)\\n\\n13 outils. LECTURE : list_teams, list_scenarios, get_scenario, get_scenario_executions, get_execution_log, get_blueprint, list_connections, get_hook. TEST : run_scenario. ECRITURE (sensible) : create/update/clone_scenario.\\n\\n### Auth\\nCredential **Header Auth** : Name = Authorization, Value = Token <ton_token_API_Make>.\\nAdapte l'URL de base a ta region (eu1/eu2/us1).",
        "height": 300,
        "width": 520,
        "color": 4
      },
      "name": "Notice",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        0,
        -360
      ]
    }
  ],
  "connections": {
    "make_list_teams": {
      "ai_tool": [
        [
          {
            "node": "MCP Server - Make",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "make_list_scenarios": {
      "ai_tool": [
        [
          {
            "node": "MCP Server - Make",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "make_get_scenario": {
      "ai_tool": [
        [
          {
            "node": "MCP Server - Make",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "make_get_scenario_executions": {
      "ai_tool": [
        [
          {
            "node": "MCP Server - Make",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "make_get_hook": {
      "ai_tool": [
        [
          {
            "node": "MCP Server - Make",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "make_get_execution_log": {
      "ai_tool": [
        [
          {
            "node": "MCP Server - Make",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "make_get_blueprint": {
      "ai_tool": [
        [
          {
            "node": "MCP Server - Make",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "make_list_connections": {
      "ai_tool": [
        [
          {
            "node": "MCP Server - Make",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "make_get_execution_detail": {
      "ai_tool": [
        [
          {
            "node": "MCP Server - Make",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "make_run_scenario": {
      "ai_tool": [
        [
          {
            "node": "MCP Server - Make",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "make_create_scenario": {
      "ai_tool": [
        [
          {
            "node": "MCP Server - Make",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "make_update_scenario": {
      "ai_tool": [
        [
          {
            "node": "MCP Server - Make",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "make_clone_scenario": {
      "ai_tool": [
        [
          {
            "node": "MCP Server - Make",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": false
  }
}