Connect an AI app with MCP
PacketTale’s MCP server lets an AI app query your fleet and perform authorised actions through your customer portal. Use an app that supports remote MCP servers over Streamable HTTP and OAuth sign-in.
How the AI finds the tools
Section titled “How the AI finds the tools”Add your portal’s MCP URL in your AI app’s connector or MCP settings. The app connects to PacketTale and opens an authorisation flow. After you grant access, it requests the available tools, including their descriptions and required inputs. The AI uses those definitions to choose a tool for your request and interpret the result. This discovery is part of the Model Context Protocol.
Enter the URL in the app’s connection settings. Pasting it into an ordinary chat message does not configure the connection.
Enable MCP in your portal
Section titled “Enable MCP in your portal”An administrator with permission to change fleet settings can enable MCP for the organisation.
- Open Settings > AI connections in your customer portal.
- Select Enable MCP.
- Open the account menu, select Account, then Connected apps.
- Select Copy URL.
The URL uses your customer portal’s hostname and ends in /mcp. For example, a portal at https://firewall.example.com has this MCP URL.
https://firewall.example.com/mcpEach user connects with their own PacketTale account.
Connect your AI app
Section titled “Connect your AI app”- Open the app’s settings for remote MCP servers or custom connectors.
- Add a connection named
PacketTaleand paste the URL copied from your portal. - Choose Streamable HTTP and OAuth if the app asks for a transport and sign-in method.
- Sign in to PacketTale with your password and MFA when prompted.
- Review the app name and requested permissions, then select Allow access.
The app must be able to reach your portal over HTTPS. Cloud-hosted clients connect from their provider’s network, so access through your own browser or VPN alone is insufficient. Connector availability and permission controls depend on the app, your plan and your workspace’s policies.
Connection lifetime
Section titled “Connection lifetime”An approved connection stays active after you sign out of the portal or your browser session ends. The app renews its access in the background until one of these happens:
- the app goes unused for 30 days
- 90 days pass since you approved the connection
- you or an administrator revoke the connection, or an administrator disables MCP
- your password changes, your authenticator is replaced or reset, or your account is disabled
The app then asks you to sign in again. Every request uses your account’s current role and permissions, so a role change applies immediately.
Scheduled reports keep working while the connection is active. Approve the connection again every 90 days.
Check the connection
Section titled “Check the connection”With MCP enabled, send an unauthenticated request to your portal’s endpoint. Replace the example hostname with your own.
curl -i --max-time 15 https://firewall.example.com/mcpA reachable endpoint that requires sign-in returns HTTP 401 and an OAuth challenge like this.
HTTP/2 401WWW-Authenticate: Bearer resource_metadata="https://firewall.example.com/.well-known/oauth-protected-resource/mcp", scope="fleet:read"Continue with OAuth sign-in in your AI app. After granting fleet:read, ask “List offline devices in PacketTale.” Check that the app calls packettale_list_devices and receives a result, including an empty list when there are no matching devices.
If the request fails before receiving an HTTP response, check the execution environment’s outbound network permissions, DNS and TLS access. A request blocked by the client environment has not established whether the server is reachable.
Tools visible to your connection
Section titled “Tools visible to your connection”The tool reference describes the complete catalogue. Server discovery filters tools by your account’s current permissions and the portal’s billing configuration, so each connection can receive a different list. Your AI app may also hide tools or cache an earlier list. Refresh the app’s tool list or reconnect after server or role changes.
Billing tools appear only when the customer portal has a billing integration configured and your account has the permissions required by each tool. Billing reads require permission to view billing. Changes require permission to manage billing, and some require both. Granting OAuth scopes also limits which discovered tools the app can call. Licence and workflow requirements are checked when a tool runs.
The reference currently contains 61 supported tools, including 10 billing tools. An account with all relevant permissions on a portal without billing can discover 51. Roles with fewer permissions receive a smaller list.
Setup by AI app
Section titled “Setup by AI app”Use your own portal URL in every example below. PacketTale accepts remote Streamable HTTP connections with OAuth. The same endpoint works with other clients that support those requirements.
Claude
Section titled “Claude”Open Customize, then Connectors. Select Add and Add custom connector. Name it PacketTale, enter your MCP URL and review the detected authentication. Choose OAuth sign-in and complete PacketTale authorisation. Enable the connector for the conversation where you want to use it. A workspace owner may need to add the connector before members can connect.
Claude’s remote connectors connect from Anthropic’s infrastructure. Your portal must accept those incoming HTTPS connections. Follow the current Claude connector instructions.
ChatGPT
Section titled “ChatGPT”On ChatGPT web, open Plugins, select the plus button and choose Add custom MCP server. Name it PacketTale, enter the MCP URL under Connection, and select OAuth. Review the warning, create the plugin and complete PacketTale sign-in. Install the resulting plugin, then select it with @ in a conversation.
Your account and workspace must allow custom MCP connections. Ask your workspace administrator if the creation option is unavailable. See the current ChatGPT custom MCP instructions.
Cursor
Section titled “Cursor”Add the following entry to your user configuration at ~/.cursor/mcp.json, or merge it into the existing mcpServers object. Replace the example URL, then open Cursor’s MCP controls and complete OAuth sign-in for packettale.
{ "mcpServers": { "packettale": { "url": "https://firewall.example.com/mcp" } }}For a project-specific connection, use .cursor/mcp.json in the project. See Cursor’s MCP configuration.
GitHub Copilot in VS Code
Section titled “GitHub Copilot in VS Code”With Copilot selected, run MCP: Add Server from the Command Palette. Choose HTTP, enter your portal’s MCP URL and name the server packettale. Select the configuration destination, review the trust request and complete OAuth sign-in. Ask Copilot to use PacketTale in the chat.
See VS Code’s MCP setup instructions.
Claude Code
Section titled “Claude Code”Add the remote server from your terminal.
claude mcp add --transport http packettale https://firewall.example.com/mcpRun /mcp in an interactive Claude Code session, select packettale and complete the browser sign-in. See Claude Code’s MCP instructions.
Codex CLI
Section titled “Codex CLI”Replace the example URL with the one copied from your portal. Register the server and sign in with fleet read access.
codex mcp add packettale --url https://firewall.example.com/mcpcodex mcp login packettale --scopes fleet:readYou can request several scopes as a comma-separated list. For example, fleet and history reads use --scopes fleet:read,history:read.
To allow fleet changes as well as reads, reconnect with both scopes.
codex mcp login packettale --scopes fleet:read,fleet:writeChoose permissions
Section titled “Choose permissions”PacketTale supports both read and write access. When a client omits its requested scopes, the default is fleet:read. To make changes, configure the client to request the appropriate write scopes and authorise the connection again.
The app can use only the scopes you grant and the actions your current PacketTale role permits. Licence limits and the normal workflow requirements also apply.
| Scope | Access |
|---|---|
fleet:read |
Device and group inventory, activity summaries, policy and fleet settings |
fleet:write |
Firewall drafts and publishing, enrolment, supported endpoint actions and update operations |
history:read |
Detailed endpoint history and saved investigations |
history:write |
Save or delete investigations and delete endpoint history |
access:read |
Accounts, roles and audit events |
access:write |
Account changes and temporary support access |
billing:read |
Licences, offers and invoices where billing is configured |
billing:write |
Purchases, subscription changes and hosted payment links where billing is configured |
Grant read access for questions about fleet status. Add write scopes when you want the AI to make changes. Once authorised, a tool can execute a change directly. Review the task and target devices before requesting policy publication, account changes or deletion. Your AI app may also ask for confirmation.
Some actions need several scopes. Saving an investigation requires both history:read and history:write. Clearing endpoint history requires fleet:write and history:write.
When a call needs another scope, PacketTale returns the required scope to the client. Clients that support requesting additional access can start a new authorisation flow. You review and approve the requested access, and your role still limits the actions available.
See MCP tools and request inputs for every supported operation, its required scopes, and its request and response schemas.
Try a request
Section titled “Try a request”With fleet:read, ask “List offline devices in PacketTale” or “Summarise allowed and blocked connections over the last seven days.”
For a top-ten domain report, ask “Use PacketTale to rank the ten most-blocked domains over the last seven UTC calendar days.” The app can use packettale_rank_network_activity to aggregate the result in one request. See MCP reporting semantics for grouping, time periods, counters and pagination guarantees.
For detailed history, grant history:read and ask “Show blocked connections on this device during the last hour.” The device must be online and still hold the requested records. Each query can cover up to seven days. Saved investigations can be read while the source device is offline.
Tool results are sent to the AI app you connect. Check your provider’s data handling terms before granting access to fleet or history records.
The portal’s Audit log records changes made through MCP tools. Read-only requests are not recorded. Initial account password and MFA setup, file downloads and hosted payment pages use browser links returned by the tools.
Review or revoke access
Section titled “Review or revoke access”Open the account menu, select Account, then Connected apps. Each app shows its permissions and when it was last used. Select Revoke access to disconnect it.
Administrators see every user’s apps under Settings > AI connections and can revoke any of them. Disable MCP disconnects all apps for the organisation, and users must approve their apps again after MCP is re-enabled.
Troubleshoot the connection
Section titled “Troubleshoot the connection”| Problem | What to check |
|---|---|
| Connected apps is missing | Ask an administrator to enable MCP under Settings. |
| The app cannot connect | Copy the URL again and confirm that the app supports remote Streamable HTTP servers with OAuth. Check that it can reach your portal over HTTPS. |
| Opening the URL in a browser shows an error | Use the URL in your AI app’s MCP settings. The endpoint requires an authenticated MCP request. |
| The app asks you to sign in again | Access ends after 30 days without use, 90 days after approval, a password change, an authenticator change or revocation. Approve the connection again. |
| An action is denied | Check both the granted scopes and your account’s current role. Policy, licence and device requirements still apply. |
| A history query fails | Confirm that the device is online, history is enabled and the records are within its retention period. |
Related information
Section titled “Related information”Allow Google Analytics to measure how this website is used?Privacy notice