Skip to Content
Use the customer portalConnect MCP tools

Connect MCP tools to the gateway

Use this guide to put policy checks before MCP tool calls. Start with an application assigned to a running gateway.

Connect an MCP server

Connect one MCP server and choose the tools this application’s agents can use. You need application and governance configuration access. The current profile uses MCP 2026-07-28 with synchronous JSON responses.

Prepare the host and tool list

  1. Install the gateway for this application and environment. Enable the application’s proxy traffic permission for MCP requests.
  2. Ask the deployment operator for the MCP server’s exact HTTPS URL and a Provider credential name, such as support-mcp. The operator stores the server’s bearer token in a protected file and configures the matching host binding. Do not paste that token into the portal.
  3. Export a complete tools/list response from that server using a client that supports this profile, or use the PowerShell example below. The response must include result.resultType: "complete" and the full result.tools array, with no nextCursor. The import can contain up to 256 tools and must fit within 64 KiB.

For a server using the supported stateless JSON 2026-07-28 profile, replace the HTTPS URL and protected token-file path below. Run this on a trusted host with permission to use the server. The token file contains only the MCP server’s bearer token, not the VeriProof API key.

$serverToken = [System.IO.File]::ReadAllText('C:\gateway-secrets\support-mcp').Trim() $headers = @{ Authorization = 'Bearer ' + $serverToken Accept = 'application/json, text/event-stream' 'MCP-Protocol-Version' = '2026-07-28' 'Mcp-Method' = 'tools/list' } $body = @' { "jsonrpc": "2.0", "id": "customer-setup-catalog", "method": "tools/list", "params": { "_meta": { "io.modelcontextprotocol/protocolVersion": "2026-07-28", "io.modelcontextprotocol/clientCapabilities": {} } } } '@ try { Invoke-WebRequest -Uri 'https://YOUR_MCP_SERVER/EXACT_MCP_PATH' ` -Method Post -Headers $headers -ContentType 'application/json' ` -Body $body -MaximumRedirection 0 -OutFile './mcp-tools-list.json' } finally { Remove-Variable serverToken, headers }

-OutFile saves the response directly. Open mcp-tools-list.json and copy its complete text into the form; do not parse and re-encode it with ConvertTo-Json. Keep TLS certificate validation enabled. This request is for the profile above, not a universal discovery command for every MCP server. A server that requires another protocol or session flow needs a supported connection before you can use it here.

The portal imports your response; it does not connect to the server or run its tools. For a local development example, the repository’s samples/gateway-mcp/provider.mjs implements this profile. Its --descriptor option outputs one descriptor, not a complete tools/list response.

Add the connection

  1. Open the application, then Config > Gateway. Select Edit gateway settings, enable proxy traffic, and select Add MCP server in Models and tools.
  2. Enter a Route ID, the MCP server URL, and the operator’s Provider credential name. Use the same server URL the operator configured, including its path.
  3. Choose Gateway client authentication: Application API key for X-API-Key, or Application bearer key for Authorization: Bearer. This identifies your application to the gateway. It is separate from the server’s bearer token and does not provide a person’s OAuth identity.
  4. Paste the exported response into tools/list response JSON and select Import tools. Use Search imported tools to find tools by name, title, or description. Select individual tools or Select all matching, up to 16 tools for this application. The selected count includes tools hidden by your search; Clear selection removes those selections too. Import the original descriptors; correct any unsupported descriptor reported by the form instead of removing fields to make it pass.
  5. Set request and response size limits, concurrent requests, and timeout for your workload. Select Add to settings. The server validates the selection and prepares the route and catalog identifiers.
  6. Test the applicable policies, then select Save changes. Under Current approval, select Review and approve, review the exact saved version, and approve it. Complete any additional application change approval. Let the gateway synchronize the published configuration.
  7. Return to Config > Gateway and select View host setup for the saved MCP server. Copy the server-prepared host settings for the operator, then select Follow MCP host setup steps to mount the server token and apply those settings. The token stays on the host.

Connect the agent and check activity

Point the agent’s MCP client at your gateway origin followed by /mcp/<routeId>, using the saved Route ID. Use the application-secret segment of the application’s API key in the one authentication header selected above. The gateway host uses the complete API key for its own connection to VeriProof.

Use a client that supports the selected 2026-07-28 profile. Requests use JSON-RPC POST with Content-Type: application/json, Accept: application/json, text/event-stream, and matching MCP-Protocol-Version and Mcp-Method headers; a tools/call request also supplies the matching Mcp-Name. The client must send the profile’s request metadata. Session-based transport and delegated OAuth are not available for this connection.

