npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@treza/mcp

v0.3.0

Published

Model Context Protocol server for Treza Enclaves — lets AI agents manage TEEs, verify attestations, redact PII, and sign transactions

Readme

@treza/mcp

npm version License: MIT

Model Context Protocol (MCP) server for Treza Enclaves. Lets AI agents manage hardware-isolated TEEs, verify cryptographic attestations, and interact with the Treza platform — all through natural tool calls.

Quick Start

With Claude Desktop / Cursor / Any MCP Client

Add to your MCP configuration:

{
  "mcpServers": {
    "treza": {
      "command": "npx",
      "args": ["@treza/mcp"],
      "env": {
        "TREZA_BASE_URL": "https://app.trezalabs.com"
      }
    }
  }
}

As a Standalone Server

npm install -g @treza/mcp
treza-mcp

Environment Variables

| Variable | Default | Description | |---|---|---| | TREZA_BASE_URL | https://app.trezalabs.com | Treza Platform API URL | | TREZA_TIMEOUT | 30000 | Request timeout in milliseconds | | TREZA_API_KEY | — | API key (treza_live_...) for authenticated tools like treza_redact_text and treza_pii_audit_query | | TREZA_ACCOUNT | — | Optional tenant account the API key belongs to |

Available Tools

Enclave Management

| Tool | Description | |---|---| | treza_list_enclaves | List all enclaves owned by a wallet address | | treza_get_enclave | Get detailed info about a specific enclave | | treza_create_enclave | Create a new AWS Nitro Enclave with hardware-isolated TEE | | treza_update_enclave | Update enclave name, description, or config | | treza_delete_enclave | Permanently delete a terminated enclave | | treza_enclave_action | Pause, resume, or terminate an enclave | | treza_get_enclave_logs | Retrieve logs filtered by source type |

Attestation & Verification

| Tool | Description | |---|---| | treza_get_attestation | Get attestation document with PCR measurements and certificate chain | | treza_verify_attestation | Full cryptographic verification with compliance checks (SOC2, HIPAA, FIPS) | | treza_get_verification_status | Quick trust level check |

Platform

| Tool | Description | |---|---| | treza_list_providers | List available enclave providers and regions | | treza_get_provider | Get provider details and config schema | | treza_list_tasks | List scheduled tasks | | treza_create_task | Create a cron-scheduled task in an enclave | | treza_list_api_keys | List scoped API keys | | treza_create_api_key | Create a new API key with specific permissions |

PII & Redaction

| Tool | Description | |---|---| | treza_redact_text | Redact PII from a text string via the redaction enclave; returns redacted text, detected entities, and mode (requires TREZA_API_KEY with redact:run) | | treza_redact_chat_completions | OpenAI-compatible chat completion with PII redacted before forwarding upstream; returns the provider response, request id, mode, and optional rehydration map (requires TREZA_API_KEY with redact:proxy) | | treza_pii_scan | Heuristically classify which fields in a JSON payload contain PII | | treza_pii_workflow_check | Audit a workflow definition for where PII flows in, is stripped, or leaks | | treza_pii_audit_query | Query the PII audit log for past workflow runs (requires TREZA_API_KEY) |

MCP Resources

The server also exposes browsable resources that give agents ambient context:

| Resource URI | Description | |---|---| | treza://enclaves/{walletAddress} | All enclaves for a wallet | | treza://enclaves/{enclaveId}/details | Full enclave details | | treza://enclaves/{enclaveId}/attestation | Attestation document | | treza://enclaves/{enclaveId}/verification | Verification status |

Example Agent Interactions

An AI agent using the Treza MCP server can:

"Create me a Nitro Enclave in us-west-2 for my trading bot"
→ treza_create_enclave

"Is my enclave verified? What's the trust level?"
→ treza_verify_attestation

"Show me the last 20 error logs from my enclave"
→ treza_get_enclave_logs

"Pause my enclave to save costs while I'm not using it"
→ treza_enclave_action (pause)

Architecture

AI Agent (Claude, Cursor, etc.)
    │
    ▼
┌──────────────┐
│  @treza/mcp  │  ← MCP Server (this package)
│  16 tools    │
│  4 resources │
└──────┬───────┘
       │ HTTP
       ▼
┌──────────────────┐
│  Treza Platform  │  ← https://app.trezalabs.com
│  REST API        │
└──────┬───────────┘
       │
       ▼
┌──────────────────┐
│  AWS Nitro       │  ← Hardware-isolated TEEs
│  Enclaves        │
└──────────────────┘

Development

git clone https://github.com/treza-labs/treza-sdk.git
cd treza-sdk/packages/mcp
npm install
npm run build
npm start

Related

License

MIT