fix(mcp): include collection name in status output (#416)

The MCP status tool shows collection paths but not names,
making it impossible for agents to discover valid collection
filter values. The CLI 'qmd status' already shows names.

Add col.name prefix to each collection line in the status
tool response.
This commit is contained in:
Oliver Ratzesberger 2026-04-05 22:43:25 +02:00 committed by GitHub
parent 209b797c6a
commit 959b719038
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -506,7 +506,7 @@ Intent-aware lex (C++ performance, not sports):
];
for (const col of status.collections) {
summary.push(` - ${col.path} (${col.documents} docs)`);
summary.push(` - ${col.name}: ${col.path} (${col.documents} docs)`);
}
return {