MCP Auditing
Audit and govern Model Context Protocol (MCP) tool calls for compliance and security.
Overview
MCP Auditing provides visibility into how AI agents use MCP tools, enabling governance policies and compliance tracking for tool invocations.
Tool Governance
Control which tools agents can use
Audit Logging
Complete history of tool invocations
Policy Enforcement
Block or require approval for tools
Configuring MCP Auditing
Enable auditing for your MCP servers:
This is a cloud feature — @torknetwork/sdk
MCP tool-call auditing is evaluated by Tork, so each audited call is recorded as capture_mode=cloud, attested_by=tork. There is no dedicated SDK class for MCP Auditing in @torknetwork/sdk or in any published Python package — call the API directly with a Bearer token, in either language, as shown below.
From Python there is no cloud client class either — log each tool call over HTTP with a Bearer token:
Tool Policies
Define policies for MCP tool usage:
Viewing Audit Logs
Query MCP audit logs programmatically:
MCP Metrics
Monitor MCP tool usage with built-in metrics:
Learn More: See MCP Server Integration for complete setup instructions.