diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e836a3..c40b2b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ All notable changes to this project will be documented in this file. +## [1.3.13] - 2026-01-31 + +### Fixed + +- **Document Listing (Final Fix):** Documents now appear in collection sidebar + - Added `revisionCount = 1` (was 0, Outline filters these out) + - Added `content` field with minimal ProseMirror JSON structure + - Both fields required for documents to appear in listing + ## [1.3.12] - 2026-01-31 ### Fixed diff --git a/CLAUDE.md b/CLAUDE.md index 7609814..95c4f6a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -6,7 +6,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co MCP server for direct PostgreSQL access to Outline Wiki database. Follows patterns established by `mcp-desk-crm-sql-v3`. -**Version:** 1.3.12 +**Version:** 1.3.13 **Total Tools:** 164 tools across 33 modules **Production:** hub.descomplicar.pt (via SSH tunnel) diff --git a/CONTINUE.md b/CONTINUE.md index 94e6232..fdb65fa 100644 --- a/CONTINUE.md +++ b/CONTINUE.md @@ -1,7 +1,7 @@ # MCP Outline PostgreSQL - Continuacao de Testes **Ultima Sessao:** 2026-01-31 (actualizado) -**Versao Actual:** 1.3.12 +**Versao Actual:** 1.3.13 **Progresso:** ~95/164 tools testadas (58%) - **CÓDIGO VALIDADO** --- diff --git a/package-lock.json b/package-lock.json index 8859233..b4eeda8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "mcp-outline-postgresql", - "version": "1.3.12", + "version": "1.3.13", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "mcp-outline-postgresql", - "version": "1.3.12", + "version": "1.3.13", "license": "MIT", "dependencies": { "@modelcontextprotocol/sdk": "^1.0.0", diff --git a/package.json b/package.json index ebf67a5..6e78ee9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mcp-outline-postgresql", - "version": "1.3.12", + "version": "1.3.13", "description": "MCP Server for Outline Wiki via PostgreSQL direct access", "main": "dist/index.js", "scripts": { diff --git a/src/index-http.ts b/src/index-http.ts index 7e5393a..df7f16b 100644 --- a/src/index-http.ts +++ b/src/index-http.ts @@ -68,7 +68,7 @@ async function main() { JSON.stringify({ status: 'ok', transport: 'streamable-http', - version: '1.3.12', + version: '1.3.13', sessions: sessions.size, stateful: STATEFUL, tools: allTools.length @@ -101,7 +101,7 @@ async function main() { // Create MCP server const server = createMcpServer(pgClient.getPool(), { name: 'mcp-outline-http', - version: '1.3.12' + version: '1.3.13' }); // Track session if stateful diff --git a/src/index.ts b/src/index.ts index d6ca34c..787710e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -39,7 +39,7 @@ async function main() { // Create MCP server with shared configuration const server = createMcpServer(pgClient.getPool(), { name: 'mcp-outline-postgresql', - version: '1.3.12' + version: '1.3.13' }); // Connect stdio transport diff --git a/src/server/create-server.ts b/src/server/create-server.ts index 8e4b592..6099f49 100644 --- a/src/server/create-server.ts +++ b/src/server/create-server.ts @@ -122,7 +122,7 @@ export function createMcpServer( ): Server { const server = new Server({ name: config.name || 'mcp-outline-postgresql', - version: config.version || '1.3.12' + version: config.version || '1.3.13' }); // Set capabilities (required for MCP v2.2+) diff --git a/src/tools/documents.ts b/src/tools/documents.ts index 30531b1..88fa320 100644 --- a/src/tools/documents.ts +++ b/src/tools/documents.ts @@ -244,12 +244,13 @@ const createDocument: BaseTool = { INSERT INTO documents ( id, "urlId", title, text, "collectionId", "teamId", "parentDocumentId", "createdById", "lastModifiedById", template, "publishedAt", "createdAt", "updatedAt", version, - "isWelcome", "fullWidth", "insightsEnabled", "collaboratorIds" + "isWelcome", "fullWidth", "insightsEnabled", "collaboratorIds", "revisionCount", content ) VALUES ( gen_random_uuid(), substring(md5(random()::text) from 1 for 10), - $1, $2, $3, $4, $5, $6, $7, $8, $9, NOW(), NOW(), 1, false, false, false, ARRAY[$6]::uuid[] + $1, $2, $3, $4, $5, $6, $7, $8, $9, NOW(), NOW(), 1, false, false, false, ARRAY[$6]::uuid[], + 1, '{"type": "doc", "content": [{"type": "paragraph"}]}'::jsonb ) RETURNING id, "urlId", title, "collectionId", "publishedAt", "createdAt" `;