Skip to main content
Glama
CleverMobi

Glitchtip MCP Server

by CleverMobi

list_events

Retrieve error events from a Glitchtip project to monitor and debug application issues. Specify the project slug to view recent events with configurable limits.

Instructions

List events for a specific project (requires event:read scope)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of events to return (default: 25)
project_slugYesThe slug of the project

Implementation Reference

  • The handler function that implements the list_events tool logic: fetches events from Glitchtip API for the specified project.
    async listEvents(args) { const { project_slug, limit = 25 } = args || {}; if (!project_slug) { return { content: [ { type: "text", text: "Error: project_slug is required" } ] }; } const url = `${this.apiEndpoint}/api/0/projects/${this.organizationSlug}/${project_slug}/events/?limit=${limit}`; try { const response = await fetch(url, { method: 'GET', headers: { 'Authorization': `Bearer ${this.apiToken}`, 'Accept': 'application/json' } }); if (!response.ok) { const errorText = await response.text(); return { content: [ { type: "text", text: `Error fetching events: ${response.status} ${response.statusText}\n${errorText}` } ] }; } const data = await response.json(); return { content: [ { type: "text", text: JSON.stringify(data, null, 2) } ] }; } catch (error) { return { content: [ { type: "text", text: `Error: ${error.message}` } ] }; } }
  • The input schema and metadata for the list_events tool, as returned by the ListTools handler.
    { name: "list_events", description: "List events for a specific project (requires event:read scope)", inputSchema: { type: "object", properties: { project_slug: { type: "string", description: "The slug of the project" }, limit: { type: "number", description: "Maximum number of events to return (default: 25)" } }, required: ["project_slug"] } },
  • src/index.js:141-142 (registration)
    The switch case in the CallToolRequestHandler that registers and dispatches calls to the listEvents handler.
    case "list_events": return await this.listEvents(args);

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/CleverMobi/glitchtip-mcp'

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