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
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Project name | |
| slug | Yes | Project slug (URL-friendly identifier) | |
| platform | No | Platform (e.g., 'javascript', 'python', 'node') | |
| team | Yes | Team slug |
Implementation Reference
- src/index.ts:1208-1229 (handler)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"], }, },
- src/index.ts:574-594 (schema)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"], },
- src/sentry-api-client.ts:47-52 (helper)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), }); }