Skip to content

v0.7.0: MCP Server to expose Orbit telemetry

Choose a tag to compare

@astro-stack astro-stack released this 03 Apr 05:37
· 20 commits to main since this release
  • MCP Server (python manage.py orbit_mcp): Expose Orbit telemetry as an
    MCP (Model Context Protocol) server so AI
    assistants like Claude, Cursor, and Copilot can query your app's observability
    data directly.

    Tools available to the AI:

    • get_recent_requests — last N HTTP requests with status, path, duration
    • get_slow_queries — SQL queries above the slow-query threshold, sorted by duration
    • get_exceptions — exceptions in a given time window with full traceback
    • get_n1_patterns — requests where N+1 duplicate queries were detected
    • search_entries — keyword search across all entry types
    • get_request_detail — every event (queries, logs, exceptions) for one request via family_hash
    • get_stats_summary — error rate, avg response time, cache hit rate, top error paths
  • New optional dependency: pip install django-orbit[mcp] installs the mcp>=1.0 package.
    The core package remains dependency-free.

Configuration

ORBIT_CONFIG = {
    'MCP_ENABLED': True,  # default
}