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

langbot-mcp-ops

Skill này làm gì

Skill này chỉ cho một agent AI cách điều khiển instance LangBot qua kết nối MCP của nó. Dành cho người vận hành LangBot và muốn AI của họ quản lý nó.

Khi nào nên dùng

  • ✓Khi bạn muốn AI liệt kê, tạo hoặc cập nhật bot và pipeline của LangBot.
  • ✓Khi bạn cần kết nối một client AI tới địa chỉ MCP của LangBot bằng khóa API.
  • ✓Khi bạn muốn kiểm tra khóa API LangBot có những quyền nào.

Liên kết skill

https://github.com/langbot-app/LangBot/blob/master/skills/skills/langbot-mcp-ops/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/langbot-app/LangBot/blob/master/skills/skills/langbot-mcp-ops/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

“Tôi muốn AI của mình dùng máy chủ MCP LangBot để liệt kê các bot và đổi mô hình cho một trong số đó.”

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

Cách hoạt động

Agent kết nối tới địa chỉ MCP của LangBot bằng khóa API. Sau đó nó gọi các công cụ được liệt kê, phản chiếu một phần API dịch vụ LangBot.

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.

LangBot MCP Operations

LangBot exposes an MCP server so AI agents can manage an instance programmatically. It mirrors a curated subset of the HTTP service API.

Endpoint

http://<langbot-host>:5300/mcp

Transport: streamable HTTP (stateless, JSON responses). Same host/port as the web UI and HTTP API.

Authentication

Reuses the same API keys as the HTTP API. Send either header:

X-API-Key: <api-key>
# or
Authorization: Bearer <api-key>

Two kinds of key are accepted:

  1. Web-UI key — created in the web UI (sidebar → API Keys), prefixed lbk_. The secret is shown once; only its SHA-256 hash is stored. Each key is bound to one Workspace and has explicit scopes, status, optional expiry, and last-used metadata. The key determines the Workspace; callers cannot switch it with X-Workspace-Id.
  2. Global API key — set in data/config.yaml under api.global_api_key. Requires no login session and no DB record; does not need the lbk_ prefix. It is accepted only by a community instance with exactly one local Workspace and is disabled for SaaS multi-Workspace operation. Leave empty to disable. See the langbot-deploy skill for config details.

Invalid, revoked, or expired keys get 401 Unauthorized. A valid key whose scopes do not authorize a tool gets 403 Forbidden.

To inspect key identity and permissions, call GET /api/v1/system/context with the API key.

Client configuration

{
  "mcpServers": {
    "langbot": {
      "url": "http://<langbot-host>:5300/mcp",
      "headers": { "X-API-Key": "<api-key>" }
    }
  }
}

Tool surface

Slack quick setup: create a disabled slack-omni bot draft first, then use start_slack_setup with the user's App Configuration access/refresh tokens. Choose socket_mode=true with a browser-reachable OAuth redirect_url, or provide the public HTTPS webhook_url ending in /bots/<bot_uuid>. Poll get_slack_setup_status for the Slack installation authorization URL; the user must authorize installation. On success, apply the returned config using the normal bot update flow. Socket Mode also requires a separately generated app_token (xapp-, scope connections:write). Never log tokens. cancel_slack_setup removes the temporary session without deleting the Slack application. Sessions expire after 15 minutes and are bound to the initiating Workspace, principal, and placement generation. Restarting a failed setup can create another Slack application; inspect the returned app_id first.

The tools wrap the LangBot service layer. Current tools (v1):

create_pipeline and HTTP POST /api/v1/pipelines preserve a supplied config and extensions_preferences; omit config to use installed Runner defaults. Selecting ai.runner.id never grants extension access: an empty plugins list with enable_all_plugins=false still denies that plugin's Tool, EventListener and Command components, while allowing its selected Runner. Editing and copying a pipeline retain these independent settings.

Tool Purpose
get_system_info Version, edition, instance id
list_bots / get_bot / create_bot / update_bot / delete_bot Manage messaging-platform bots (secrets redacted on read)
list_bot_event_route_statuses Inspect bot event-route runtime status
list_processors / get_processor / create_processor / update_processor / delete_processor Manage the peer Agent, Pipeline and Event processor types
get_processor_metadata Discover installed event-capable Runner components, schemas and supported event patterns.
list_processor_runs / get_processor_run_events Read one Agent or plugin processor run history and logs; paginate with before_id / after_sequence.
debug_agent Execute a synthetic Agent event (processor_uuid, payload); requires runtime.operate. Returns final text and up to 1000 execution events (thinking, text, tool arguments/results). Platform tools use Mock; other configured tools execute normally. Optional payload.mock: errors/results keyed by platform tool name, unsupported_apis lists unavailable platform APIs.
list_pipelines / get_pipeline / create_pipeline / update_pipeline / delete_pipeline Manage pipelines
list_llm_models / get_llm_model / list_embedding_models / list_asr_models / list_tts_models / list_model_providers Inspect models & providers
list_knowledge_bases / `
Câu hỏi thường gặp

Tôi lấy khóa API ở đâu?

Khóa dùng giao diện web được tạo trong giao diện web LangBot, mục API Keys. Bí mật chỉ hiện một lần, nên hãy lưu lại khi nó xuất hiện.

Nếu khóa của tôi không được phép làm việc gì đó thì sao?

Máy chủ trả về phản hồi forbidden. Khóa cần đúng phạm vi quyền cho hành động đó.

Agent có thể chuyển sang workspace khác không?

Không. Khóa giao diện web gắn với một workspace, và bên gọi không thể đổi nó bằng một header.

Chi tiết

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

Operate a LangBot instance through its built-in MCP (Model Context Protocol) server. Use when an AI agent needs to manage LangBot — list/create/update/delete bots, agents, pipelines, models, knowledge bases, MCP servers, and skills — over MCP instead of raw HTTP. Covers the /mcp endpoint, API-key auth (web-UI lbk_ keys and the config.yaml global key), the tool surface, and client configuration. Triggers on "langbot mcp", "manage langbot via mcp", "langbot /mcp", "langbot mcp server".

repo: langbot-app/LangBot

Độ phổ biến

Sao GitHub
19k
Vị trí xếp hạng
#10511
Giấy phép
Apache-2.0
Cập nhật
2/11/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ự