AI assistants (MCP)
On this page
InvoiceShelf 3 includes an MCP server so a compatible assistant can work with your company’s data through authorized application tools. This is separate from Ask AI in these docs, which answers documentation questions and does not access your invoices.
Switching it on
A super administrator opens Administration → Settings → AI connections and enables the server. Use the displayed address, such as https://invoices.example.com/mcp. Use HTTPS for real connections.
The equivalent operator commands are php artisan mcp:enable and php artisan mcp:disable. Disabling the server blocks access; review and revoke individual connections separately when access should be removed permanently.
Connecting an assistant
Add the displayed MCP address in a client that supports remote MCP and its authorization flow. Sign in to InvoiceShelf, choose the company, review the requested read/write access and approve only the intended connection. Client-specific menu names can change; the InvoiceShelf approval screen is the authority for the company and permissions.
Manage or revoke the connection in User Settings → Connected apps. A connection does not gain permissions beyond your role in the chosen company.
What an assistant can do
Read-only access supports questions about the company data exposed by the server’s tools. Write access can allow supported operations such as creating documents, with InvoiceShelf performing validation and arithmetic. Review the resulting customer, lines, dates and totals before sending a document. Do not grant write access merely to ask questions.
Redirect domains
The administrator controls allowed OAuth redirect origins. Use exact trusted origins; wildcards are not accepted. Local desktop callback addresses and approved custom schemes are handled by the server’s registration rules.
Troubleshooting
If connection discovery fails, check HTTPS, the MCP toggle and the exact endpoint. If authorization fails, check the registered redirect and selected company membership. If a tool is denied, inspect both the connection’s granted access and your role. Do not work around an authorization failure by sharing an administrator password with an assistant.