Files
Momento/mcp-server/check-notes.js
Sepehr Ramezani cff36d9619 fix: MCP server Docker deployment, healthchecks, and minor fixes
MCP server:
- Fix Prisma imports from stale client-generated path to @prisma/client
- Switch schema from SQLite to PostgreSQL for Docker compatibility
- Add prisma generate step to Dockerfile with proper binaryTargets
- Include index-sse.js in Docker build (was excluded by .dockerignore)
- Install openssl and libc6-compat in Alpine image for Prisma runtime

Docker:
- Fix memento-note healthcheck (wget unavailable in bullseye-slim)

Minor fixes:
- scrape.service SSRF protection, middleware route coverage
- canvas-board and note-input type fixes
- next.config turbopack and devIndicators adjustments

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-04-21 22:22:02 +02:00

44 lines
966 B
JavaScript

#!/usr/bin/env node
/**
* Vérifier les propriétés des notes
*/
import { PrismaClient } from '@prisma/client';
const prisma = new PrismaClient({
datasources: {
db: { url: 'file:/Users/sepehr/dev/Keep/memento-note/prisma/dev.db' },
},
});
async function checkNotes() {
const notes = await prisma.note.findMany({
where: {
title: { startsWith: '📘' },
},
select: {
id: true,
title: true,
isMarkdown: true,
type: true,
color: true,
labels: true,
},
});
console.log('📋 Notes trouvées:\n');
for (const note of notes) {
console.log(`Titre: ${note.title}`);
console.log(` isMarkdown: ${note.isMarkdown}`);
console.log(` type: ${note.type}`);
console.log(` color: ${note.color}`);
console.log(` labels: ${note.labels}`);
console.log(` id: ${note.id}`);
console.log('');
}
}
checkNotes()
.catch(console.error)
.finally(() => prisma.$disconnect());