Skip to content

tools/list silently returns an empty catalog when FreePBX's admin GUI isn't on port 80 #39

Description

@jasonblewis

Summary

I had a lot of trouble getting the mcp server to show any tools. it turned out because the config defaults to http://localhost/admin/ajax.php which naturally defaults to port 80. on my system it is on port 81 due to port 80 being used for LetsEncrypt cert validation.

Reproduce

  1. Install FreePBX with Sysadmin Port Management enabled, ACP moved off port 80 (e.g. to 81).
  2. Register frogman via the documented stdio/SSH method with the default FROGMAN_FREEPBX_URL.
  3. tools/list returns success with an empty array. No error unless you're capturing the server's stderr.

Suggested fixes

  1. Show an MCP error instead of an empty tool list.
  2. Auto-detect the real ACP port instead of hardcoding 80, e.g. read it from FreePBX's own config (Sysadmin's port map or /etc/freepbx.conf).
  3. Note this in the README/setup docs: if you've moved the admin GUI off the default port via Port Management, set FROGMAN_FREEPBX_URL to match.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions