Repository navigation
Backlog
Backlog
Copy link
Labels
More effortA label linked to issues that are not milestone goals but require significant development effortnethvoiceBug or features releted to the NethVoice project
Milestone
Description
Description
Add a section to the new NethVoice admin interface where the administrator can turn on and set up a connection to an MCP (Model Context Protocol) server for debugging.
With this connection, an AI assistant (Claude, Copilot, Cursor, etc.) could read diagnostic data from the PBX. Support staff and administrators could then use it to find out why something isn't working (failed calls, unregistered extensions, trunks down, provisioning errors), with no need to open an SSH session and look through logs by hand.
This is part of the admin interface redesign (see #7574).
Motivation
- Debugging NethVoice today often needs shell access and knowing where each container's logs are (Asterisk, Kamailio/proxy, FreePBX, CTI server, Tancredi).
- An MCP server lets an AI client look up the PBX state through controlled tools (read-only by default), so diagnosis is faster.
- Putting the setup in the admin interface makes the feature easy to find and to manage, and allows access to be revoked.
Proposed solution
UI: new "Debug / MCP" section
In the new admin interface (e.g. under Settings → Advanced → Debug):
- Enable/disable toggle for the MCP endpoint (off by default)
- Shows the MCP server URL (e.g.
https://<nethvoice-fqdn>/mcp) with a copy button - Access token creation and revocation, with optional expiry (e.g. 1h / 24h / 7 days)
- A ready-to-copy
mcp.jsonsnippet for the most common clients, e.g.:{ "mcpServers": { "nethvoice-debug": { "url": "https://<nethvoice-fqdn>/mcp", "headers": { "Authorization": "Bearer <token>" } } } } - Connection status (last access, active client)
- Link to the documentation
Backend / MCP tools (initial proposal, read-only)
-
get_extensions_status: extension registration status -
get_trunks_status: trunk/SIP peer status -
get_active_channels: calls in progress -
get_logs: filtered logs per service (asterisk, proxy, freepbx, cti, tancredi) with time range and limit -
get_cdr: CDR search by number/time range -
get_provisioning_info: provisioning state of a device (MAC) -
get_system_info: module version, NS8 node, service status
Security
- The endpoint is off by default; enabling it requires admin rights
- Temporary token authentication, revocable from the UI
- Read-only tools in the first version; any actions that write data go in a later issue with explicit confirmation
- Masking of sensitive data in the output (SIP passwords, secrets, tokens)
- Audit log of the calls made through MCP
- Optional: limit access by IP / available only on the internal network
Acceptance criteria
- The administrator can turn the MCP endpoint on and off from the new interface
- The administrator can create, copy and revoke an access token
- An MCP client set up with the provided snippet connects and can list the available tools
- The tools return correct data, with secrets masked
- A revoked or expired token is refused
- Documentation updated (admin manual + client configuration guide)
References
- NethVoice: improve usability and modernization of the administrator interface #7574: NethVoice admin interface redesign
- MCP specification: https://modelcontextprotocol.io
Metadata
Metadata
Assignees
Labels
More effortA label linked to issues that are not milestone goals but require significant development effortnethvoiceBug or features releted to the NethVoice project
Type
Projects
- StatusShow more project fieldsTodo
Activity
andrea-marchionni commentedon Dec 4, 2026
See also #8416