get_project
Retrieve detailed information about a specific GitHub project, including its structure, tasks, and current status, to support project management and tracking.
Instructions
Get details of a specific GitHub project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes |
Implementation Reference
- Core handler implementation that fetches project details by ID using the GitHubProjectRepositoryasync getProject(projectId: string): Promise<Project | null> { try { return await this.projectRepo.findById(projectId); } catch (error) { throw this.mapErrorToMCPError(error); } }
- src/index.ts:265-267 (handler)MCP server dispatch handler that routes 'get_project' tool calls to the ProjectManagementServicecase "get_project": return await this.service.getProject(args.projectId);
- src/infrastructure/tools/ToolRegistry.ts:195-195 (registration)Registers the getProjectTool in the central ToolRegistry singletonthis.registerTool(getProjectTool);
- Defines the get_project tool including input schema (projectId: string), description, and usage examplesexport const getProjectTool: ToolDefinition<GetProjectArgs> = { name: "get_project", description: "Get details of a specific GitHub project", schema: getProjectSchema as unknown as ToolSchema<GetProjectArgs>, examples: [ { name: "Get project details", description: "Get details for a specific project", args: { projectId: "PVT_kwDOLhQ7gc4AOEbH" } } ] };
- Zod input schema validation for get_project tool parametersexport const getProjectSchema = z.object({ projectId: z.string().min(1, "Project ID is required"), }); export type GetProjectArgs = z.infer<typeof getProjectSchema>;