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

@@ -78,10 +78,15 @@ const toolDefinitions = [
title: { type: 'string', description: 'Note title' },
content: { type: 'string', description: 'Note body text (required)' },
color: { type: 'string', description: `Color: ${NOTE_COLORS}`, default: 'default' },
type: { type: 'string', enum: ['text', 'checklist'], description: 'Note type', default: 'text' },
type: {
type: 'string',
enum: ['text', 'markdown', 'richtext', 'checklist'],
description: 'Note type. "text" = plain text, "markdown" = Markdown rendered, "richtext" = rich text editor (default), "checklist" = interactive checklist',
default: 'richtext',
},
checkItems: {
type: 'array',
description: 'Checklist items (when type=list)',
description: 'Checklist items (when type=checklist)',
items: {
type: 'object',
properties: { id: { type: 'string' }, text: { type: 'string' }, checked: { type: 'boolean' } },
@@ -97,7 +102,7 @@ const toolDefinitions = [
isReminderDone: { type: 'boolean', default: false },
reminderRecurrence: { type: 'string', description: 'daily, weekly, monthly, yearly' },
reminderLocation: { type: 'string', description: 'Location string' },
isMarkdown: { type: 'boolean', description: 'Render as markdown', default: false },
isMarkdown: { type: 'boolean', description: '(Deprecated — use type="markdown" instead) Render as markdown', default: false },
size: { type: 'string', enum: ['small', 'medium', 'large'], default: 'small' },
notebookId: { type: 'string', description: 'Assign to notebook' },
},
@@ -137,7 +142,11 @@ const toolDefinitions = [
title: { type: 'string' },
content: { type: 'string' },
color: { type: 'string', description: `One of: ${NOTE_COLORS}` },
type: { type: 'string', enum: ['text', 'checklist'] },
type: {
type: 'string',
enum: ['text', 'markdown', 'richtext', 'checklist'],
description: 'Note type. "text" = plain text, "markdown" = Markdown rendered, "richtext" = rich text editor, "checklist" = interactive checklist',
},
checkItems: {
type: 'array',
items: {
@@ -154,7 +163,7 @@ const toolDefinitions = [
isReminderDone: { type: 'boolean' },
reminderRecurrence: { type: 'string' },
reminderLocation: { type: 'string' },
isMarkdown: { type: 'boolean' },
isMarkdown: { type: 'boolean', description: '(Deprecated — use type="markdown" instead)' },
size: { type: 'string', enum: ['small', 'medium', 'large'] },
notebookId: { type: 'string' },
},