mgc-blackbox-meta-skill

用于AI代理的本地加密凭证与脚本管理。提供本地加密存储凭证、密码、配置和脚本并在零明文泄露的执行层面管理它们。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "mgc-blackbox-meta-skill":https://skillpi.com/zh/skills/deepskill-3197910ecca78b0fb5c5a1552f15cf1b36db131ad0eddfe16d75658766f4e675。安装前核对上游来源和版本:https://skillhub.cn/skills/user_46820e02/mgc-blackbox-meta-skill。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

用于AI代理的本地加密凭证与脚本管理。提供本地加密存储凭证、密码、配置和脚本并在零明文泄露的执行层面管理它们。

0 下载

介绍来源: third_party · user_46820e02 · 1.0.0 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
软件、账号及付费要求
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: "MGC Blackbox Credential & Script Vault (Zero‑Exposure)"
description: "Local encrypted credential and script management for AI agents. Zero‑exposure execution layer for storing tokens, passwords, configs, and scripts without plaintext leakage."

1. Overview — What MGC Blackbox Is

MGC Blackbox is a local encrypted execution layer.
It allows AI agents, system scripts, and human users to store, execute, and delegate sensitive information or scripts without ever exposing plaintext.

This meta skill is the core documentation layer for all Zero‑Exposure skills, including SMTP Token Security, Database Credential Security, Webhook Token Security, and Key‑Safe Generator.

Core capabilities:

  • Store sensitive data (tokens, passwords, configs)
  • Store scripts (logic, workflows, automation)
  • Execute stored scripts with optional parameters
  • Seal scripts for delegated execution (ownership retained)
  • List stored entries (metadata only)
  • Open WebUI for human operations

All data is encrypted locally.
AI can execute but can never read plaintext.


2. Installation & Runtime — How to Install and Run MGC

2.1 Install MGC Blackbox

Via pip (recommended):

pip install mgc-blackbox

Ensure installation happens in the same Python environment where your MCP agent runs.


2.2 Run MGC in normal mode

Start MGC as a standalone local service:

mgc

Default behavior:

  • Starts HTTP server at http://127.0.0.1:57219
  • Initializes encrypted database on first run
  • Generates access token at:
    ~/.mgc/database/mgc_black_box/.mgc_token

This token is required for all REST API calls.


2.3 Run MGC as an MCP server

If your agent supports MCP, configure:

{
  "mcpServers": {
    "mgc-blackbox": {
      "command": "mgc",
      "args": ["--mcp"]
    }
  }
}

In MCP mode:

  • MGC exposes tools:
    mgc_save, mgc_get, mgc_list, mgc_seal, mgc_open_webui
  • AI interacts only through MCP tools
  • REST API is still available for system scripts

2.4 WebUI access

When MGC is running, WebUI is available at:

http://127.0.0.1:57218

⚠️ Port conflict resolution: If port 57218 is occupied, MGC will automatically try 57217, 57216... sequentially.

Tip: Check the WebUI address in the MGC startup output for the exact URL.

Used for:

  • Initialization
  • Manual storage
  • Metadata inspection
  • Database Audit (for manual deletion)
  • Logs & settings

Ext Field Protocol — MGC Parameter Agreement

Field Usage Description
ext01 Startup Platform Script execution command, e.g., "python"
ext02 Runtime Args Parameters passed at script runtime
ext03 Sealed Key RSA-encrypted AES key for sealed script
ext04 Node Pub Target node RSA public key (used in seal)

Usage Rules

  • All ext fields (ext01-ext30) are dynamically passed via MCP/API/WebUI
  • ext02 takes effect only when action=run
  • ext04 is required only when action=SEAL (target node public key)

3. Invocation Model — Who Uses MGC and How

① AI Invocation (via MCP Tools)

Used when AI needs to:

  • Store sensitive information
  • Retrieve sensitive information (encrypted execution)
  • Execute stored scripts
  • Seal scripts for other nodes
  • List stored entries
  • Open the WebUI

② System / Script Invocation (via REST API)

Used when:

  • External scripts need sensitive data at runtime
  • Automated workflows need to execute stored scripts
  • System-level integrations require secure credential access

③ Human Invocation (via WebUI)

Used for:

  • First-time initialization
  • Manual storage
  • Metadata inspection
  • Manual deletion (via DB Audit)
  • Viewing logs

4. MCP Tools — AI-Callable Interfaces


mgc_save — Store Sensitive Data or Scripts

Arguments:

{
  "info_type": "token | script | config | ...",
  "info_owner": "unique identifier",
  "diff_1": "optional - identifier for multi-entry scenarios",
  "diff_2": "optional",
  "diff_3": "optional",
  "ext01": "startup command (e.g., python) - required for executable scripts",
  "ext02": "default script runtime parameters (used when action=run)",
  "ext03": "optional - target node RSA public key (for sealing)",
  "content": "plaintext to store"
}

Note: ext01 is auto-detected by WebUI. For MCP/API, explicitly set it (e.g., "python"). All ext01-ext30 fields are dynamically passed to API.


mgc_get — Retrieve Sensitive Data or Execute Scripts

Arguments:

