pylon_get_issue_followers
Retrieve users following a specific issue in the Pylon customer support platform to track engagement and notifications.
Instructions
Get the list of users following an issue
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The issue ID |
Implementation Reference
- src/index.ts:439-451 (registration)Registers the pylon_get_issue_followers MCP tool, including description, input schema, and inline handler function.server.tool( 'pylon_get_issue_followers', 'Get the list of users following an issue', { id: z.string().describe('The issue ID'), }, async ({ id }) => { const result = await client.getIssueFollowers(id); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], }; }, );
- src/index.ts:445-449 (handler)Inline handler function for the tool that invokes PylonClient.getIssueFollowers and returns JSON-formatted response.async ({ id }) => { const result = await client.getIssueFollowers(id); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }], };
- src/index.ts:442-444 (schema)Zod input schema defining the required 'id' parameter for the tool.{ id: z.string().describe('The issue ID'), },
- src/pylon-client.ts:350-357 (helper)PylonClient helper method that performs the actual API GET request to retrieve followers for the specified issue.async getIssueFollowers( id: string, ): Promise<PaginatedResponse<{ id: string; email: string }>> { return this.request<PaginatedResponse<{ id: string; email: string }>>( 'GET', `/issues/${id}/followers`, ); }