Skip to content

MCP Server

TrapFall includes a Model Context Protocol (MCP) server for AI agent integration. Communicates via stdio JSON-RPC 2.0.

Starting

bash
trapfall mcp --db trapfall.db

Configure your AI client to run this command as an MCP server.

Available Tools

ToolDescription
list_issuesList issues for a project (with filters)
get_issueGet issue detail by ID
get_eventGet event detail by ID
set_statusSet issue status (resolved/unresolved/ignored)
search_issuesSearch issues by query string
list_projectsList all projects
get_projectGet project detail by slug
get_project_statsGet issue/event counts for a project
list_alert_rulesList alert rules for a project
list_eventsList events for an issue
rotate_dsnGenerate new DSN key for a project
healthcheckCheck server health

Example: AI Agent Usage

An AI agent connected via MCP can:

  1. Monitor errorslist_issues to check for new errors
  2. Investigateget_issue + list_events to see full stack traces
  3. Take actionset_status to resolve or ignore issues
  4. Searchsearch_issues to find specific errors
  5. Manage projectslist_projects, get_project_stats

Transport

stdio only. No TCP. This is by design — MCP servers are launched as child processes by the AI client.