fix: Add default sort value to create_collection

Collections without sort field cause frontend error:
"Cannot read properties of null (reading 'field')"

Now sets {"field": "index", "direction": "asc"} as default.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-31 18:36:58 +00:00
parent 1c8f6cbab9
commit 1cdeafebb6
9 changed files with 21 additions and 12 deletions

View File

@@ -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.7'
version: '1.3.8'
});
// Connect stdio transport