sentry_list_projects
Retrieve a complete list of all projects within an organization for error monitoring and application health tracking using the MCP Sentry server integration.
Instructions
List all projects in the organization
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:1002-1017 (handler)The main handler for the 'sentry_list_projects' tool. It checks if the API client is initialized, calls apiClient.listProjects(), and returns a formatted text response listing the projects.case "sentry_list_projects": { if (!apiClient) { throw new Error("Sentry API client not initialized. Provide auth token."); } const projects = await apiClient.listProjects(); return { content: [ { type: "text", text: `Found ${projects.length} projects:\n${projects.map((p: any) => `- ${p.slug}: ${p.name}`).join('\n')}`, }, ], }; }
- src/index.ts:389-396 (schema)Tool definition including name, description, and input schema (empty object, no parameters required). This is part of the tools list returned by ListToolsRequestHandler.{ name: "sentry_list_projects", description: "List all projects in the organization", inputSchema: { type: "object", properties: {}, }, },
- src/sentry-api-client.ts:39-41 (helper)Helper method in SentryAPIClient class that performs the actual API call to fetch the list of projects from Sentry organization.async listProjects() { return this.request(`/organizations/${this.org}/projects/`); }
- src/index.ts:389-396 (registration)Registration of the tool in the server's ListTools response, making it available to MCP clients.{ name: "sentry_list_projects", description: "List all projects in the organization", inputSchema: { type: "object", properties: {}, }, },