Skip to main content
Glama

create_project_view

Create a new view for GitHub projects to organize tasks as boards, tables, timelines, or roadmaps for better project management and visibility.

Instructions

Create a new view for a GitHub project

Input Schema

NameRequiredDescriptionDefault
projectIdYes
nameYes
layoutYes

Input Schema (JSON Schema)

{ "properties": { "layout": { "enum": [ "board", "table", "timeline", "roadmap" ] }, "name": { "type": "string" }, "projectId": { "type": "string" } }, "required": [ "projectId", "name", "layout" ], "type": "object" }

Implementation Reference

  • Main handler method that executes the create_project_view tool by delegating to the GitHubProjectRepository.createView method.
    async createProjectView(data: { projectId: string; name: string; layout: 'board' | 'table' | 'timeline' | 'roadmap'; }): Promise<ProjectView> { try { return await this.projectRepo.createView( data.projectId, data.name, data.layout ); } catch (error) { throw this.mapErrorToMCPError(error); } }
  • Zod schema definition for validating input arguments to the create_project_view tool, including projectId, name, and layout.
    // Schema for create_project_view tool export const createProjectViewSchema = z.object({ projectId: z.string().min(1, "Project ID is required"), name: z.string().min(1, "View name is required"), layout: z.enum(["board", "table", "timeline", "roadmap"]), }); export type CreateProjectViewArgs = z.infer<typeof createProjectViewSchema>;
  • Registration of the create_project_view tool in the central ToolRegistry during initialization of built-in tools.
    this.registerTool(createProjectViewTool); this.registerTool(listProjectViewsTool); this.registerTool(updateProjectViewTool);
  • ToolDefinition export that includes the schema, description, name, and examples for the create_project_view tool.
    export const createProjectViewTool: ToolDefinition<CreateProjectViewArgs> = { name: "create_project_view", description: "Create a new view for a GitHub project", schema: createProjectViewSchema as unknown as ToolSchema<CreateProjectViewArgs>, examples: [ { name: "Create kanban board view", description: "Create a board view for a project", args: { projectId: "PVT_kwDOLhQ7gc4AOEbH", name: "Development Board", layout: "board" } } ] };
  • Dispatch handler in the main server that routes create_project_view calls to the ProjectManagementService.createProjectView method.
    case "create_project_view": return await this.service.createProjectView(args);

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/HarshKumarSharma/MCP'

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