ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Mastyf.ai

โดย mastyf-aiรุ่น 4.1.12i★ –iรันบนเครื่อง
ชื่อใน registryio.github.mastyf-ai/mastyf.ai

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

Runtime proxy for MCP security, cost governance & audit

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: อื่น ๆ
  • ต้องใส่ค่าเหล่านี้: ALERT_WEBHOOK_URL

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

ค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต

ต้องเตรียมก่อน

  • 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": "ใส่ค่าของคุณ",
        "ALERT_WEBHOOK_URL": "ใส่ค่าของคุณ",
        "METRICS_ENABLED": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add mastyf-ai --env MASTYF_AI_DB_PATH='ใส่ค่าของคุณ' --env ALERT_WEBHOOK_URL='ใส่ค่าของคุณ' --env METRICS_ENABLED='ใส่ค่าของคุณ' -- 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": "ใส่ค่าของคุณ",
        "ALERT_WEBHOOK_URL": "ใส่ค่าของคุณ",
        "METRICS_ENABLED": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "mastyf-ai": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@mastyf_ai/server"
      ],
      "env": {
        "MASTYF_AI_DB_PATH": "ใส่ค่าของคุณ",
        "ALERT_WEBHOOK_URL": "ใส่ค่าของคุณ",
        "METRICS_ENABLED": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • 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

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub mastyf-ai ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด อื่น ๆi

  • ดาวมากกว่า 0% ของอีก 32451 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 15% ของอีก 32451 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 32451 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Mastyf.ai ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

ต้องใส่ค่าเหล่านี้: ALERT_WEBHOOK_URL

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (4.1.12) เข้า registry 4 เดือนที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี Spec Driven Development, Remote Desktop Commander, Recta

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Spec Driven Development

โดย formulahendry

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

รันบนเครื่อง★ 440MITอัปเดต 14 เดือนที่ผ่านมา
ติดตั้ง

Remote Desktop Commander

โดย desktop-commander

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

รันบนคลาวด์★ 211อัปเดต เมื่อวาน
ติดตั้ง

Recta

โดย RectaBuild

Cheaper cross-chain stablecoin routes for AI agents; 5 % of the verified saving, nothing if none.

รันบนคลาวด์อัปเดต วันนี้
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ 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

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx