← 返回 Skills 市场
maverick

Mcporter Skill Builder

作者 Maverick · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
59
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install mcporter-skill-builder
功能描述
Scaffold a new mcporter-wrapped MCP skill bundle from a slug and the MCP server's transport details. Handles all mcporter transports — HTTP (OAuth/DCR, beare...
使用说明 (SKILL.md)

mcporter-skill-builder

Scaffold an MCP wrapper skill that follows upstream OpenClaw and mcporter conventions. The output is a complete bundle the user can immediately edit, test, and publish.

When invoked

The user invokes the slash command (/mcporter-skill-builder ...) or asks naturally ("scaffold a Sentry MCP skill", "create an mcporter wrapper for Notion"). Either way, this skill is responsible for producing the bundle.

The frontmatter sets user-invocable: true but deliberately does not set command-dispatch: tool — the slash command goes through the model, loads this SKILL.md as context, and the agent drives scaffolding via shell tools (mkdir, cp, file-write primitives). Per OpenClaw skills.md § "Optional frontmatter keys", command-dispatch: tool would bypass the model and route directly to a single named tool — wrong fit here, since scaffolding is a multi-step decision tree (transport selection, input validation, file generation, post-scaffold validation) that benefits from the agent's judgment.

Step 1 — Choose a transport and auth shape

mcporter wraps several MCP server shapes. The first decision determines everything else; ask the user explicitly when their request is ambiguous.

Mode When to pick What you'll need
HTTP + OAuth (DCR) The MCP server has /.well-known/oauth-authorization-server and a registration_endpoint. Most hosted MCPs (Linear, Sentry, Notion, etc.). A base URL. The provisioner supplies refresh/access/client-id env vars.
HTTP + bearer token The MCP authenticates with a static Authorization: Bearer \x3Ctoken> header. A base URL and an env-var name (e.g. ACME_API_TOKEN).
HTTP + custom headers The MCP authenticates via custom headers (X-API-Key, etc.). A base URL and one or more \x3CHEADER_NAME>=\x3CENV_VAR_NAME> pairs.
HTTP + no auth Public MCP, no credentials needed. Rare. A base URL only.
stdio The MCP runs as a local subprocess (mcp-server-foo or npx -y @vendor/mcp-server). A command and its args. Possibly env vars. The binary must be on PATH or the package must be runnable.

If the user said "scaffold a Linear/Sentry/Notion MCP skill" without specifying, default to HTTP + OAuth — that's the dominant pattern for hosted MCPs. If they said "scaffold an MCP wrapper for mcp-server-time" or anything mentioning npx/uvx/a local command, default to stdio. When in doubt, ask once and proceed.

The references for mode-specific scaffolding are loaded per-mode. Read only the one that matches the chosen mode:

Cross-cutting context that applies regardless of mode lives in references/conventions.md. Read it before generating any bundle — it owns naming rules, body sizing, requires.bins discipline, and public-distribution boundaries.

Step 2 — Validate inputs

Universal across modes:

  • \x3Cslug> (required) — Lowercase, hyphenated, ≤64 chars (skill-creator naming spec). Becomes the skill directory name, the mcporter server key, the SKILL.md name field, and the invocation prefix in mcporter call \x3Cslug>.\x3Ctool>. These four sites must match exactly — drift breaks invocation silently.
  • --out \x3Cpath> (optional, default: skills/) — Parent directory the new bundle gets written under, relative to cwd. The bundle itself lands at \x3Cout>/\x3Cslug>/. Default matches OpenClaw's workspace skills convention.

Mode-specific input validation lives in the per-mode reference. Read it and apply before writing any file.

If the slug is invalid (non-lowercase, contains spaces, leading/trailing hyphens, >64 chars, conflicts with an existing directory), refuse and explain. Do not "helpfully" normalize — the user should pick a clean slug intentionally.

Step 3 — Confirm the output path is empty

