feat(mcp): add all 4 note types, translate N8N docs to English, add N8N workflow examples
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 55s

- tools.js: expose type enum ['text','markdown','richtext','checklist'] in create_note & update_note
  - default changed from 'text' to 'richtext' (matches Prisma schema)
  - isMarkdown marked as deprecated in favour of type='markdown'
- N8N-CONFIG.md: full French → English translation
- N8N-WORKFLOWS.md: full French → English translation
- N8N-EXAMPLES.md: new comprehensive examples for all 22 MCP tools + workflow patterns
- n8n-workflow-mcp-reminder-bot.json: cron → get_due_reminders → Telegram → mark done
- n8n-workflow-mcp-email-to-note.json: IMAP → create_note → urgent Slack alert
- n8n-workflow-mcp-daily-digest.json: 8AM cron → notes + reminders digest → save + Slack
- n8n-workflow-mcp-webhook-to-note.json: universal webhook → create_note → respond
- notebooks-list.tsx: fix truncated notebook names (pe-24→pe-14), replace hover overlay with Tooltip
This commit is contained in:
Antigravity
2026-05-03 20:49:11 +00:00
parent 0311c97a35
commit 0ebf10344d
9 changed files with 1203 additions and 113 deletions

View File

@@ -1,24 +1,24 @@
# Workflows N8N pour Memento MCP
# N8N Workflows for Memento MCP
## Introduction
Exemples de workflows N8N utilisant le serveur MCP de Memento via le transport **Streamable HTTP**.
Example N8N workflows using the Memento MCP server via **Streamable HTTP** transport.
**Prerequis** : une cle API generee depuis **Parametres > MCP** dans Memento.
**Prerequisite**: an API key generated from **Settings > MCP** in Memento.
## Configuration du noeud MCP Client
## MCP Client Node Configuration
Dans chaque workflow, le noeud MCP Client doit etre configure ainsi :
In every workflow, the MCP Client node must be configured as follows:
- **Server Transport** : `Streamable HTTP`
- **MCP Endpoint URL** : `http://memento-mcp:3001/mcp` (Docker) ou `http://VOTRE_IP:3001/mcp`
- **Authentication** : Header Auth avec `x-api-key` = votre cle API
- **Server Transport**: `Streamable HTTP`
- **MCP Endpoint URL**: `http://memento-mcp:3001/mcp` (Docker) or `http://YOUR_IP:3001/mcp`
- **Authentication**: Header Auth with `x-api-key` = your API key
## Workflows disponibles
## Available Workflows
### 1. Create Note (`n8n-workflow-create-note.json`)
Cree des notes dans Memento avec classification par IA.
Creates notes in Memento with AI-based classification.
```json
{
@@ -34,7 +34,7 @@ Cree des notes dans Memento avec classification par IA.
### 2. Search & Summary (`n8n-workflow-search-summary.json`)
Recherche des notes et genere un resume.
Searches notes and generates a summary.
```json
{
@@ -47,7 +47,7 @@ Recherche des notes et genere un resume.
### 3. Notebook Manager (`n8n-workflow-notebook-management.json`)
CRUD complet des notebooks.
Full CRUD for notebooks.
```json
{
@@ -62,14 +62,14 @@ CRUD complet des notebooks.
### 4. Reminder Notifications (`n8n-workflow-reminder-notifications.json`)
Automatisation des rappels avec notifications.
Automates reminders with notifications.
- Declencheur : Schedule (cron: `0 */30 * * * *`)
- Appelle `get_due_reminders` et envoie les notifications
- Trigger: Schedule (cron: `0 */30 * * * *`)
- Calls `get_due_reminders` and sends notifications
### 5. Label Manager (`n8n-workflow-label-management.json`)
Gestion des labels.
Label management.
```json
{
@@ -84,20 +84,20 @@ Gestion des labels.
### 6. Email to Note (`n8n-workflow-email-integration.json`)
Conversion automatique d'emails en notes.
Automatically converts emails into notes.
- Declencheur : Email Trigger (IMAP)
- Cree une note avec le contenu de l'email
- Trigger: Email Trigger (IMAP)
- Creates a note from the email content
## Importation
## Import Instructions
1. Ouvrir N8N
2. **Import from File** -> selectionner le fichier JSON
3. Configurer le noeud MCP Client (URL + cle API)
4. Activer le workflow
1. Open N8N
2. **Import from File** select the JSON file
3. Configure the MCP Client node (URL + API key)
4. Activate the workflow
## Securite
## Security
- Toujours utiliser une cle API dediee par workflow
- Ne jamais exposer la cle dans les logs
- Restreindre l'acces reseau au port 3001 si possible
- Always use a dedicated API key per workflow
- Never expose the key in logs
- Restrict network access to port 3001 when possible