Labsco
todevelopers logo

FogBugz

β˜… 1

from todevelopers

A local MCP server for interacting with FogBugz issue tracker through LLM

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedAccount requiredAdvanced setup

FogBugz MCP Server icon FogBugz MCP Server

A Model Context Protocol (MCP) server that connects AI assistants to a live FogBugz instance. Search and manage cases, track history, assign and resolve β€” all from a natural language conversation. Works with on-premise and on-demand FogBugz installations.

Features

  • Search and list cases using FogBugz query syntax (e.g. project:Website status:Active)
  • Read case details including full event and comment history
  • Create and update cases β€” set title, project, area, milestone, priority, and comments
  • Full lifecycle management β€” assign, resolve, reopen, and close cases
  • User, project, and area discovery β€” list people, categories, projects, milestones, and statuses
  • Create new projects directly from the conversation
  • Automatic API selection β€” detects your FogBugz version and switches between XML and JSON API automatically

Getting a FogBugz API Token

You need an API token to authenticate the MCP server with FogBugz. There are two ways to obtain one:

Via the web UI

Go to Account & Settings β†’ User Options and click the Create API Token link.

See the official guide: Create API Token using the FogBugz UI

Via API request

Send the following request (replace placeholders with your values):

https://[your-fogbugz-server]/api.asp?cmd=logon&email=[your-email]&password=[your-password]

The response will contain your API token.

See the official guide: Get an API Token using FogBugz API commands


Tools

Case Management

ToolDescription
create_caseCreate a new case
update_caseUpdate an existing case (title, comment, project, area, milestone, priority)
assign_caseAssign a case to a user
resolve_caseResolve (mark as fixed/completed) a case
reopen_caseReopen a resolved or closed case
close_caseClose a case

Search & View

ToolDescription
search_casesSearch using FogBugz query syntax (e.g. project:Website status:Active)
list_my_casesList cases assigned to a user (defaults to current user)
get_caseGet detailed case info including full event/comment history
get_case_linkGet a direct URL to a case

Reference Data

ToolDescription
list_peopleList all users with IDs, names, and emails
list_categoriesList case categories (Bug, Feature Request, etc.)
list_projectsList all active projects with IDs and names
list_milestonesList milestones/fix-fors, optionally by project
list_statusesList case statuses with resolved flags, optionally by category
view_projectGet detailed project information
view_areaGet detailed area information
create_projectCreate a new project

Advanced

ToolDescription
api_requestGeneric XML API escape-hatch for commands not covered by dedicated tools.
⚠️ WARNING: can execute any API command the configured key permits, including destructive operations (delete, edit users, bulk modify).

How It Works

This server implements the Model Context Protocol over stdio. The AI client translates natural language requests into FogBugz queries or API calls, invokes the appropriate tool, and presents the results. The server is a thin proxy β€” it passes requests directly to your FogBugz instance and returns the response.

API Auto-Detection

At startup the server automatically selects the right API client for your FogBugz instance:

  1. Probes /api.xml to read the FogBugz version number.
  2. If version β‰₯ 9, attempts to reach the JSON API (/f/api/0/jsonapi) β€” uses FogBugzJsonClient on success.
  3. Falls back to FogBugzXmlClient (XML API via /api.asp) for version < 9 or if the JSON endpoint is unreachable.
FogBugz versionAPI used
β‰₯ 9 (JSON API available)JSON API (/f/api/0/jsonapi)
< 9 or JSON API unreachableXML API (/api.asp)

Note on text formatting: Plain text only is supported in descriptions and comments when connected to FogBugz 8.x via the XML API. HTML and Markdown are stored and displayed literally.


Development

npm run dev    # run via ts-node (no build needed)
npm run build  # compile TypeScript to dist/
npm test       # run all Jest tests

Compatibility

  • FogBugz on-premise and on-demand (tested with FogBugz 8.8.53 via XML API)
  • Node.js 20+

Privacy Policy

This server does not collect, store, or transmit any data to ToDevelopers or any third party. All communication is directly between your AI client and your own FogBugz instance using the URL and credentials you provide. No usage data, case content, or credentials are sent anywhere other than your configured FogBugz server.

For complete privacy information, see the FogBugz Privacy Policy.