INNER CODE UNIT · TypeScript
active
BradGroux/veritas-kanban · mcp/src/index.ts:167
const active = tasks.filter((t) => t.status === 'in-progress' || t.status === 'blocked');
return {
contents: [
{
uri,
mimeType: 'application/json',
text: JSON.stringify(active, null, 2),
},
],
};
}
if (uri.startsWith('kanban://task/')) {
const id = uri.replace('kanban://task/', '');
const task = await findTask(id);
if (!task) {
throw new Error(`Task not found: ${id}`);