MCP tool callv3.14+

Enable the VeriKnox plugin on a Route that proxies Model Context Protocol (MCP) tool-call requests.

The plugin parses the MCP JSON-RPC body, applies VeriKnox Hub policy, and forwards a signed receipt before proxying the request to the MCP server. Use the same pattern for A2A (Agent-to-Agent) JSON-RPC traffic by changing specification to A2A.

The agent_passphrase must be a vault reference. Don’t set it as a plain string. The data plane must be enrolled with VeriKnox Hub before the plugin can sign receipts. See the installation instructions for enrollment steps.

 
sequenceDiagram
    autonumber
    participant A as AI Agent / Client
    participant K as AI Gateway
(veriknox-plugin) participant H as VeriKnox Hub participant M as MCP Server A->>K: JSON-RPC v2 tool-call request Note over K: Detect tool-call method
(tools/call) K->>H: POST signed receipt — tool-call request
(tool name, arguments, ED25519 + ML-DSA-65) H-->>K: 200 OK (receipt accepted) K->>M: Forward tool-call to MCP server M-->>K: Return tool result Note over K: Parse tool-call response K->>H: POST signed receipt — tool-call response
(result content, ED25519 + ML-DSA-65) H-->>K: 200 OK (receipt accepted) K-->>A: Return tool result to agent

Prerequisites

  • The VeriKnox plugin is installed and the data plane is enrolled with VeriKnox Hub.

  • The identity passphrase is stored in a Kong Vault. Reference it as {vault://veriknox/VERIKNOX_IDENTITY_PASSPHRASE} or the equivalent path for your vault backend.

  • The MCP server Route exists in Kong Gateway.

Environment variables

  • VERIKNOX_PROVIDER_NAME: A logical name for the MCP server used in audit receipts. For example: Math-MCP-Server.

  • {vault://veriknox/VERIKNOX_IDENTITY_PASSPHRASE}: Vault reference to the identity passphrase. Replace veriknox with your vault prefix if different.

  • https://hub.veriknox.ai: Base URL of your VeriKnox Hub instance. The default value is https://hub.veriknox.ai.

Set up the plugin

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!