🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@torknetwork/mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@torknetwork/mcp-server

TORK MCP Server - 49 governance tools for AI agents including Memory Integrity, Supply Chain, Cost Controls, and MCP Auditing

latest
Source
npmnpm
Version
1.5.4
Version published
Maintainers
1
Created
Source

@torknetwork/mcp-server

Official MCP (Model Context Protocol) server for Tork AI Governance Platform.

Part of the TORK Network - AI governance infrastructure for the agentic era.

Installation

Local (stdio — zero latency)

npm install @torknetwork/mcp-server

Remote via Smithery (one-click, browser-compatible)

Install on Smithery

{
  "mcpServers": {
    "tork-governance": {
      "type": "http",
      "url": "https://server.smithery.ai/@torknetwork/tork-governance"
    }
  }
}

Both methods connect to the same Tork governance API. Local gives you zero-latency stdio. Remote gives you one-click setup and works in browser-based MCP clients.

Available Tools (49 tools)

Core Governance (5 tools)

ToolDescription
tork_scan_piiScan text for PII across 50+ types and 13 countries with regional profiles (v1.1)
tork_governed_passthroughExecute tool calls with full governance checks
tork_check_policyCheck content against governance policies
tork_audit_statsGet audit statistics for governance events
tork_audit_logsQuery audit logs with filtering

Tool Governance (3 tools)

ToolDescription
tork_register_toolRegister a tool with governance policy
tork_validate_tool_callValidate a tool call before execution
tork_tool_call_statsGet statistics on tool calls

HITL - Human-in-the-Loop (10 tools)

ToolDescription
tork_request_approvalRequest human approval for an action
tork_approve_actionApprove a pending action
tork_reject_actionReject a pending action
tork_check_approvalCheck approval status
tork_velocity_alertCheck for slicing attack patterns
tork_hitl_check_velocityCheck approver velocity metrics
tork_hitl_create_cooldownCreate a cooldown period
tork_hitl_check_cooldownCheck if in cooldown
tork_hitl_detect_slicingDetect slicing attacks
tork_hitl_get_configGet HITL configuration

Memory Integrity (4 tools) - NEW in v1.3.0

ToolDescription
tork_memory_snapshotCreate memory fingerprint for integrity verification
tork_memory_verifyVerify memory against a snapshot
tork_memory_trust_scoreGet/calculate trust score for memory
tork_memory_track_modificationRecord memory changes for audit

Supply Chain Visibility (5 tools) - NEW in v1.3.0

ToolDescription
tork_supply_chain_registerRegister a dependency
tork_supply_chain_depsGet agent dependencies
tork_supply_chain_verifyVerify a dependency
tork_supply_chain_vulnsCheck for vulnerabilities
tork_supply_chain_healthGet supply chain health score

Cost Controls (5 tools) - NEW in v1.3.0

ToolDescription
tork_cost_recordRecord a cost transaction
tork_cost_checkCheck if spend is allowed within budget
tork_cost_summaryGet spend summary by period
tork_cost_alertsGet cost alerts and warnings
tork_cost_budget_statusCheck budget utilization status

MCP Auditing (4 tools) - NEW in v1.3.0

ToolDescription
tork_mcp_log_callLog a tool invocation for audit
tork_mcp_get_statsGet tool usage statistics
tork_mcp_get_alertsGet MCP alerts and anomalies
tork_mcp_analyzeRun anomaly detection on tool usage

Cloud API Tools (12 tools)

These tools connect to the live Tork Cloud API for centralized governance management. Requires TORK_API_KEY environment variable.

ToolDescription
tork_dashboardGet dashboard statistics
tork_list_toolsList all registered tools
tork_list_policiesList all governance policies
tork_get_policyGet a specific policy by name
tork_list_approvalsList pending HITL approval requests
tork_approveApprove a pending HITL request
tork_denyDeny a pending HITL request
tork_cloud_audit_logsQuery audit logs with filtering
tork_create_webhookCreate a webhook for notifications
tork_list_webhooksList all configured webhooks
tork_delete_webhookDelete a webhook by ID
tork_governance_checkReal-time policy validation

