sentry_list_releases
Retrieve a list of releases for a specific project using the project slug/identifier, aiding in error monitoring and application health tracking.
Instructions
List releases for a project
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectSlug | Yes | Project slug/identifier |
Implementation Reference
- src/index.ts:442-455 (registration)Tool registration including name, description, and input schema for sentry_list_releases.{ name: "sentry_list_releases", description: "List releases for a project", inputSchema: { type: "object", properties: { projectSlug: { type: "string", description: "Project slug/identifier", }, }, required: ["projectSlug"], }, },
- src/index.ts:1061-1079 (handler)MCP tool handler that validates apiClient, calls listReleases on project, and returns formatted list of releases.case "sentry_list_releases": { if (!apiClient) { throw new Error("Sentry API client not initialized. Provide auth token."); } const { projectSlug } = args as any; const releases = await apiClient.listReleases(projectSlug); return { content: [ { type: "text", text: `Found ${releases.length} releases:\n${releases.slice(0, 10).map((r: any) => `- ${r.version} (${new Date(r.dateCreated).toLocaleDateString()})` ).join('\n')}${releases.length > 10 ? '\n... and more' : ''}`, }, ], }; }
- src/sentry-api-client.ts:82-83 (helper)Helper method in SentryAPIClient that makes API request to fetch releases for a specific project.return this.request(`/projects/${this.org}/${projectSlug}/releases/`); }