delete_project_view
Remove a view from a GitHub project to declutter your workspace and maintain organized project boards.
Instructions
Delete a view from a GitHub project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | ||
| viewId | Yes |
Implementation Reference
- Main handler implementation for delete_project_view tool. Calls the project repository to delete the specified view.async deleteProjectView(data: { projectId: string; viewId: string; }): Promise<{ success: boolean; message: string }> { try { await this.projectRepo.deleteView(data.projectId, data.viewId); return { success: true, message: `View ${data.viewId} deleted successfully from project ${data.projectId}` }; } catch (error) { throw this.mapErrorToMCPError(error); } }
- Tool definition including schema, description, and examples for delete_project_view.export const deleteProjectViewTool: ToolDefinition<DeleteProjectViewArgs> = { name: "delete_project_view", description: "Delete a view from a GitHub project", schema: deleteProjectViewSchema as unknown as ToolSchema<DeleteProjectViewArgs>, examples: [ { name: "Delete project view", description: "Delete a specific view from a project", args: { projectId: "PVT_kwDOLhQ7gc4AOEbH", viewId: "PVV_lADOLhQ7gc4AOEbHzM4AOAL9" } } ] };
- src/infrastructure/tools/ToolRegistry.ts:250-250 (registration)Registers the deleteProjectViewTool in the central tool registry.this.registerTool(deleteProjectViewTool);
- src/index.ts:402-403 (handler)MCP server dispatch handler that routes call_tool requests for delete_project_view to the service implementation.case "delete_project_view": return await this.service.deleteProjectView(args);
- src/infrastructure/tools/ToolRegistry.ts:69-69 (registration)Import declaration for deleteProjectViewTool used in registration.deleteProjectViewTool,