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
- Install FreePBX with Sysadmin Port Management enabled, ACP moved off port 80 (e.g. to 81).
- Register frogman via the documented stdio/SSH method with the default FROGMAN_FREEPBX_URL.
- tools/list returns success with an empty array. No error unless you're capturing the server's stderr.
Suggested fixes
- Show an MCP error instead of an empty tool list.
- 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).
- 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.
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
Suggested fixes