Home/Docs/Troubleshooting & Diagnostics Guide
Back to Documentation Hub
100% Open Source · Documentation

Troubleshooting & Diagnostics Guide

Diagnose connection issues, port 9000 conflicts, and XML parser errors with tally-mcp doctor.

Automated Diagnostics with tally-mcp doctor

Before manually inspecting log files, run the built-in diagnostic suite to execute 5 core preflight checks:

tally-mcp doctor
  # Or display discovered open companies:
tally-mcp doctor --show-names

The diagnostic suite tests loopback reachability on port 9000, company detection, write-ahead log (WAL) permissions, and AI client configuration files.

Common Issues & Step-by-Step Fixes

1. 'Tally connection refused on 127.0.0.1:9000'

  • Verify TallyPrime is currently open with at least one company loaded.
  • In TallyPrime, press `F1: Help` ▸ `Settings` ▸ `Connectivity` ▸ `Client/Server configuration`.
  • Ensure `TallyPrime acts as` is set to `Both` (or `Server`).
  • Ensure `Enable ODBC Server` is set to `Yes` and `Port` is `9000`.
  • Restart TallyPrime to apply port changes.
  • Test in web browser: visit `http://localhost:9000`. You should see `TallyPrime Server is Running`.

2. Claude Desktop Does Not Show tallymcp.pro in Connectors

  • Confirm that `claude_desktop_config.json` uses the exact key `tallymcp.pro`.
  • Terminate background Claude processes: run `taskkill /IM Claude.exe /F` in PowerShell.
  • Verify that `tally-mcp` is accessible in your system PATH by running `tally-mcp --version`.

3. 'Empty Report Envelope' or 0 Vouchers Returned

TallyMCP automatically intercepts empty report envelopes and informs your AI agent deterministically instead of returning blank XML. Verify that the requested date range has transactions recorded in the active company.

4. Tally Returns <LINEERROR> (Unknown Ledger or Duplicate Voucher)

TallyMCP translates TDL line errors into structured JSON error codes (`ERR_UNKNOWN_LEDGER`, `ERR_UNBALANCED_VOUCHER`). AI agents receive the exact missing ledger name and a `fix` hint to reconcile their query.