Skip to main content
Glama

Codex-Sentry-MCP 🚀

An MCP (Model Context Protocol) Server that bridges OpenAI Codex directly with the Sentry error tracking system.

This tool empowers AI development assistants (like Codex) to automatically fetch, read, and analyze the latest error logs from Sentry, pinpoint the root causes, and propose or apply bug fixes directly within the code editor.


🔥 Key Features

  • Automated Log Retrieval: Instantly fetches the latest error events, stack traces, and issue contexts from Sentry.

  • Smart Bug Analysis: Provides structured error context directly to OpenAI Codex for deep diagnostic analysis.

  • Contextual Code Fixes: Enhances the AI's situational awareness to suggest accurate, automated bug resolutions in your workspace.

  • MCP Compliant: Fully compatible with any Model Context Protocol host or client environment.


Related MCP server: Codemend MCP Server

🛠️ Installation & Setup

Prerequisites

  • Node.js (v18 or higher recommended)

  • A Sentry Account & Auth Token

  • An MCP-compatible client environment

Instructions

  1. Clone the repository:

    git clone [https://github.com/tongleminhanh3-dotcom/codex.git](https://github.com/tongleminhanh3-dotcom/codex.git)
    cd codex-sentry-mcp
    Install dependencies:

Bash npm install Configure your environment variables in a .env file:

SENTRY_AUTH_TOKEN=your_sentry_token_here SENTRY_ORG=your_organization_slug SENTRY_PROJECT=your_project_slug Run the server: Bash npm start

Available Tools

1 tool
get_latest_sentry_errorsB

Fetch the latest unresolved error logs and issues from Sentry

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of errors to retrieve (default is 5)

TDQS

B3.3/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. It only states 'fetch' and 'unresolved', but does not disclose if it modifies state, rate limits, pagination, or other behavioral traits beyond the obvious.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence, front-loaded with core action and resource. No unnecessary words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Tool is simple with one optional parameter and no output schema. Description covers the basics but lacks details like sorting order, time range for 'latest', or clarification that it returns only unresolved errors.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%; the single parameter 'limit' has a description in the schema. Description does not add extra meaning beyond what schema provides. Baseline 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states action ('fetch') and resource ('latest unresolved error logs and issues'). Uses specific verb+resource structure, no sibling tools to differentiate.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool vs alternatives or when not to use it. No sibling tools listed, but description lacks context like prerequisites or exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 1 tool updatev1.0.0
    • First observedget_latest_sentry_errors

TDQS

B3.4/5.0
Disambiguation5/5

Only one tool exists, so there is no risk of confusing it with other tools.

Naming Consistency5/5

With a single tool, naming consistency is moot, but the name follows a clear verb_noun pattern and is descriptive.

Tool Count3/5

A single tool is borderline for a server aimed at Sentry error monitoring; it feels thin but is focused on a specific task.

Completeness2/5

The server only retrieves errors, lacking common operations like resolving, acknowledging, or filtering errors, leaving significant gaps for typical Sentry workflows.

Maintenance

ActivityInactive
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    Integrates Sentry error monitoring with AI-powered analysis to automatically capture frontend JavaScript errors and provide intelligent repair suggestions through multiple AI models including OpenAI, Claude, and Gemini.
    -
  • A
    license
    A
    quality
    D
    maintenance
    Connects AI tools directly to Codemend production error monitoring to list, analyze, and resolve software crashes. It enables users to retrieve AI-generated fixes and automatically open GitHub pull requests to address production issues.
    5
    15
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables interaction with Sentry's error tracking and monitoring tools through a unified API, allowing natural language access to Sentry services.
    MIT

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/tongleminhanh3-dotcom/codex-sentry-mcp'

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