Skip to main content
Glama
diegofornalha

MCP Sentry para Cursor

sentry_add_breadcrumb

Add debugging breadcrumbs to track application flow and errors in Sentry for Cursor, providing context for troubleshooting issues.

Instructions

Add a breadcrumb for debugging context

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYesBreadcrumb message
categoryNoCategory of the breadcrumb
levelNoSeverity levelinfo
dataNoAdditional data for the breadcrumb

Implementation Reference

  • The handler function that implements the sentry_add_breadcrumb tool by calling Sentry.addBreadcrumb with the provided message, category, level (mapped), data, and current timestamp.
    case "sentry_add_breadcrumb": {
      const { message, category, level = "info", data } = args as any;
      
      Sentry.addBreadcrumb({
        message,
        category,
        level: mapSeverityLevel(level),
        data,
        timestamp: Date.now() / 1000,
      });
      
      return {
        content: [
          {
            type: "text",
            text: `Breadcrumb added: ${message}`,
          },
        ],
      };
    }
  • The input schema for the sentry_add_breadcrumb tool, defining parameters: message (required), category, level (default 'info'), and data.
    inputSchema: {
      type: "object",
      properties: {
        message: {
          type: "string",
          description: "Breadcrumb message",
        },
        category: {
          type: "string",
          description: "Category of the breadcrumb",
        },
        level: {
          type: "string",
          enum: ["fatal", "error", "warning", "info", "debug"],
          description: "Severity level",
          default: "info",
        },
        data: {
          type: "object",
          description: "Additional data for the breadcrumb",
          additionalProperties: true,
        },
      },
      required: ["message"],
    },
  • src/index.ts:165-193 (registration)
    The tool registration in the ListTools response, including name, description, and inputSchema for sentry_add_breadcrumb.
    {
      name: "sentry_add_breadcrumb",
      description: "Add a breadcrumb for debugging context",
      inputSchema: {
        type: "object",
        properties: {
          message: {
            type: "string",
            description: "Breadcrumb message",
          },
          category: {
            type: "string",
            description: "Category of the breadcrumb",
          },
          level: {
            type: "string",
            enum: ["fatal", "error", "warning", "info", "debug"],
            description: "Severity level",
            default: "info",
          },
          data: {
            type: "object",
            description: "Additional data for the breadcrumb",
            additionalProperties: true,
          },
        },
        required: ["message"],
      },
    },

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