Skip to main content
Glama

TaskFlow MCP

progress.ts585 B
import { RequestEntry, Task } from "../types/index.js"; export function computeProgress(req: RequestEntry) { const total = req.tasks.length; const done = req.tasks.filter((t) => t.done).length; const percent = total > 0 ? Math.round((done / total) * 100) : 0; return { total, done, remaining: total - done, percent }; } export function computeSubtaskProgress(task: Task) { const total = task.subtasks.length; const done = task.subtasks.filter((s) => s.done).length; const percent = total > 0 ? Math.round((done / total) * 100) : 0; return { total, done, percent }; }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pinkpixel-dev/taskflow-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server