Skip to main content
Glama
kunwarVivek

mcp-github-project-manager

create_roadmap

Generate a structured project roadmap with milestones and tasks in GitHub Projects to organize development timelines and track progress.

Instructions

Create a project roadmap with milestones and tasks

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectYes
milestonesYes

Implementation Reference

  • Core handler implementation that validates input, creates GitHub project, milestones, and associated issues for the roadmap.
    async createRoadmap(data: {
      project: CreateProject;
      milestones: Array<{
        milestone: CreateMilestone;
        issues: CreateIssue[];
      }>;
    }): Promise<{
      project: Project;
      milestones: Array<Milestone & { issues: Issue[] }>;
    }> {
      try {
        // Validate input with Zod schema
        const validatedData = CreateRoadmapSchema.parse(data);
    
        // Create properly typed project without using 'any'
        const projectData = {
          ...validatedData.project,
          type: ResourceType.PROJECT,
          status: ResourceStatus.ACTIVE,
          visibility: validatedData.project.visibility || 'private',
          views: [] as ProjectView[],
          fields: [] as CustomField[],
          // Ensure shortDescription is used (description is handled via separate update)
          shortDescription: validatedData.project.shortDescription,
        };
    
        const project = await this.projectRepo.create(
          createResource(ResourceType.PROJECT, projectData)
        );
    
        const milestones = [];
    
        // Create milestones and issues with proper error handling
        for (const { milestone, issues } of validatedData.milestones) {
          try {
            // Ensure milestone description is not undefined
            const milestoneWithRequiredFields = {
              ...milestone,
              description: milestone.description || ''
            };
    
            const createdMilestone = await this.milestoneRepo.create(milestoneWithRequiredFields);
    
            const createdIssues = await Promise.all(
              issues.map(async (issue) => {
                try {
                  return await this.issueRepo.create({
                    ...issue,
                    milestoneId: createdMilestone.id,
                  });
                } catch (error) {
                  throw this.mapErrorToMCPError(error);
                }
              })
            );
    
            milestones.push({
              ...createdMilestone,
              issues: createdIssues,
            });
          } catch (error) {
            throw this.mapErrorToMCPError(error);
          }
        }
    
        return { project, milestones };
      } catch (error) {
        if (error instanceof z.ZodError) {
          throw new ValidationError(`Invalid roadmap data: ${error.message}`);
        }
    
        throw this.mapErrorToMCPError(error);
      }
    }
  • MCP tool dispatcher that routes create_roadmap calls to ProjectManagementService.createRoadmap
    case "create_roadmap":
      return await this.service.createRoadmap(args);
  • Zod input schema defining parameters for create_roadmap: project details and array of milestones with issues.
    export const createRoadmapSchema = z.object({
      project: z.object({
        title: z.string().min(1, "Project title is required"),
        shortDescription: z.string().optional(),
        visibility: z.enum(["private", "public"]),
      }),
      milestones: z.array(
        z.object({
          milestone: z.object({
            title: z.string().min(1, "Milestone title is required"),
            description: z.string().min(1, "Milestone description is required"),
            dueDate: z.string().datetime("Due date must be a valid ISO date string").optional(),
          }),
          issues: z.array(
            z.object({
              title: z.string().min(1, "Issue title is required"),
              description: z.string().min(1, "Issue description is required"),
              priority: z.enum(["high", "medium", "low"]).default("medium"),
              type: z.enum(["bug", "feature", "enhancement", "documentation"]).default("feature"),
              assignees: z.array(z.string()),
              labels: z.array(z.string()),
            })
          ).optional().default([]),
        })
      ),
    });
  • Registers the createRoadmapTool in the central tool registry during built-in tools initialization.
    this.registerTool(createRoadmapTool);
  • ToolDefinition object including name, description, schema reference, and usage examples for create_roadmap.
    export const createRoadmapTool: ToolDefinition<CreateRoadmapArgs> = {
      name: "create_roadmap",
      description: "Create a project roadmap with milestones and tasks",
      schema: createRoadmapSchema as unknown as ToolSchema<CreateRoadmapArgs>,
      examples: [
        {
          name: "Simple project roadmap",
          description: "Create a basic project with two milestones",
          args: {
            project: {
              title: "New Mobile App",
              shortDescription: "Develop a new mobile application for our users",
              visibility: "private",
            },
            milestones: [
              {
                milestone: {
                  title: "Design Phase",
                  description: "Complete all design work for the mobile app",
                  dueDate: "2025-05-01T00:00:00Z",
                },
                issues: [
                  {
                    title: "Create wireframes",
                    description: "Create wireframes for all app screens",
                    priority: "high",
                    type: "feature",
                    assignees: ["designer1"],
                    labels: ["design", "ui"],
                  },
                  {
                    title: "Design system",
                    description: "Develop a consistent design system",
                    priority: "medium",
                    type: "feature",
                    assignees: [],
                    labels: ["design"],
                  },
                ],
              },
              {
                milestone: {
                  title: "Development Phase",
                  description: "Implement the designed features",
                  dueDate: "2025-06-15T00:00:00Z",
                },
                issues: [
                  {
                    title: "User authentication",
                    description: "Implement user login and registration",
                    priority: "high",
                    type: "feature",
                    assignees: ["developer1"],
                    labels: ["auth", "backend"],
                  },
                ],
              },
            ],
          },
        },
      ],
    };
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. While 'create' implies a write operation, the description doesn't mention permission requirements, whether this operation is reversible, what happens on success/failure, or any rate limits. For a creation tool with complex nested parameters, this leaves significant behavioral gaps.

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 a single, efficient sentence that gets straight to the point with zero wasted words. It's appropriately sized for what it communicates, though it could benefit from additional context given the tool's complexity.

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?

For a creation tool with complex nested parameters (2 parameters with deep nesting), no annotations, and no output schema, the description is inadequate. It doesn't explain the parameter structure, expected behavior, success conditions, or relationship to sibling tools, leaving too many gaps for effective tool invocation.

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?

With 0% schema description coverage and 2 complex nested parameters, the description provides no information about what 'project' and 'milestones' should contain. It mentions 'milestones and tasks' but doesn't explain how these map to the actual parameter structure or what the 'issues' field within milestones represents.

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 verb 'create' and the resource 'project roadmap with milestones and tasks', making the purpose specific and understandable. However, it doesn't differentiate from sibling tools like 'generate_roadmap' or 'create_project', which could cause confusion about when to use this specific tool.

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 like 'generate_roadmap', 'create_project', or 'create_milestone'. There's no mention of prerequisites, context, or exclusions that would help an agent choose between these related tools.

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