Agent Skillsholaboss-ai/holaOS › mcp-configurator

mcp-configurator

GitHub

用于在 holaOS 工作区中配置 MCP 服务器(添加、移除或更新),指导编辑 workspace.yaml 中的 mcp_registry,支持远程 HTTP、本地 stdio 及工作区工具目录的配置与验证。

runtime/harnesses/src/embedded-skills/mcp-configurator/SKILL.md holaboss-ai/holaOS

Trigger Scenarios

需要在工作区中添加或修改 MCP 服务器配置 需要更新工作区的 MCP 工具白名单或注册表

Install

npx skills add holaboss-ai/holaOS --skill mcp-configurator -g -y
More Options

Non-standard path

npx skills add https://github.com/holaboss-ai/holaOS/tree/main/runtime/harnesses/src/embedded-skills/mcp-configurator -g -y

Use without installing

npx skills use holaboss-ai/holaOS@mcp-configurator

指定 Agent (Claude Code)

npx skills add holaboss-ai/holaOS --skill mcp-configurator -a claude-code -g -y

安装 repo 全部 skill

npx skills add holaboss-ai/holaOS --all -g -y

预览 repo 内 skill

npx skills add holaboss-ai/holaOS --list

SKILL.md

Frontmatter
{
    "name": "mcp-configurator",
    "description": "Add or update workspace MCP servers using holaOS mcp_registry syntax."
}

MCP Configurator

Use this skill when the task is to add, remove, or update MCP access in a holaOS workspace.

Core Rules

  1. Edit workspace.yaml at the workspace root. Do not create mcp.json, .cursor/mcp.json, claude_desktop_config.json, or another generic MCP config unless the user explicitly asks for that format.
  2. Workspace-level MCP lives under mcp_registry.
  3. Tool ids in mcp_registry.allowlist.tool_ids must use strict server.tool syntax.
  4. Omitting mcp_registry.allowlist.tool_ids or setting it to [] means all discovered tools from enabled configured servers stay available for that run.
  5. Mixed mode is valid: some servers can be constrained by explicit allowlisted tool ids while other enabled servers stay discover-all.
  6. This embedded skill is guidance only. When the user asks to add MCP to a workspace, update the target workspace config instead of writing new files under runtime/harnesses/src/embedded-skills/.

Remote Server Shape

Use this shape for remote HTTP MCP servers:

mcp_registry:
  servers:
    context7:
      type: remote
      url: https://mcp.context7.com/mcp
      enabled: true
      timeout_ms: 30000
      headers:
        CONTEXT7_API_KEY: "{env:CONTEXT7_API_KEY}"
  allowlist:
    tool_ids:
      - context7.lookup
      - context7.search

Header values must be either:

  • a literal secret value
  • or {env:ENV_VAR_NAME}

This is invalid:

headers:
  CONTEXT7_API_KEY: "{env:ctx7sk-live-abc123}"

That is a placeholder-shaped literal secret, not an environment-variable reference.

Local Server Shape

Use this shape for local stdio MCP servers:

mcp_registry:
  servers:
    my_server:
      type: local
      command:
        - npx
        - -y
        - "@acme/my-mcp"
      enabled: true
      timeout_ms: 30000
      environment:
        MY_SERVER_API_KEY: "{env:MY_SERVER_API_KEY}"

Local MCP commands must be a non-empty list of command tokens.

Workspace Tool Catalog Shape

Use mcp_registry.catalog for workspace-local tools implemented inside the repo:

mcp_registry:
  servers:
    workspace:
      type: local
  catalog:
    workspace.echo:
      module_path: tools.echo
      symbol: echo_tool
  allowlist:
    tool_ids:
      - workspace.echo

Notes:

  • mcp_registry.servers.workspace must stay local.
  • The runtime owns the actual workspace MCP host command, so do not try to wire a custom command for workspace.
  • Each workspace.<tool> allowlist entry must have a matching mcp_registry.catalog entry.

App-Managed MCP

If the MCP tools come from a workspace app's app.runtime.yaml mcp.tools, prefer the app-managed flow:

  • keep the app manifest correct
  • let the runtime reconcile mcp_registry.servers.<app_id> and mcp_registry.allowlist.tool_ids
  • do not hand-maintain those generated entries unless the task explicitly requires it

Verification

  1. Re-open workspace.yaml and confirm the final shape is mcp_registry, not a generic MCP config format.
  2. Confirm every allowlisted tool id is server.tool.
  3. Confirm every referenced server id exists under mcp_registry.servers.
  4. Confirm placeholder syntax is {env:ENV_VAR_NAME} when environment indirection is intended.
  5. Remember that MCP config changes take effect on the next run, not retroactively inside the already running harness session.

Version History

  • f52b580 Current 2026-07-25 05:13

Same Skill Collection

apps/desktop/electron/default-skills/audience-analyst/SKILL.md
apps/desktop/electron/default-skills/content-planner/SKILL.md
apps/desktop/electron/default-skills/content-writer/SKILL.md
apps/desktop/electron/default-skills/data-analyst/SKILL.md
apps/desktop/electron/default-skills/email-writer/SKILL.md
apps/desktop/electron/default-skills/idea-generator/SKILL.md
apps/desktop/electron/default-skills/image-generator/SKILL.md
apps/desktop/electron/default-skills/meeting-notes/SKILL.md
apps/desktop/electron/default-skills/performance-reporter/SKILL.md
apps/desktop/electron/default-skills/prd-writer/SKILL.md
apps/desktop/electron/default-skills/proposal-writer/SKILL.md
apps/desktop/electron/default-skills/summarizer/SKILL.md
apps/desktop/electron/default-skills/tone-adapter/SKILL.md
apps/desktop/electron/default-skills/translator/SKILL.md
apps/desktop/electron/default-skills/trend-spotter/SKILL.md
apps/desktop/electron/default-skills/video-generator/SKILL.md
apps/desktop/electron/default-skills/web-researcher/SKILL.md
runtime/harnesses/src/embedded-skills/app-builder-sdk/SKILL.md
runtime/harnesses/src/embedded-skills/browser-core-efficient/SKILL.md
runtime/harnesses/src/embedded-skills/browser-qa/SKILL.md
runtime/harnesses/src/embedded-skills/build-dashboard/SKILL.md
runtime/harnesses/src/embedded-skills/capability-creator/SKILL.md
runtime/harnesses/src/embedded-skills/create-teammate/SKILL.md
runtime/harnesses/src/embedded-skills/customize-capability/SKILL.md
runtime/harnesses/src/embedded-skills/frontend-design/SKILL.md
runtime/harnesses/src/embedded-skills/interface-design/SKILL.md
runtime/harnesses/src/embedded-skills/skill-creator/SKILL.md
runtime/harnesses/src/embedded-skills/skill-installer/SKILL.md
runtime/harnesses/src/embedded-skills/stop-slop/SKILL.md

Metadata

Files
0
Version
f6013b5
Hash
15759ff4
Indexed
2026-07-25 05:13

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-21 06:30
浙ICP备14020137号-1 $Гость$