create_project_view
Generate custom views for GitHub projects, such as boards, tables, timelines, or roadmaps, by specifying project ID, view name, and layout type.
Instructions
Create a new view for a GitHub project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layout | Yes | ||
| name | Yes | ||
| projectId | Yes |
Implementation Reference
- Main handler function that executes the create_project_view tool logic. Delegates to GitHubProjectRepository.createView for the actual GitHub API call.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); } }
- ToolDefinition for create_project_view including input schema (createProjectViewSchema defined lines 356-362), description, and examples.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" } } ] };
- src/infrastructure/tools/ToolRegistry.ts:247-247 (registration)Registers the createProjectViewTool in the central ToolRegistry during initialization.this.registerTool(createProjectViewTool);
- src/index.ts:393-394 (registration)MCP server dispatches tool calls to the ProjectManagementService handler.case "create_project_view": return await this.service.createProjectView(args);