fix(mcp): clean up import ordering, static imports, and annotation correctness

- Move safeBroadcast after all imports (was incorrectly placed between import blocks)
- Replace dynamic import of packingService in packing-list prompt with static import
- Fix reorder_day_assignments annotation from NON_IDEMPOTENT to WRITE (reordering is idempotent)
- Fix misleading osm_id description in update_place (removed "create-only" claim)
- Remove internal error detail leakage from MCP 500 responses
This commit is contained in:
jubnl
2026-04-09 12:56:05 +02:00
parent 6aeec0ead1
commit 78b465a815
2 changed files with 12 additions and 13 deletions
+1 -1
View File
@@ -122,7 +122,7 @@ export async function mcpHandler(req: Request, res: Response): Promise<void> {
} catch (err) {
console.error('[MCP] transport.handleRequest error:', err);
if (!res.headersSent) {
res.status(500).json({ error: 'Internal MCP error', detail: String(err) });
res.status(500).json({ error: 'Internal MCP error' });
}
}
return;