get_latest_next_steps
Retrieve prioritized next steps for a specific project to streamline task management and enhance workflow coordination on the Project Handoffs MCP Server.
Instructions
Get open next steps ordered by priority
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | Project identifier |
Input Schema (JSON Schema)
{
"properties": {
"projectId": {
"description": "Project identifier",
"type": "string"
}
},
"required": [
"projectId"
],
"type": "object"
}
Implementation Reference
- src/index.ts:244-256 (handler)Core handler function in ProjectManager class that loads project data, filters for open next steps, and sorts them by priority order.async getLatestNextSteps(projectId: string): Promise<NextStep[]> { const data = await this.loadProjectData(projectId); return data.nextSteps .filter(step => step.status === 'open') .sort((a, b) => { const priorityOrder = { 'core-critical': 0, 'full-required': 1, 'enhancement': 2 }; return priorityOrder[a.priority] - priorityOrder[b.priority]; }); }
- src/index.ts:383-393 (registration)Tool registration definition returned by the list_tools handler, including name, description, and input schema.{ name: "get_latest_next_steps", description: "Get open next steps ordered by priority", inputSchema: { type: "object", properties: { projectId: { type: "string", description: "Project identifier" } }, required: ["projectId"] } },
- src/index.ts:386-392 (schema)Input schema definition for the tool, specifying the required projectId parameter.inputSchema: { type: "object", properties: { projectId: { type: "string", description: "Project identifier" } }, required: ["projectId"] }
- src/index.ts:499-506 (handler)Dispatch logic in the CallToolRequestSchema handler that calls the core handler and returns the result as JSON text content.case "get_latest_next_steps": const steps = await projectManager.getLatestNextSteps(args.projectId as string); return { content: [{ type: "text", text: JSON.stringify(steps, null, 2) }] };