list_issues
Retrieve and display error tracking issues from Glitchtip, allowing filtering by project and setting result limits to monitor and debug application errors effectively.
Instructions
List issues in the organization or a specific project (requires event:read scope)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of issues to return (default: 25) | |
| project_slug | No | Optional project slug to filter issues by project |
Implementation Reference
- src/index.js:308-358 (handler)The handler function that executes the list_issues tool logic by fetching issues from the Glitchtip API.async listIssues(args) { const { project_slug, limit = 25 } = args || {}; let url; if (project_slug) { url = `${this.apiEndpoint}/api/0/projects/${this.organizationSlug}/${project_slug}/issues/?limit=${limit}`; } else { url = `${this.apiEndpoint}/api/0/organizations/${this.organizationSlug}/issues/?limit=${limit}`; } try { const response = await fetch(url, { method: 'GET', headers: { 'Authorization': `Bearer ${this.apiToken}`, 'Accept': 'application/json' } }); if (!response.ok) { const errorText = await response.text(); return { content: [ { type: "text", text: `Error fetching issues: ${response.status} ${response.statusText}\n${errorText}` } ] }; } const data = await response.json(); return { content: [ { type: "text", text: JSON.stringify(data, null, 2) } ] }; } catch (error) { return { content: [ { type: "text", text: `Error: ${error.message}` } ] }; }
- src/index.js:54-70 (schema)The input schema and description for the list_issues tool, registered in the ListTools response.{ name: "list_issues", description: "List issues in the organization or a specific project (requires event:read scope)", inputSchema: { type: "object", properties: { project_slug: { type: "string", description: "Optional project slug to filter issues by project" }, limit: { type: "number", description: "Maximum number of issues to return (default: 25)" } } } },
- src/index.js:139-140 (registration)The switch case that registers and dispatches to the listIssues handler for the list_issues tool.case "list_issues": return await this.listIssues(args);