mgc-blackbox-meta-skill

Local encrypted credential and script management for AI agents. Provides local encrypted storage for credentials, passwords, configs, and scripts and manages them at an execution layer designed for zero‑plaintext exposure.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "mgc-blackbox-meta-skill" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-3197910ecca78b0fb5c5a1552f15cf1b36db131ad0eddfe16d75658766f4e675. Verify the upstream source and version against https://skillhub.cn/skills/user_46820e02/mgc-blackbox-meta-skill before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Local encrypted credential and script management for AI agents. Provides local encrypted storage for credentials, passwords, configs, and scripts and manages them at an execution layer designed for zero‑plaintext exposure.

0 Downloads

Introduction source: third_party · user_46820e02 · 1.0.0 Reference

SkillPi interpretation

Tasks
Local encrypted credential and script management for AI agents. Zero‑exposure execution layer for storing tokens, passwords, configs, and scripts without plaintext leakage.
Software, accounts and paid services
Returned `content` contains PEM public key.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
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

Current listing version

1.0.0

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

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

Areas to improve

  • 触发词描述较复杂 Reported severity: Minor

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

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

Highlights

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

Areas to improve

  • 文档长度较长 Reported severity: Minor

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

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

Highlights

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

Highlights

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

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

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

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • 127.0.0.1
  • github.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Returned `content` contains PEM public key.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.