list_projects
Retrieve all projects within your Glitchtip organization to monitor error tracking across different applications and services.
Instructions
List all Glitchtip projects in the organization
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.js:420-463 (handler)The handler function that lists all Glitchtip projects in the organization by fetching from the API and returning JSON data.async listProjects() { const url = `${this.apiEndpoint}/api/0/organizations/${this.organizationSlug}/projects/`; 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 projects: ${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:89-96 (schema)The tool schema definition, including name, description, and empty input schema (no parameters required).{ name: "list_projects", description: "List all Glitchtip projects in the organization", inputSchema: { type: "object", properties: {} } },
- src/index.js:143-144 (registration)Registration of the tool in the dispatcher switch case within the CallToolRequestHandler.case "list_projects": return await this.listProjects();