list-workflows
Retrieve all available workflows from Shortcut to understand project management processes and workflow configurations.
Instructions
List all Shortcut workflows
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"type": "object"
}
Implementation Reference
- src/tools/workflows.ts:37-46 (handler)The handler function listWorkflows() that fetches all workflows using this.client.getWorkflows(), checks if any exist, and returns a formatted result using toResult and entitiesWithRelatedEntities.async listWorkflows() { const workflows = await this.client.getWorkflows(); if (!workflows.length) return this.toResult(`No workflows found.`); return this.toResult( `Result (first ${workflows.length} shown of ${workflows.length} total workflows found):`, await this.entitiesWithRelatedEntities(workflows, "workflows"), ); }
- src/tools/workflows.ts:17-21 (registration)Registration of the "list-workflows" MCP tool using server.tool(), with no input parameters and delegating to the listWorkflows() handler.server.tool( "list-workflows", "List all Shortcut workflows", async () => await tools.listWorkflows(), );