linear_subscribeToIssue
Subscribe to updates for a specific issue in Linear project management by providing the issue ID, ensuring timely notifications and tracking changes.
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 main handler function for the linear_subscribeToIssue tool. It validates the input arguments using the type guard and calls the LinearService to subscribe to the 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 definition (schema) 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 handler for linear_subscribeToIssue in the central tool handlers registry.linear_subscribeToIssue: handleSubscribeToIssue(linearService),
- src/tools/type-guards.ts:277-286 (helper)Type guard helper function to validate arguments for the linear_subscribeToIssue tool.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' ); }