Keep/mcp-server/n8n-workflow-notebook-management.json
sepehr ddb67ba9e5 fix: unify theme system - fix theme switching persistence
- Unified localStorage key to 'theme-preference' across all components
- Fixed header.tsx using wrong localStorage key ('theme' instead of 'theme-preference')
- Added localStorage hybrid persistence for instant theme changes
- Removed router.refresh() which was causing stale data revert
- Replaced Blue theme with Sepia
- Consolidated auth() calls to prevent race conditions
- Updated UserSettingsData types to include all themes
2026-01-18 22:33:41 +01:00

348 lines
7.8 KiB
JSON

{
"name": "Keep Notes - Notebook Manager",
"nodes": [
{
"parameters": {},
"id": "mcp-trigger-3",
"name": "MCP Server Trigger",
"type": "n8n-nodes-langchain.mcptrigger",
"typeVersion": 1,
"position": [250, 300],
"webhookId": "keep-notes-notebook",
"description": "MCP trigger to manage notebooks"
},
{
"parameters": {
"switches": {
"values": [
{
"conditions": [
{
"leftValue": "={{ $json.action }}",
"rightValue": "create",
"operator": {
"type": "string",
"operation": "equals"
}
}
],
"output": "create"
},
{
"conditions": [
{
"leftValue": "={{ $json.action }}",
"rightValue": "list",
"operator": {
"type": "string",
"operation": "equals"
}
}
],
"output": "list"
},
{
"conditions": [
{
"leftValue": "={{ $json.action }}",
"rightValue": "update",
"operator": {
"type": "string",
"operation": "equals"
}
}
],
"output": "update"
},
{
"conditions": [
{
"leftValue": "={{ $json.action }}",
"rightValue": "delete",
"operator": {
"type": "string",
"operation": "equals"
}
}
],
"output": "delete"
}
]
},
"options": {}
},
"id": "switch-1",
"name": "Action Switch",
"type": "n8n-nodes-base.switch",
"typeVersion": 3.1,
"position": [500, 300]
},
{
"parameters": {
"resource": "notebook",
"operation": "create",
"url": "http://localhost:3000/api/notebooks",
"method": "POST",
"bodyParameters": {
"parameters": [
{
"name": "name",
"value": "={{ $json.name }}"
},
{
"name": "icon",
"value": "={{ $json.icon || '📁' }}"
},
{
"name": "color",
"value": "={{ $json.color || '#3B82F6' }}"
}
]
}
},
"id": "create-notebook",
"name": "Create Notebook",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [750, 150],
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
}
},
{
"parameters": {
"url": "http://localhost:3000/api/notebooks",
"method": "GET",
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
}
},
"id": "list-notebooks",
"name": "List Notebooks",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [750, 300],
"sendHeaders": true
},
{
"parameters": {
"resource": "notebook",
"operation": "update",
"url": "http://localhost:3000/api/notebooks/{{ $json.id }}",
"method": "PUT",
"bodyParameters": {
"parameters": [
{
"name": "name",
"value": "={{ $json.name }}"
},
{
"name": "icon",
"value": "={{ $json.icon }}"
},
{
"name": "color",
"value": "={{ $json.color }}"
}
]
}
},
"id": "update-notebook",
"name": "Update Notebook",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [750, 450],
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "Content-Type",
"value": "application/json"
}
]
}
},
{
"parameters": {
"resource": "notebook",
"operation": "delete",
"url": "http://localhost:3000/api/notebooks/{{ $json.id }}",
"method": "DELETE"
},
"id": "delete-notebook",
"name": "Delete Notebook",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [750, 600],
"sendHeaders": true
},
{
"parameters": {
"assignments": {
"assignments": [
{
"name": "action",
"value": "={{ $json.action }}",
"type": "string"
},
{
"name": "success",
"value": true,
"type": "boolean"
},
{
"name": "data",
"value": "={{ $json }}",
"type": "object"
}
]
},
"options": {}
},
"id": "format-3",
"name": "Format Response",
"type": "n8n-nodes-base.set",
"typeVersion": 3.4,
"position": [1000, 300]
},
{
"parameters": {
"respondWith": "json",
"responseBody": "={{ $json }}"
},
"id": "mcp-response-3",
"name": "Respond to Webhook",
"type": "n8n-nodes-base.respondToWebhook",
"typeVersion": 1.1,
"position": [1250, 300]
}
],
"connections": {
"MCP Server Trigger": {
"main": [
[
{
"node": "Action Switch",
"type": "main",
"index": 0
}
]
]
},
"Action Switch": {
"main": [
[
{
"node": "Create Notebook",
"type": "main",
"index": 0
}
],
[
{
"node": "List Notebooks",
"type": "main",
"index": 0
}
],
[
{
"node": "Update Notebook",
"type": "main",
"index": 0
}
],
[
{
"node": "Delete Notebook",
"type": "main",
"index": 0
}
]
]
},
"Create Notebook": {
"main": [
[
{
"node": "Format Response",
"type": "main",
"index": 0
}
]
]
},
"List Notebooks": {
"main": [
[
{
"node": "Format Response",
"type": "main",
"index": 0
}
]
]
},
"Update Notebook": {
"main": [
[
{
"node": "Format Response",
"type": "main",
"index": 0
}
]
]
},
"Delete Notebook": {
"main": [
[
{
"node": "Format Response",
"type": "main",
"index": 0
}
]
]
},
"Format Response": {
"main": [
[
{
"node": "Respond to Webhook",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"staticData": null,
"tags": [
{
"createdAt": "2026-01-18T00:00:00.000Z",
"id": "keep-notes-mcp",
"name": "Keep Notes MCP"
}
],
"triggerCount": 1,
"updatedAt": "2026-01-18T00:00:00.000Z",
"versionId": "1"
}