bug_tracker_mcp

bug_tracker_mcp

A lightweight MCP server for tracking bugs and tasks across coding sessions, providing persistent SQLite-backed storage and six tools for logging, inspecting, updating, resolving, and deleting bugs.

Category
访问服务器

README

bug_tracker_mcp

Python 3.12+ FastMCP

A lean, agent-first Model Context Protocol (MCP) server for tracking bugs, tasks, and context across coding sessions. Designed to give AI agents (like Claude Desktop, Antigravity, and Cursor) zero-friction persistent memory for issues discovered during development.


Overview

When pair-programming with AI agents, bugs and technical debt are frequently discovered mid-task. Without a persistent tracker, these issues get lost when context windows reset.

bug_tracker_mcp solves this with a lightweight SQLite-backed MCP server. It provides 6 fast MCP tools allowing agents to log, inspect, update, resolve, and delete bugs across project-local (git repo root .bugtracker/bugs.db) or global system (~/.local/share/bug-tracker-mcp/bugs.db) scopes.


Architecture

The system is organized into decoupled Python modules:

  • FastMCP Server (bug_tracker_mcp.server): Defines stdio transport MCP tools using fastmcp.FastMCP. Handles argument validation, scope resolution, and converts internal exceptions to user-friendly ToolError responses.
  • Scope Resolution (bug_tracker_mcp.scope): Automatically detects local project root by walking parent directories for .git or respects explicit directory overrides. Supports two scopes:
    • local (default): <git_root>/.bugtracker/bugs.db
    • global: $XDG_DATA_HOME/bug-tracker-mcp/bugs.db (or ~/.local/share/bug-tracker-mcp/bugs.db)
  • SQLite Storage Layer (bug_tracker_mcp.storage): Manages SQLite connections with WAL journal mode, busy timeouts, auto-migrations via user_version, and full CRUD operations.
  • Pydantic Models (bug_tracker_mcp.models): Strict Pydantic models (Bug, BugSummary, BugListResponse) enforcing schema and typed responses.
  • Environment Configuration (bug_tracker_mcp.config): Reads optional environment variable overrides for custom local/global database paths.

Installation & Setup

Install and manage dependencies using uv:

# Clone repository
git clone https://github.com/realsidg/bug_tracker_mcp.git
cd bug_tracker_mcp

# Install dependencies and setup virtual environment
uv sync

Agent Configuration

Register bug-tracker-mcp with your agent workspace or desktop client.

Workspace .mcp.json

Add to .mcp.json in your workspace root:

{
  "mcpServers": {
    "bug-tracker": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/bug_tracker_mcp",
        "bug-tracker-mcp"
      ]
    }
  }
}

Claude Desktop (claude_desktop_config.json)

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "bug-tracker": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/path/to/bug_tracker_mcp",
        "bug-tracker-mcp"
      ]
    }
  }
}

Environment Variables

You can override storage locations by setting environment variables:

Variable Description Default
BUGTRACKER_LOCAL_ROOT Overrides root directory for local scope storage (.bugtracker/bugs.db created inside this path). Nearest directory containing .git (or current directory if none found).
BUGTRACKER_GLOBAL_ROOT Overrides root directory for global scope storage (bugs.db created inside this path). $XDG_DATA_HOME/bug-tracker-mcp or ~/.local/share/bug-tracker-mcp.

Tool Reference

bug_tracker_mcp exposes 6 tools to AI agents:

Tool Name Parameters Description
log_bug title (str, required)<br>description (str, optional)<br>severity (minor | major | blocking, default: minor) <br>location (str, optional)<br>tags (list[str], optional)<br>found_while (str, optional)<br>scope (local | global, default: local) Logs a new bug into storage and returns the created Bug record with auto-incremented ID.
list_bugs status (open | fixed | all, default: open)<br>severity (minor | major | blocking, optional)<br>tag (str, optional)<br>limit (int, default: 50)<br>offset (int, default: 0)<br>scope (local | global, default: local) Lists lightweight BugSummary items with filtering and pagination.
get_bug bug_id (int, required)<br>scope (local | global, default: local) Returns complete details of a specific bug by ID. Raises ToolError if not found.
update_bug bug_id (int, required)<br>title, description, severity, location, tags, found_while, status (optional)<br>scope (local | global, default: local) Updates specific attributes of an existing bug. Raises ToolError if not found.
resolve_bug bug_id (int, required)<br>resolution (str, optional)<br>scope (local | global, default: local) Marks a bug as fixed, sets optional resolution explanation, and records fixed_at timestamp. Raises ToolError if not found.
delete_bug bug_id (int, required)<br>scope (local | global, default: local) Permanently removes a bug by ID. Returns {"deleted": true, "bug_id": bug_id} or raises ToolError if not found.

Development & Testing

Run all quality checks:

# Run pytest test suite
uv run pytest

# Check code formatting and linting
uv run ruff check .
uv run ruff format --check .

# Run static type checker in strict mode
uv run mypy src

# Run pre-commit hooks
uv run pre-commit run --all-files

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选