If \x3Cout>/\x3Cslug>/ already exists, list its contents and ask whether to overwrite, merge, or pick a different path. Default to refusing. Treat this as the most likely user error — do not silently overwrite.

Step 4 — Generate the bundle

For the file shape (always SKILL.md + mcporter.json; OAuth additionally ships scripts/invoke.sh + scripts/init-mcporter.sh), see conventions.md § "Files generated by scaffolding".

The per-mode reference owns the exact templates for SKILL.md and mcporter.json (inline as fenced markdown/json blocks — substitute the slug, base URL or stdio command, env-var names, and other mode-specific values; do not improvise). Shell-script templates (OAuth mode's invoke.sh and init-mcporter.sh) live as separate files at {baseDir}/scripts/templates/ and are copied byte-for-byte to \x3Cout>/\x3Cslug>/scripts/ — no substitution needed; they're slug-agnostic by design.

The cross-cutting rules — body sizing, --config {baseDir}/mcporter.json discipline, the skill-vs-MCP boundary that keeps tool names out of SKILL.md prose, requires.bins discipline, the description-as-trigger reminder, the editability and verbatim rules for Discovery / Authentication blocks — are owned by conventions.md. Read it before generating any bundle and treat it as the source of truth when the per-mode reference and conventions.md ever appear to disagree.

Step 5 — Validate

Run references/validation.md. Most checks are universal; mode-specific checks live in the per-mode reference. Do not skip — each catches a specific failure mode that has been observed.

For every bundle (regardless of mode), run the bundled verifier:

bash {baseDir}/scripts/verify-bundle.sh \x3Cout>/\x3Cslug>

The contract the verifier enforces, the failure modes it surfaces, and how to resolve each are owned by validation.md § "Bundle ⇄ template consistency". If any check fails, fix and re-run before reporting success.

Step 6 — Report back

Use the canonical shape in conventions.md § "Reporting back to the user" — universal bullets (paths written, description-is-placeholder reminder, smoke-test command) plus the mode-specific row from the table there. Keep the report under ~10 lines. The user already saw the file writes happen.

What you must NOT do

These apply regardless of mode:

  • Do not enumerate the MCP's tool catalog in the generated SKILL.md body. The description should describe the integration's purpose; the body should point the agent at mcporter list \x3Cslug> --schema for the live tool catalog. See conventions.md § "Skill-vs-MCP boundary".
  • Do not bypass the OAuth runtime wrapper. For OAuth mode, SKILL.md examples must call bash {baseDir}/scripts/invoke.sh ..., not mcporter directly. The wrapper seeds the vault when needed, exports MCPORTER_CONFIG, and then calls mcporter.
  • Do not put internal/proprietary content in the generated bundle. Skill bundles ship to public ClawHub — see conventions.md § "Public-distribution discipline" for the rule and rationale.
  • Do not make up auth shapes. If the user describes an auth mechanism that doesn't fit any of the five modes (HTTP×4 + stdio), stop and explain — adding a new mode requires updating templates and conventions, not improvising in a single bundle.

References

The conventions enforced by this skill are not invented; they distill upstream guidance. Cite these when justifying a generated artifact to a user:

  • OpenClaw skills reference — load-time gating, frontmatter fields, requires.bins/requires.env semantics, {baseDir} placeholder, slash-command frontmatter (user-invocable, command-dispatch, command-arg-mode), the per-skill mcporter.json config approach: \x3Chttps://github.com/openclaw/openclaw/blob/main/docs/tools/skills.md>
  • OpenClaw skill-creator playbook — naming rules (lowercase + hyphens, ≤64 chars, verb-led), body ≤500 lines, three-level loading model, "agent is already smart" default, anti-pattern files (no README/CHANGELOG/INSTALLATION_GUIDE inside bundles), no-symlinks rule, description-as-trigger: \x3Chttps://github.com/openclaw/openclaw/blob/main/skills/skill-creator/SKILL.md>
  • OpenClaw "Creating skills" — quick-start, metadata.openclaw.os filter, requires.config gate: \x3Chttps://github.com/openclaw/openclaw/blob/main/docs/tools/creating-skills.md>
  • mcporter agent-skill pattern — "one small skill per MCP server, not a generic catch-all" guidance: \x3Chttps://github.com/openclaw/mcporter/blob/main/docs/agent-skills.md>
  • mcporter call syntax — flag-based vs function-call invocation, --output json envelopes for transport-error handling: \x3Chttps://github.com/openclaw/mcporter/blob/main/docs/call-syntax.md>
  • mcporter config — config discovery order (--config > MCPORTER_CONFIG > project > home), XDG path resolution, transport selection (HTTP / stdio), bearerTokenEnv, headers with ${VAR} interpolation, imports semantics: \x3Chttps://github.com/openclaw/mcporter/blob/main/docs/config.md>

Mode-specific authoritative sources (OAuth vault internals, stdio spawn semantics, etc.) are cited in the per-mode references where they apply.

安全使用建议
Do not use or publish OAuth-mode scaffolds from this skill until scripts/templates/init-mcporter.sh is manually inspected and any hardcoded secret is removed or confirmed as a false positive. If that issue is fixed, the remaining risks are mostly expected for an MCP wrapper builder: use trusted MCP servers, review tool schemas before write actions, protect OAuth credentials, and verify any stdio packages before allowing them to run locally.
功能分析
Type: OpenClaw Skill Name: mcporter-skill-builder Version: 1.0.0 The mcporter-skill-builder bundle is a legitimate scaffolding tool designed to help an AI agent generate MCP (Model Context Protocol) skill bundles. It provides structured instructions in SKILL.md and various reference files for different authentication modes (OAuth, Bearer, etc.). The included shell scripts, such as init-mcporter.sh and verify-bundle.sh, are used for local credential management and bundle integrity checks. While the tool handles sensitive tokens and executes shell commands, its behavior is transparent, well-documented, and strictly aligned with the purpose of configuring the mcporter utility. No evidence of data exfiltration, malicious prompt injection, or unauthorized persistence was found.
能力标签
requires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
Scaffolding mcporter-wrapped MCP skills is coherent with the documentation, but the included OAuth runtime template is reported to contain an apparent hardcoded client_secret, which is not needed for a generic scaffold.
Instruction Scope
Generated skills instruct the agent to read and rely on live MCP server-published instructions and tool schemas. That is expected for an MCP wrapper, but users should treat remote MCP instructions as untrusted unless they match the user’s goal.
Install Mechanism
The builder itself has no install spec, while generated skills may install or invoke mcporter and stdio MCP package runners such as npx/uvx. This is disclosed and central to the purpose, but users should verify package provenance.
Credentials
OAuth, bearer, and header modes are expected to involve credentials, but the apparent hardcoded secret in scripts/templates/init-mcporter.sh creates an overbroad credential-handling concern.
Persistence & Privilege
OAuth-mode generated skills seed mcporter’s credential vault and track provisioning state under the skill directory. This is disclosed and purpose-aligned, but it creates persistent credential-related local state.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install mcporter-skill-builder
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /mcporter-skill-builder 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Update skill bundle
元数据
Slug mcporter-skill-builder
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Mcporter Skill Builder 是什么?

Scaffold a new mcporter-wrapped MCP skill bundle from a slug and the MCP server's transport details. Handles all mcporter transports — HTTP (OAuth/DCR, beare... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 59 次。

如何安装 Mcporter Skill Builder?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install mcporter-skill-builder」即可一键安装,无需额外配置。

Mcporter Skill Builder 是免费的吗?

是的,Mcporter Skill Builder 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Mcporter Skill Builder 支持哪些平台?

Mcporter Skill Builder 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Mcporter Skill Builder?

由 Maverick(@maverick)开发并维护,当前版本 v1.0.0。

💬 留言讨论