langbot-mcp-ops
できること
このスキルは、MCP接続を通じてLangBotインスタンスを操作する方法をエージェントに示します。LangBotを運用し、AIにそれを管理させたい人向けです。
使う場面
- ✓ボットやパイプラインを一覧表示、作成、更新したいとき。
- ✓APIキーを使って、AIクライアントをLangBotのMCPアドレスに接続する必要があるとき。
- ✓LangBotのAPIキーにどの権限があるか確認したいとき。
スキルのリンク
https://github.com/langbot-app/LangBot/blob/master/skills/skills/langbot-mcp-ops/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“LangBotのMCPサーバーを使って、AIにボットを一覧表示させ、そのうち1つのモデルを変更させたいです。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、APIキーを使ってLangBotのMCPアドレスに接続します。その後、LangBotのサービスAPIの一部を反映した一覧のツールを呼び出します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
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:
- 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 withX-Workspace-Id. - Global API key — set in
data/config.yamlunderapi.global_api_key. Requires no login session and no DB record; does not need thelbk_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 thelangbot-deployskill 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 / ` |
よくある質問
APIキーはどこで取得しますか?
Web UIのキーは、LangBotのWeb画面のAPI Keysで作成します。シークレットは一度だけ表示されるため、表示されたときに保存してください。
キーに許可されていない操作をするとどうなりますか?
サーバーは禁止の応答を返します。その操作には適切なスコープが必要です。
エージェントは別のワークスペースに切り替えられますか?
いいえ。Web UIのキーは1つのワークスペースに紐付いており、ヘッダーで切り替えることはできません。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 19k
- ランキング
- #10511
- ライセンス
- Apache-2.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
langbot-deploy
19kエージェントが、Docker、Docker Compose、またはKubernetesを使って、自前のLangBotインスタンスをデプロイし、モデルとAPIキーの設定を行うよう支援します。
langbot-env-setup
19kエージェントが、起動時のチェック、プロキシ設定、ログイン状態を保つブラウザーを含め、ローカルのLangBotテスト環境を動かせるよう支援します。
langbot-plugin-dev
19kエージェントが、LangBotプラグインを作成、デバッグ、テストできるよう教えます。部品、プラグインSDK、WebSocketによる自動テストを含みます。
langbot-space-ops
19kエージェントが、LangBot Spaceのマーケットプレイスでプラグイン、MCPサーバー、スキルを検索し、セットアップ用にランク付けされたモデル一覧を取得できるよう支援します。
似ているスキル
mcporter
394kHTTPまたはstdioでMCPサーバーとそのツールを一覧表示、呼び出し、確認し、サインイン設定を管理するようエージェントを支援します。
fastmcp
260kPythonで、AIアシスタントがAPI、データベース、ファイルをツールとして利用できるMCPサーバーを作成、テスト、デプロイするのを支援します。
mcp-oauth-remote-gateway
260kHermesがサーバー上で動いている場合に、リモートのMCPサーバーのOAuthサインインを手動で完了させ、トークンを保存します。