Skip to main content
Glama
kunwarVivek

mcp-github-project-manager

generate_roadmap

Generate project roadmaps automatically from GitHub issues by creating milestones, sprints, and phases to organize development workflows.

Instructions

AI-powered roadmap generation from project issues. Creates milestones, sprints, and phases automatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectIdYes
projectTitleYes
projectDescriptionNo
sprintDurationWeeksNo
targetMilestonesNo
autoCreateNo

Implementation Reference

  • Core handler implementing the generate_roadmap tool logic: fetches project issues, uses AI to analyze and create roadmap structure with phases, milestones, and sprints
    async generateRoadmap(params: {
      projectId: string;
      projectTitle: string;
      projectDescription?: string;
      sprintDurationWeeks?: number;
      targetMilestones?: number;
    }): Promise<{
      roadmap: {
        phases: Array<{
          name: string;
          description: string;
          duration: string;
          milestones: Array<{
            title: string;
            description: string;
            dueDate?: string;
            issues: string[];
          }>;
        }>;
      };
      milestones: Array<{
        title: string;
        description: string;
        dueDate?: string;
        issueIds: string[];
      }>;
      sprints: Array<{
        title: string;
        description: string;
        startDate: string;
        endDate: string;
        issueIds: string[];
      }>;
    }> {
      try {
        this.logger.info(`Generating roadmap for project ${params.projectId}`);
    
        // Fetch all issues for the project
        const items = await this.projectService.listProjectItems({
          projectId: params.projectId,
          limit: 200
        });
    
        // Extract issue information
        const issues = items.map((item: any) => ({
          id: item.id,
          title: item.title || 'Untitled',
          type: item.type,
          content: item.content
        }));
    
        if (issues.length === 0) {
          throw new Error('No issues found in project. Cannot generate roadmap.');
        }
    
        // Generate roadmap using AI
        const roadmapAnalysis = await this.analyzeIssuesForRoadmap({
          projectTitle: params.projectTitle,
          projectDescription: params.projectDescription || '',
          issues,
          sprintDurationWeeks: params.sprintDurationWeeks || 2,
          targetMilestones: params.targetMilestones || 4
        });
    
        return roadmapAnalysis;
      } catch (error) {
        this.logger.error('Failed to generate roadmap', error);
        throw error;
      }
    }
  • MCP tool dispatch handler for generate_roadmap: calls RoadmapPlanningService and handles optional GitHub creation
    private async handleGenerateRoadmap(args: any): Promise<any> {
      try {
        const roadmap = await this.roadmapService.generateRoadmap({
          projectId: args.projectId,
          projectTitle: args.projectTitle,
          projectDescription: args.projectDescription,
          sprintDurationWeeks: args.sprintDurationWeeks,
          targetMilestones: args.targetMilestones
        });
    
        if (args.autoCreate) {
          const result = await this.roadmapService.createRoadmapInGitHub({
            projectId: args.projectId,
            roadmap
          });
    
          return {
            success: true,
            roadmap,
            created: result
          };
        }
    
        return {
          success: true,
          roadmap
        };
      } catch (error) {
        this.logger.error("Failed to generate roadmap:", error);
        throw new McpError(
          ErrorCode.InternalError,
          `Failed to generate roadmap: ${error instanceof Error ? error.message : 'Unknown error'}`
        );
      }
    }
  • ToolDefinition object registering generate_roadmap with schema reference, description, and usage examples
    export const generateRoadmapTool: ToolDefinition<GenerateRoadmapArgs> = {
      name: "generate_roadmap",
      description: "AI-powered roadmap generation from project issues. Creates milestones, sprints, and phases automatically.",
      schema: generateRoadmapSchema as unknown as ToolSchema<GenerateRoadmapArgs>,
      examples: [
        {
          name: "Generate roadmap",
          description: "Create a comprehensive roadmap from existing issues",
          args: {
            projectId: "PVT_kwDOLhQ7gc4AOEbH",
            projectTitle: "API Platform Development",
            projectDescription: "Build a scalable REST API platform",
            sprintDurationWeeks: 2,
            targetMilestones: 4,
            autoCreate: true
          }
        }
      ]
    };
  • Zod input schema validating parameters for generate_roadmap tool
    export const generateRoadmapSchema = z.object({
      projectId: z.string().min(1, "Project ID is required"),
      projectTitle: z.string().min(1, "Project title is required"),
      projectDescription: z.string().optional(),
      sprintDurationWeeks: z.number().int().positive().default(2).optional(),
      targetMilestones: z.number().int().positive().default(4).optional(),
      autoCreate: z.boolean().default(false).optional()
    });
  • Registers generateRoadmapTool in ToolRegistry during initialization of built-in tools
    this.registerTool(generateRoadmapTool);
    this.registerTool(enrichIssueTool);
    this.registerTool(enrichIssuesBulkTool);
    this.registerTool(triageIssueTool);
    this.registerTool(triageAllIssuesTool);
    this.registerTool(scheduleTriagingTool);
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions 'AI-powered' and 'automatically', hinting at automation, but lacks critical details: whether this is a read-only or mutating operation (likely mutating given 'creates'), permission requirements, rate limits, side effects (e.g., if it modifies existing data), or output format. For a tool with 6 parameters and no annotations, this is a significant gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise—two short sentences with zero wasted words. It's front-loaded with the core purpose ('AI-powered roadmap generation from project issues') and adds a clarifying detail. Every sentence earns its place by conveying essential information efficiently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (6 parameters, no annotations, no output schema), the description is incomplete. It lacks behavioral context (e.g., mutation effects), parameter explanations, and output details. While conciseness is high, the description doesn't provide enough information for an agent to confidently invoke this tool without guessing at semantics or side effects.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the schema provides no parameter details. The description adds minimal value: it implies parameters relate to 'project issues' and outputs like 'milestones, sprints, and phases', but doesn't explain any of the 6 parameters (e.g., what 'autoCreate' does or how 'sprintDurationWeeks' is used). With low coverage, the description fails to compensate, leaving parameters largely undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: 'AI-powered roadmap generation from project issues. Creates milestones, sprints, and phases automatically.' It specifies the verb ('generation'), resource ('roadmap'), and source ('project issues'), and distinguishes it from siblings like 'create_roadmap' by emphasizing AI automation. However, it doesn't explicitly contrast with all similar tools like 'plan_sprint' or 'create_milestone', keeping it at 4 rather than 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., existing project issues), exclusions, or compare it to siblings like 'create_roadmap' or 'plan_sprint'. The agent must infer usage from the purpose alone, which is insufficient for optimal tool selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

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/kunwarVivek/mcp-github-project-manager'

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