Skip to main content
Glama
diegofornalha

MCP Sentry para Cursor

sentry_create_project

Create a new Sentry project to track deployments, releases, and application health metrics for error monitoring and performance insights.

Instructions

Create a new project in Sentry. Track deployments, releases and health metrics.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesProject name
slugYesProject slug (URL-friendly identifier)
platformNoPlatform (e.g., 'javascript', 'python', 'node')
teamYesTeam slug

Implementation Reference

  • MCP tool handler for 'sentry_create_project' that validates apiClient, extracts parameters (name, slug, platform, team), calls SentryAPIClient.createProject, and returns formatted project details.
    case "sentry_create_project": {
      if (!apiClient) {
        throw new Error("Sentry API client not initialized. Provide auth token.");
      }
      
      const { name, slug, platform = "javascript", team } = args as any;
      const project = await apiClient.createProject({ name, slug, platform, team });
      
      return {
        content: [
          {
            type: "text",
            text: `Project created successfully:\n` +
              `- Name: ${project.name}\n` +
              `- Slug: ${project.slug}\n` +
              `- ID: ${project.id}\n` +
              `- Platform: ${project.platform}\n` +
              `- Status: ${project.status}`,
          },
        ],
      };
    }
  • src/index.ts:570-595 (registration)
    Tool registration in ListToolsRequestSchema handler, defining name, description, and input schema requiring name, slug, team with optional platform.
    {
      name: "sentry_create_project",
      description: "Create a new project in Sentry. Track deployments, releases and health metrics.",
      inputSchema: {
        type: "object",
        properties: {
          name: {
            type: "string",
            description: "Project name",
          },
          slug: {
            type: "string",
            description: "Project slug (URL-friendly identifier)",
          },
          platform: {
            type: "string",
            description: "Platform (e.g., 'javascript', 'python', 'node')",
          },
          team: {
            type: "string",
            description: "Team slug",
          },
        },
        required: ["name", "slug", "team"],
      },
    },
  • Input schema defining properties and requirements for the sentry_create_project tool.
      type: "object",
      properties: {
        name: {
          type: "string",
          description: "Project name",
        },
        slug: {
          type: "string",
          description: "Project slug (URL-friendly identifier)",
        },
        platform: {
          type: "string",
          description: "Platform (e.g., 'javascript', 'python', 'node')",
        },
        team: {
          type: "string",
          description: "Team slug",
        },
      },
      required: ["name", "slug", "team"],
    },
  • Core helper method in SentryAPIClient that sends POST request to Sentry API endpoint /teams/{org}/{team}/projects/ with project data to create the project.
    async createProject(data: any) {
      return this.request(`/teams/${this.org}/${data.team}/projects/`, {
        method: 'POST',
        body: JSON.stringify(data),
      });
    }

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