原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Mastyf.ai

作者:mastyf-ai版本 4.1.12i★ –i在你的电脑上运行
注册名称io.github.mastyf-ai/mastyf.ai

安装

概览

作者提供的说明(英文原文)

Runtime proxy for MCP security, cost governance & audit

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 其他
  • 你需要填写:ALERT_WEBHOOK_URL

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: MASTYF_AI_DB_PATH, ALERT_WEBHOOK_URL, METRICS_ENABLED

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "mastyf-ai": {
      "command": "npx",
      "args": [
        "-y",
        "@mastyf_ai/server"
      ],
      "env": {
        "MASTYF_AI_DB_PATH": "your-value",
        "ALERT_WEBHOOK_URL": "your-value",
        "METRICS_ENABLED": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add mastyf-ai --env MASTYF_AI_DB_PATH=your-value --env ALERT_WEBHOOK_URL=your-value --env METRICS_ENABLED=your-value -- npx -y @mastyf_ai/server

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "mastyf-ai": {
      "command": "npx",
      "args": [
        "-y",
        "@mastyf_ai/server"
      ],
      "env": {
        "MASTYF_AI_DB_PATH": "your-value",
        "ALERT_WEBHOOK_URL": "your-value",
        "METRICS_ENABLED": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "mastyf-ai": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mastyf_ai/server"
      ],
      "env": {
        "MASTYF_AI_DB_PATH": "your-value",
        "ALERT_WEBHOOK_URL": "your-value",
        "METRICS_ENABLED": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • MASTYF_AI_DB_PATH env
    Path to SQLite history database
  • ALERT_WEBHOOK_URL 机密 env
    Slack or Discord webhook for critical alerts
  • METRICS_ENABLED env
    Expose Prometheus metrics

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 mastyf-ai 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32583 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32583 个服务器的 15% 更新
  • 基础检查结果等于或优于此分类中其他 32583 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Mastyf.ai 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:ALERT_WEBHOOK_URL

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(4.1.12)于4个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, sync. labs

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211昨天更新
安装

sync. labs

作者:synchronicity-labs

Lipsync videos, dub them into other languages, make talking videos and open sync. Studio.

电脑或云端今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

mastyf.ai

Secure the Action Boundary, Not Just the Prompt.

A local reference monitor and security gateway for AI agents and MCP. Your LLM proposes actions. Mastyf decides whether those actions reach the real world.

Website · Quick start · Policy · Dashboard · GitHub

[!NOTE]

Enterprise & Cloud Platform Support: Mastyf is verified and deployed as a native CONTENT_AUTHZ Service Extension for Google Cloud Agent Gateway (us-central1), with distributed Redis state, sub-second fail-closed enforcement, and real-time BigQuery audit logging. See the Google Agent Gateway Runbook.


The problem

AI agents can read your files, push code, query databases, execute shell commands, and call external APIs. They do it autonomously, at machine speed.

Traditional security controls weren't built for that.

Mastyf.ai acts as a perimeter security layer for AI. It intercepts every tool call, evaluates it against your security policies using multi-agent swarm analysis, and blocks malicious or unauthorized actions before they execute.

Every decision is enforced, logged, and auditable.


What it stops

ThreatWhat it looks like
Prompt injectionMalicious instructions embedded in tool arguments to hijack agent behavior
Path traversalAttempts to access /etc/passwd, .ssh/id_rsa, .aws/credentials
Secret exfiltrationAPI keys and tokens leaking through tool arguments
Shell injectionReverse shells, rm -rf, encoded PowerShell commands
Data exfiltrationBulk SQL dumps, git push, aws s3 cp, unauthorized file transfers
SSRFCalls to metadata endpoints, localhost, and private IP ranges
Encoding evasionBase64 blobs and Unicode homoglyphs used to bypass pattern detection
Cost abuseRunaway agent loops burning through token budgets
Rug-pull attacksTool definitions that silently change mid-session

Quick start

🛡️ Mastyf Security Gateway & Protected Agent (Python Quickstart)

Run the local reference monitor, MCP discovery, and plain-English protected agent runtime:

# Install Mastyf Gateway package

git clone https://github.com/mastyf-ai/mastyf.ai.git cd mastyf.ai/mastyf_gateway pip install -e .

Launch Mastyf (Auto-discovers tools, prompts for permissions, and starts protected agent)

mastyf

  • On first run, Mastyf automatically discovers your local MCP servers/tools, prompts for your intended permissions in plain English, presents a conservative diff, and upon confirmation activates the policy.
  • Every tool proposal from the conversational agent is intercepted by the reference monitor ($A = \text{CBAC} \cap \text{DIFC} \cap \text{Workflow}$). Non-ALLOW actions dispatch strictly 0 bytes to tool backends.
  • Includes real-time Security HUD and cryptographic receipt audit chaining (mastyf audit verify).
Common CLI Commands
# Start interactive protected agent (or first-run onboarding if fresh install)

mastyf

Run a single query non-interactively

mastyf -m "Find unpaid customer invoices"

Propose a policy change in plain English

mastyf policy "Allow reading invoices, but never delete data or make HTTP calls"

Inspect staged proposed policy vs active policy diff

mastyf policy status

Promote staged policy to active enforcement

mastyf policy activate

Intercept an MCP server via stdio reverse proxy

mastyf proxy -- uvx mcp-server-sqlite --db /tmp/test.db

Cryptographically verify the tamper-evident execution receipt ledger

mastyf audit verify --ledger ~/.mastyf/receipts.jsonl

Run local action boundary failure mode demonstrations

mastyf demo --scenario all


Build from source (TypeScript / Cloud Platform)

Clone the repository and run the setup script.

Requirements:

  • Git
  • Linux (the setup script installs Nix automatically if needed)
git clone https://github.com/mastyf-ai/mastyf.ai.git

cd mastyf.ai chmod +x setup.sh ./setup.sh

The setup script automatically:

  • Installs Nix (if required)
  • Enables Nix flakes
  • Creates the development environment
  • Installs all project dependencies
  • Rebuilds native packages
  • Builds the entire project
  • Adds a convenient mastyf shell alias

Once installation completes, start the proxy and dashboard:

node dist/cli.js start

Or simply use the alias after opening a new terminal:

mastyf

The dashboard will be available at:

  • Dashboard: http://localhost:4000

Test the installation

If the dashboard is running, verify the HTTP bridge:

curl -X POST http://localhost:4000/mcp -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":"1","method":"tools/list","params":{}}'

Dashboard

Full visibility into every action your AI takes.


SectionWhat you see
ProtectionBlock rate, top triggered rules, live threat feed
ActivityEvery tool call with full arguments, allow or block status, timestamp
PolicyLive rule editor with hot-reload from YAML
Threat LabAI-suggested attack tests, reviewed and approved before anything applies
CostToken usage and cost estimates broken down per tool call

Dashboard auth is on by default, including loopback. The start scripts provision $MASTYF_HOME/dashboard_api_key and never print it. Set DASHBOARD_AUTH_DISABLED=true only for explicit local test isolation — that combination is refused on any non-loopback bind.


How enforcement works

Every tool call passes through three layers before it reaches your infrastructure.

Layer 1 - Pattern detection Regex-based scanning for injection, dangerous paths, leaked secrets, shell commands, and encoding tricks. Runs in microseconds with no external dependencies.

Layer 2 - Schema validation Rejects malformed payloads, oversized arguments, and JSON-RPC violations before they reach policy evaluation.

Layer 3 - Semantic review An optional local LLM (Ollama) or cloud model evaluates borderline calls that pass pattern checks. Falls back to heuristics if no model is configured.

Anything that fails is blocked. The tool never runs. Everything is logged.


Policy

Your rules live in default-policy.yaml. You own them. mastyf.ai enforces them.

policy:

mode: block default_action: pass unicode_strict: true rules:

  • name: block-sensitive-paths action: block argPatterns:
  • field: path patterns: ['^/etc/', '/\.ssh', '/\.aws/credentials']
  • name: rate-limit-tool-calls action: block maxCallsPerMinute: 120
  • name: block-shell-injection action: block patterns: ['rm\s+-rf', 'curl\s', 'wget\s', '[^]+`']

Roll out safely with three enforcement modes:

ModeBehaviorWhen to use
auditLog everything, block nothingFirst week, understand what your AI does
warnLog and flag, still forwardsTuning phase before enforcement
blockStops violations before executionProduction

Pre-built templates for HIPAA, PCI-DSS, GxP, and data residency are in policy-templates/.


Architecture

mastyf.ai runs two coordinated swarms. The CI Swarm attacks your policy before code ships. The Runtime Swarm enforces and learns from every live tool call in production. Four feedback loops connect them so the system gets harder to bypass over time.

flowchart TB

AI["🤖 AI Clients\nCursor · Claude Desktop · Cline"]

subgraph CI["🔵 CI Swarm (PR + Nightly)"] direction LR Scout["🔍 Scout Agent\nSAST, deps, config scan"] Corpus["📋 Corpus Agent\n228 fixtures eval"] Evasion["⚡ Evasion Agent\n120+ probes + generate new"] Parity["🔄 Parity Agent\nNode vs Python"] ProxyA["🖥️ Proxy Agent\nLive stdio MCP tests"] Report["📊 Report Agent\nsecurity-swarm/latest.json"] Scout --> Corpus --> Evasion --> Parity --> ProxyA --> Report end

subgraph Runtime["🟢 Runtime Swarm (Production Proxy)"] direction LR BG["🛡️ BlockGuard\nsync policy"] IL["📈 InstantLearner\nper-block stats + suggestions"] SA["🧠 SemanticAuditor\nasync LLM, optional"] PS["🔗 PatternSynthesizer\nbatch suggestions"] Cal["⚙️ Calibrator\nlabels + thresholds"] BG --> IL --> PS --> Cal BG --> SA --> PS end

Tools["🗄️ MCP Tools\nfilesystem · GitHub · databases · APIs"]

AI -->|"every tool call"| BG BG -->|"✅ allowed"| Tools Report -->|"🔁 Loop A: bypasses to corpus"| Corpus Cal -->|"🔁 Loop B: blocks to rules"| BG Cal -->|"🔁 Loop C: labels to LLM"| SA Report -->|"🔁 Loop D: CI metrics weekly"| Cal

style CI fill:#EFF6FF,stroke:#3B82F6,stroke-width:2px,color:#1E3A5F style Runtime fill:#F0FDF4,stroke:#22C55E,stroke-width:2px,color:#14532D style Scout fill:#DBEAFE,stroke:#3B82F6,color:#1E40AF style Corpus fill:#DBEAFE,stroke:#3B82F6,color:#1E40AF style Evasion fill:#DBEAFE,stroke:#3B82F6,color:#1E40AF style Parity fill:#DBEAFE,stroke:#3B82F6,color:#1E40AF style ProxyA fill:#DBEAFE,stroke:#3B82F6,color:#1E40AF style Report fill:#DBEAFE,stroke:#3B82F6,color:#1E40AF style BG fill:#BBF7D0,stroke:#16A34A,color:#14532D style IL fill:#BBF7D0,stroke:#16A34A,color:#14532D style SA fill:#BBF7D0,stroke:#16A34A,color:#14532D style PS fill:#BBF7D0,stroke:#16A34A,color:#14532D style Cal fill:#BBF7D0,stroke:#16A34A,color:#14532D style AI fill:#FEF3C7,stroke:#F59E0B,stroke-width:2px,color:#78350F style Tools fill:#FEF3C7,stroke:#F59E0B,stroke-width:2px,color:#78350F

Canonical gates: 228/228 corpus, 0 bypasses, 100% parity

CI Swarm

Runs on every PR and nightly. Six agents work in sequence, each one hardening what the previous found.

AgentWhat it does
ScoutSAST scan, dependency audit, config review
CorpusEvaluates all 228 attack fixtures against current policy
EvasionRuns 120+ bypass probes and generates novel ones using an LLM
ParityVerifies Node and Python implementations produce identical decisions
ProxyLive stdio MCP session tests against a running proxy instance
Report

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx