Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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')}`, }, ], }; }
  • 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: {}, }, },
  • 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: {}, }, },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/diegofornalha/sentry-mcp-cursor'

If you have feedback or need assistance with the MCP directory API, please join our Discord server