pylon_update_issue_followers
Manage issue followers in Pylon by adding or removing users to track support tickets and ensure relevant team members stay informed about updates.
Instructions
Add or remove followers from an issue
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The issue ID | |
| add_user_ids | No | User IDs to add as followers | |
| remove_user_ids | No | User IDs to remove as followers |
Implementation Reference
- src/pylon-client.ts:359-368 (handler)Core handler method that performs the HTTP POST request to the Pylon API endpoint `/issues/${id}/followers` to update issue followers.async updateIssueFollowers( id: string, data: { add_user_ids?: string[]; remove_user_ids?: string[] }, ): Promise<SingleResponse<{ success: boolean }>> { return this.request<SingleResponse<{ success: boolean }>>( 'POST', `/issues/${id}/followers`, data, ); }
- src/index.ts:453-476 (registration)Registers the MCP tool 'pylon_update_issue_followers' with input schema and thin wrapper handler that delegates to PylonClient.server.tool( 'pylon_update_issue_followers', 'Add or remove followers from an issue', { id: z.string().describe('The issue ID'), add_user_ids: z .array(z.string()) .optional() .describe('User IDs to add as followers'), remove_user_ids: z .array(z.string()) .optional() .describe('User IDs to remove as followers'), }, async ({ id, add_user_ids, remove_user_ids }) => { const result = await client.updateIssueFollowers(id, { add_user_ids, remove_user_ids, }); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; }, );
- src/index.ts:456-466 (schema)Zod input schema defining parameters for the tool: issue id, optional arrays of user ids to add or remove as followers.{ id: z.string().describe('The issue ID'), add_user_ids: z .array(z.string()) .optional() .describe('User IDs to add as followers'), remove_user_ids: z .array(z.string()) .optional() .describe('User IDs to remove as followers'), },