Chuyển đến nội dung
Skillpedia
Trình kết nối (MCP)11k · #11684

mcp-configurator

Skill này làm gì

Skill này chỉ cho AI cách kết nối các máy chủ công cụ bên ngoài, gọi là máy chủ MCP, vào không gian làm việc holaOS. Skill dành cho người muốn agent của mình dùng thêm công cụ bên ngoài.

Khi nào nên dùng

  • ✓Khi bạn muốn agent dùng một máy chủ công cụ mới, như dịch vụ tài liệu hoặc tìm kiếm.
  • ✓Khi bạn cần xóa hoặc thay đổi một máy chủ công cụ đang có trong không gian làm việc.
  • ✓Khi bạn muốn giới hạn những công cụ agent được dùng từ một máy chủ.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/holaboss-ai/holaOS/blob/main/runtime/harnesses/src/embedded-skills/mcp-configurator/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Kết nối máy chủ tài liệu Context7 vào không gian làm việc của tôi và chỉ cho phép các công cụ tra cứu và tìm kiếm.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

AI chỉnh sửa tệp thiết lập không gian làm việc với địa chỉ máy chủ, trạng thái bật hoặc tắt và danh sách công cụ được phép không bắt buộc. Khóa có thể được đọc từ thiết lập môi trường thay vì gõ trực tiếp.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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.
Câu hỏi thường gặp

Skill có tạo tệp cấu hình riêng không?

Không. Thiết lập nằm trong tệp cài đặt của không gian làm việc thay vì một tệp MCP chung riêng, trừ khi bạn yêu cầu khác.

Nếu tôi không liệt kê công cụ nào được phép thì sao?

Khi đó mọi công cụ máy chủ cung cấp vẫn sẵn cho agent trong lần chạy đó.

Tôi có thể vừa có máy chủ giới hạn vừa có máy chủ mở không?

Có. Một số máy chủ có thể giới hạn ở các công cụ đã chọn, trong khi những máy chủ khác vẫn mở hoàn toàn.

Chi tiết

Mô tả gốc của tác giả

Add or update workspace MCP servers using holaOS mcp_registry syntax.

repo: holaboss-ai/holaOS

Độ phổ biến

Sao GitHub
11k
Vị trí xếp hạng
#11684
Giấy phép
—
Cập nhật
28/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự