claim
Claim a GitHub issue by posting a comment with your intent to work on it.
Instructions
Claim a GitHub issue by posting a comment expressing intent to work on it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issueUrl | Yes | Full GitHub issue URL to claim | |
| message | No | Custom claim message. If omitted, a default message is used. |
Implementation Reference
- Output type definition for the claim command, containing commentUrl and issueUrl.
export interface ClaimOutput { commentUrl: string; issueUrl: string; } - Zod schema for claim output validation: commentUrl (string) and issueUrl (string).
export const ClaimOutputSchema = z.object({ commentUrl: z.string(), issueUrl: z.string(), }); - packages/mcp-server/src/tools.ts:363-376 (registration)MCP tool registration for 'claim'. Registers with schema (issueUrl, message), marks as destructive/readOnlyHint=false, and wraps runClaim.
// 10. claim — Claim an issue (#1053: destructive; posts under user's identity) server.registerTool( 'claim', { description: "Claim a GitHub issue by posting a comment expressing intent to work on it. WARNING: posts a public comment under the authenticated user's identity. Irreversible. Do not call without explicit user confirmation.", inputSchema: { issueUrl: githubIssueUrlSchema.describe('Full GitHub issue URL to claim'), message: z.string().optional().describe('Custom claim message. If omitted, a default message is used.'), }, annotations: { readOnlyHint: false, destructiveHint: true }, }, wrapTool(runClaim), );