linear_subscribeToIssue
Subscribe to receive notifications for updates on a specific Linear issue. Stay informed when changes occur to tasks or bugs in your project management workflow.
Instructions
Subscribe to issue updates
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issueId | Yes | ID or identifier of the issue to subscribe to (e.g., ABC-123) |
Implementation Reference
- The primary handler implementation for the 'linear_subscribeToIssue' tool. Validates input arguments and calls the Linear service method to subscribe to the specified issue.export function handleSubscribeToIssue(linearService: LinearService) { return async (args: unknown) => { try { if (!isSubscribeToIssueArgs(args)) { throw new Error('Invalid arguments for subscribeToIssue'); } return await linearService.subscribeToIssue(args.issueId); } catch (error) { logError('Error subscribing to issue', error); throw error; } }; }
- The tool schema definition for 'linear_subscribeToIssue', specifying input (issueId) and output schemas.export const subscribeToIssueToolDefinition: MCPToolDefinition = { name: 'linear_subscribeToIssue', description: 'Subscribe to issue updates', input_schema: { type: 'object', properties: { issueId: { type: 'string', description: 'ID or identifier of the issue to subscribe to (e.g., ABC-123)', }, }, required: ['issueId'], }, output_schema: { type: 'object', properties: { success: { type: 'boolean' }, message: { type: 'string' }, }, }, };
- src/tools/handlers/index.ts:114-114 (registration)Registration of the tool handler in the map returned by registerToolHandlers, mapping 'linear_subscribeToIssue' to the handleSubscribeToIssue factory.linear_subscribeToIssue: handleSubscribeToIssue(linearService),
- src/tools/type-guards.ts:274-286 (helper)Type guard function used in the handler to validate arguments for 'linear_subscribeToIssue' tool./** * Type guard for linear_subscribeToIssue tool arguments */ export function isSubscribeToIssueArgs(args: unknown): args is { issueId: string; } { return ( typeof args === 'object' && args !== null && 'issueId' in args && typeof (args as { issueId: string }).issueId === 'string' ); }