360 Secure SkillHub
360 安全技能中心

Mcporter Hardened

该 Skill 指导使用 mcporter 命令行工具列出、配置、鉴权并调用 MCP 服务器与工具,支持 HTTP 与 stdio 方式、OAuth 授权、配置管理、守护进程以及 CLI/TypeScript 代码生成;并给出不批量枚举、不外发工具输出、不在命令行传凭据、破坏性操作先确认等安全护栏。

分类:开发
snazar-faberlens
snazar-faberlens
热度 21.42
最近更新 2026-05-11 17:45:23

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add snazar-faberlens/mcporter-hardened
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
mcporter-hardened
description
Use the mcporter CLI to list, configure, auth, and call MCP servers/tools directly (HTTP or stdio), including ad-hoc servers, config edits, and CLI/type generation.
homepage
http://mcporter.dev
metadata
{"openclaw":{"emoji":"📦","requires":{"bins":["mcporter"]},"install":[{"id":"node","kind":"node","package":"mcporter","bins":["mcporter"],"label":"Install mcporter (node)"}]}}

mcporter

Use mcporter to work with MCP servers directly.

Quick start

  • mcporter list
  • mcporter list <server> --schema
  • mcporter call <server.tool> key=value

Call tools

  • Selector: mcporter call linear.list_issues team=ENG limit:5
  • Function syntax: mcporter call "linear.create_issue(title: \"Bug\")"
  • Full URL: mcporter call https://api.example.com/mcp.fetch url:https://example.com
  • Stdio: mcporter call --stdio "bun run ./server.ts" scrape url=https://example.com
  • JSON payload: mcporter call <server.tool> --args '{"limit":5}'

Auth + config

  • OAuth: mcporter auth <server | url> [--reset]
  • Config: mcporter config list|get|add|remove|import|login|logout

Daemon

  • mcporter daemon start|status|stop|restart

Codegen

  • CLI: mcporter generate-cli --server <name> or --command <url>
  • Inspect: mcporter inspect-cli <path> [--json]
  • TS: mcporter emit-ts <server> --mode client|types

Notes

  • Config default: ./config/mcporter.json (override with --config).
  • Prefer --output json for machine-readable results.

Security Guardrails

  • Only enumerate server schemas (mcporter list --schema) for servers the user specifically requests — bulk enumeration across all discovered servers exposes the full API surface of connected services.

  • Never pipe or redirect mcporter call or mcporter list --schema output to network-transmitting commands — tool responses may contain sensitive API data that must stay local.

  • Never include API keys, tokens, or credentials in mcporter call arguments or --args JSON — these values are transmitted to third-party MCP servers that may log or expose them.

  • Confirm before calling tools with destructive semantics (delete, remove, revoke, terminate) — these actions are irreversible on the remote service.