Shared Context (1 tool) - NEW in v1.5.4

Read-only access to the Tork ops handover — how two Claude accounts that share no conversation memory share an understanding of the estate instead. Requires SUPABASE_URL and SUPABASE_SERVICE_ROLE_KEY; without them this one tool reports itself unavailable and every other tool is unaffected.

ToolDescription
get_handoverRead a handover document: current (intent), system (script-gathered facts), lessons, or project:<name>

There is no corresponding write tool, by design. Handover rows are written by scripts a human runs on their own machine, so an agent can read the shared history but cannot quietly rewrite what the other account believes.

Configuration

Set environment variable:

export TORK_API_KEY=your_api_key

Optional, and only for get_handover:

export SUPABASE_URL=https://<project>.supabase.co
export SUPABASE_SERVICE_ROLE_KEY=<service_role_key>   # full DB access; own the server it runs on

Getting an API Key

  • Sign up at tork.network/signup
  • Create an account with your email and password
  • Your API key will be displayed after signup (save it securely!)
  • Set the environment variable: export TORK_API_KEY=tork_live_xxxxx

Usage with Claude Desktop

Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json):

Basic (local mode only):

{
  "mcpServers": {
    "tork": {
      "command": "npx",
      "args": ["@torknetwork/mcp-server"]
    }
  }
}

With Cloud API (recommended):

{
  "mcpServers": {
    "tork": {
      "command": "npx",
      "args": ["@torknetwork/mcp-server"],
      "env": {
        "TORK_API_KEY": "tork_live_your_api_key_here"
      }
    }
  }
}

Example Prompts

Once configured, try these prompts with Claude:

Dashboard & Overview:

  • "Show me the Tork governance dashboard"
  • "List all registered tools in my Tork account"
  • "What governance policies do I have configured?"

Memory Integrity (NEW):

  • "Create a memory snapshot for agent-prod-1"
  • "Verify memory integrity for agent-prod-1"
  • "What's the trust score for agent-prod-1's memory?"

Supply Chain (NEW):

  • "List dependencies for agent-prod-1"
  • "Check for vulnerabilities in my supply chain"
  • "Get supply chain health score"

Cost Controls (NEW):

  • "Record a $50 transaction for agent-prod-1"
  • "Check if agent-prod-1 can spend $100"
  • "Show cost summary for this month"

MCP Auditing (NEW):

  • "Log this tool call for audit"
  • "Show tool usage statistics"
  • "Analyze for anomalies in tool usage"

Approvals & HITL:

  • "Show me pending approval requests"
  • "Approve request tork_abc123 as reviewer admin@company.com"
  • "Deny request tork_xyz789 because it targets production"

PII Scanning:

  • "Scan this text for PII: Contact john@example.com at 555-1234"
  • "Check if this message contains sensitive data"

Regional PII Detection (v1.1):

  • "Scan for UAE PII: Emirates ID 784-1234-1234567-1" (use region: ["ae"])
  • "Scan for Indian PII with healthcare patterns" (use region: ["in"], industry: "healthcare")
  • Available regions: AU, US, GB, EU, AE, SA, NG, IN, JP, CN, KR, BR
  • Available industries: healthcare, finance, legal

Security Features

  • PII Detection: Automatically scans for and redacts 50+ types of sensitive data
  • Blocked Flags: Prevents dangerous flags like --force, --no-confirm, --delete-all
  • Rate Limiting: Configurable per-tool rate limits
  • Agent Authorization: Control which agents can call which tools
  • Target Restrictions: Prevent production access from unauthorized contexts
  • HITL Enforcement: Require human approval for sensitive operations
  • Fatigue Detection: Lock reviewers who approve too many requests too quickly
  • Slicing Attack Detection: Detect patterns of many small requests aggregating to significant impact
  • Memory Integrity: Detect unauthorized memory modifications
  • Supply Chain Verification: Track and verify all dependencies
  • Cost Controls: Enforce budgets and prevent overspending

License

MIT - see LICENSE

Keywords

mcp

FAQs

Package last updated on 26 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts