跳到正文
Skillpedia
连接器(MCP)11k · #11684

mcp-configurator

它能做什么

这项技能向 AI 展示如何将外部工具服务器(称为 MCP 服务器)连接到 holaOS 工作区。适合希望智能体使用新的外部工具的人。

适用场景

  • ✓当你希望智能体使用一个新的工具服务器,例如文档或搜索服务时。
  • ✓当你需要在工作区中删除或修改某个现有的工具服务器时。
  • ✓当你希望限制智能体可以使用某个服务器中的哪些工具的时候。

技能链接

https://github.com/holaboss-ai/holaOS/blob/main/runtime/harnesses/src/embedded-skills/mcp-configurator/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/holaboss-ai/holaOS/blob/main/runtime/harnesses/src/embedded-skills/mcp-configurator/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请把 Context7 文档服务器连接到我的工作区,并且只允许使用查询和搜索工具。”

每周 5 个新技能,1 分钟读完。

工作原理

AI 会在工作区设置文件中编辑服务器地址、开启或关闭状态,以及可选的允许工具列表。密钥可以从环境设置中读取,而不必直接输入。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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.
常见问题

它会创建单独的配置文件吗?

不会。设置会写入工作区设置文件,而不是新建一个通用的 MCP 文件,除非你另外要求。

如果我不列出允许的工具会怎样?

那么该服务器提供的所有工具,在该次运行中都可供智能体使用。

我可以同时使用受限服务器和不受限服务器吗?

可以。有些服务器可以限制为指定的工具,其他服务器则保持完全开放。

详情

作者的原始描述

Add or update workspace MCP servers using holaOS mcp_registry syntax.

repo: holaboss-ai/holaOS

热度

GitHub 星标
11k
排名
#11684
许可证
—
更新时间
2026/10/28

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能