Check the host’s /health/ready, then request the tool list through the gateway and invoke an approved tool with inputs you are permitted to use. Confirm that the gateway returns only the selected catalog and that the agent receives the permitted result. Open the application’s Status > Activity to inspect the reported configuration and activity. Check the recorded policy decision when a call is refused; use the MCP server’s own records to confirm any external action.

Save the UUID you send in Idempotency-Key with each tools/call. If your client times out, retry the same request with the same key through the same gateway. If the response is HTTP 409 with mcp_request_already_dispatched, the gateway blocked a repeat dispatch. Check the MCP server’s records for the original action before issuing a call with a new key.

Set up MCP tool review

In the application’s Config > Details, enter the Business context and Risk concerns before testing review. VeriProof includes both in the evidence reviewers need to approve a standalone MCP tool call. What to enter

Use tool review when a policy needs a person to approve a tool call or its result. In Human review and escalation, open Callback and test for this application. Select the assigned gateway, enter its review callback address, and create the callback. For the first callback, give the gateway operator the address, registration ID, and version shown in the portal. Once the operator adds the registration to the gateway, select Send safe test, then Turn on callback. Turn on an approval profile that continues the original request.

  1. Open the application’s Config > Gateway and select Edit gateway settings. Next to the server in Models and tools, select MCP review settings.
  2. In MCP tool review, select the Request data class, turn on Pause for human review, and choose the Review profile. Use the links in the form to set up a callback or profile if you need one.
  3. Enter the Checkpoint binding name supplied by your gateway operator. Set the retention and pending-request limits to allow time for review and callback delivery.
  4. Select Save changes, complete the configuration approval, and have the operator apply the matching checkpoint configuration on the gateway host. Configure the policies that send tool calls or results for review, and share the continuation steps below with the agent developer.

Choose where reviewers decide

A tool call or model request the gateway holds becomes a review in VeriProof, the same as a review opened by the SDK. It follows the application’s reviewer routing in Human review and escalation, so the assigned reviewer sees it in the VeriProof Inbox as Response needed. Reviewers can also decide in a connected work app:

Work appWhere the reviewer decidesGuide
Microsoft TeamsA personal Teams card, or claimed from a group channel postHuman review in Microsoft Teams
SlackA direct message, or claimed from a private group channel postHuman review in Slack
ServiceNowAn assigned ticketHuman review in ServiceNow

VeriProof checks the reviewer’s current access before it records the decision, then sends the decision to the gateway’s callback. The agent’s continuation handler resumes the work as described below. If a decision needs a confirmation the work app can’t collect, such as an owner deciding as the only eligible reviewer, the app sends the reviewer to VeriProof to decide.

To replace an active gateway callback, coordinate with your gateway operator. Pause new tool requests for the application while existing reviews finish and any approved requests resume. Test the new callback, then turn it on and select Use current version in MCP tool review. Save and approve the settings, and have the operator apply the matching registration on the host. Send new tool requests when Status > Activity shows Active.

If a review rule reads a tool argument or result field specific to your application, confirm that field for the application. Run a policy evaluation with a representative test payload and check that the field shows Saved and found in activity before enforcing the rule.

Handle an MCP tool review

When an MCP route requires human review, the gateway holds the tool call or its result. Add a continuation handler to the code that calls the MCP client, so the agent can save its place and let the review finish. For example, a purchase agent can tell the requester that approval is pending and resume the workflow later.

  1. Send each tools/call with a unique UUID in Idempotency-Key. Save it with the workflow so retries use the same key for that action.
  2. When the gateway returns HTTP 409 with error: "mcp_review_required", save requestId, statusUrl, resumeUrl, and expiresAt. Pause the dependent work and tell the requester that review is pending. If your MCP library only exposes the HTTP error, read the response in a transport handler and pass the review details to your workflow.
  3. Poll statusUrl with GET, using backoff and the same application authentication. Resolve the returned path against the gateway origin that received the tool call. While state is awaiting_review, keep the workflow paused. For not_authorized, expired, or closed, stop the dependent work and tell the requester it couldn’t continue.
  4. When state is review_approved, send an empty POST to resumeUrl with the same authentication. On HTTP 200, give the returned MCP result to the waiting workflow. If the gateway returns another mcp_review_required response, save the new handle and wait for result review. Approving the result releases the saved response without calling the tool again.

If the connection drops while you retrieve an approved tool result, send the same empty POST to the result review’s resumeUrl with the same API key. The gateway checks current policy and approval before returning the saved result. You can make up to eight delivery attempts before the review expires.

If you can’t confirm that the tool ran, check the saved status and the MCP server’s records before starting another action. A new operation key can dispatch the tool again. If mcp_request_replayed returns a saved review handle, check that handle’s status. An HTTP 409 without a review handle is a conflict.

Last updated on