{
  "info_type": "token | script | ...",
  "info_owner": "unique identifier",
  "diff_1": "optional",
  "diff_2": "optional",
  "diff_3": "optional",
  "action": "run",   // optional: executes script, returns start status only
  "params": {},      // optional: override runtime parameters (supersedes ext02)
  "ext01": "startup command (auto-retrieved from storage)",
  "ext02": "runtime parameters (defaults from storage)",
  "ext03": "stored sealed RSA key",
  "ext04": "target node RSA public key (for sealed script runtime)"
}

Note: For script execution, MGC returns only "success/failure". All parameters are dynamically passed to API.

🔹 MGC 1.4 Behavior: Partial Matching Returns Filtered List

If parameters match multiple entries:

  • No sensitive content is returned
  • A filtered metadata list is returned
  • AI must ask user to refine selection

mgc_list — List Stored Entries (Metadata Only)

Arguments:

{
  "info_type": "optional",
  "info_owner": "optional",
  "diff_1": "optional",
  "diff_2": "optional",
  "diff_3": "optional"
}

mgc_seal — Seal Script for Delegated Execution

Prerequisite: Retrieve target node’s public key

{
  "name": "mgc_get",
  "arguments": {
    "info_type": "__NODE_PUB__",
    "info_owner": "__NODE_PUB__"
  }
}

Returned content contains PEM public key.

Seal Arguments:

{
  "info_owner": "script identifier",
  "ext04": "target node public key (PEM) - stored in ext03 after seal",
  "info_type": "script",
  "diff_1": "optional",
  "diff_2": "optional",
  "diff_3": "optional"
}

mgc_open_webui — Open Local WebUI

Opens WebUI in the default browser. Default port is 57218 (or lower if occupied).

{}

5. REST API — System / Script Integration

Base URL:

http://127.0.0.1:57219

Header:

X-MGC-Token: <token>

Token file:

~/.mgc/database/mgc_black_box/.mgc_token

POST /api/mgc/sensitive/save

Request:

{
  "info_type": "...",
  "info_owner": "...",
  "content": "...",
  "update_if_exists": true
}

POST /api/mgc/sensitive/get

Retrieve sensitive data or execute scripts.

Request:

{
  "info_type": "...",
  "info_owner": "...",
  "action": "run"
}

Response:

{
  "code": 200,
  "msg": "Operation successful",
  "hint": "Decrypted from MGC. Burn after use.",
  "data": "decrypted content"
}

POST /api/mgc/sensitive/get (empty body)

List all stored entries (metadata only).

Request:

{}

6. Trigger Rules — When AI Should Use Which Tool

  • “Save this token/password/script” → mgc_save
  • “Run my script X” → mgc_get (action=run)
  • “What do I have stored?” → mgc_list
  • “Seal this script for node B” → mgc_seal
  • “Open the interface” → mgc_open_webui

7. Security Model — How MGC Protects Data

  • All data is encrypted locally
  • AI can execute but never read plaintext
  • Seal is irreversible
  • Execution rights ≠ ownership
  • Content never leaves the device in plaintext
  • Script execution happens inside the encrypted boundary

8. Delete Policy (MGC 1.4.6)

Delete functionality is now available via WebUI only.

To delete info:

  1. Open WebUI → Get page
  2. Click Delete button on the entry

9. Error Handling

Status Meaning AI Action
NOT_FOUND Entry not found Use mgc_list or ask user
MULTIPLE_MATCHES Partial match Present filtered list
Connection failed MGC not running MCP auto-starts
Initialization required First-time setup Call mgc_open_webui

Links

当前收录版本

1.0.0

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值92/100

亮点

  • MGC Blackbox 解决了AI代理和系统脚本中敏感凭证安全存储的核心痛点
  • 提供零暴露执行层,确保敏感数据永不以明文形式泄露
  • 支持多种使用场景:AI调用、系统脚本集成、人工WebUI操作
触发精准85/100

待提升项

  • 触发词描述较复杂 原报告严重程度:轻微

    部分参数(如ext01-ext30)描述较为复杂,可能导致边缘场景理解歧义

    改进建议:建议简化ext字段说明,提供更清晰的参数使用示例

亮点

  • 触发规则清晰明确,覆盖主要使用场景
  • MCP工具命名规范,易于理解和调用
结构规范88/100

待提升项

  • 文档长度较长 原报告严重程度:轻微

    文档内容详尽但篇幅较长,可能影响快速查阅

    改进建议:建议添加目录导航或摘要部分,便于快速定位关键信息

亮点

  • 文档结构层次清晰,从概述到具体实现逐步展开
  • 包含完整的安装、配置、使用示例和错误处理说明
  • frontmatter完整,符合Skill规范要求
执行可靠90/100

亮点

  • 提供多种部署方式(pip安装、MCP模式、独立服务)
  • 完善的错误处理机制和状态码定义
  • 安全模型设计合理,包含加密存储、零暴露执行等核心特性
  • 支持端口冲突自动解决和WebUI访问
证据可验 (前四项均值)89/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 安装或获取外部依赖

    使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。

    主文档提及 · 第 31 行
  • 账号、密钥或授权

    使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。

    主文档提及 · 第 2, 3, 9, 50, 138 行
文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • 127.0.0.1
  • github.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

翻译待完成,请参阅来源文档。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。