Agent skill

LangBot MCP Operations

by langbot-app in langbot-app/LangBot

Manages a LangBot instance over its built-in MCP server: endpoint, API-key authentication, client config and the tool set for bots, processors and more.

Apache-2.0Auto-check passedAgent Workflows

Install LangBot MCP Operations

skills CLI
$ npx skills add langbot-app/LangBot --skill langbot-mcp-ops -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install langbot-app/LangBot langbot-mcp-ops --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/langbot-app/LangBot.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/skills/langbot-mcp-ops .claude/skills/langbot-mcp-ops && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
langbot-mcp-ops
GitHub stars
18k
Token cost
~2.7k tokens
SKILL.md length
1,251 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
Apache-2.0

At a glance

Manages a LangBot instance over its built-in MCP server: endpoint, API-key authentication, client config and the tool set for bots, processors and more.

  • Works in 2 steps: Web-UI key — created in the web UI… → Global API key — set in data/config.yaml…
  • Managing LangBot bots, agents and pipelines from an AI agent instead of raw HTTP
  • SKILL.md covers Endpoint, Authentication, Client configuration and Tool surface, plus 7 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

LangBot's built-in MCP server mirrors a curated subset of its HTTP service API so agents can manage an instance programmatically. It is served over streamable HTTP at the /mcp path on the same host and port as the web UI, and the key can be sent as an X-API-Key header or a bearer token. The skill describes the two accepted key kinds: web-UI keys prefixed lbk_, bound to one workspace with scopes, status and optional expiry, and a global key set in config.yaml that works only on a community instance with a single local workspace.

Invalid, revoked or expired keys get a 401 and keys lacking scope for a tool get a 403; the system context endpoint shows a key's identity and permissions. The tool table covers system info, bot management with secrets redacted on read, bot event-route status, creating and managing processors of the Agent, Pipeline and Event types, processor metadata, and run history and logs with pagination. A sample client configuration block shows how to register the server.

When your agent uses it

  • Managing LangBot bots, agents and pipelines from an AI agent instead of raw HTTP
  • Setting up an MCP client against a LangBot /mcp endpoint
  • Choosing between a web-UI API key and the global key
  • Debugging 401 or 403 errors from the LangBot MCP server

Example prompts

  • “Connect to my LangBot instance over MCP and list all configured bots.”
  • “Create a new bot through LangBot's MCP server and show its event-route status.”
  • “Why does my lbk_ key return 403 when I try to delete a bot?”

Requirements

  • A running LangBot instance
  • A LangBot API key (a web-UI lbk_ key or the global key)

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Web-UI key — created in the web UI (sidebar → API Keys), prefixed lbk_.
  2. Global API key — set in data/config.yaml under api.global_api_key.

What it can do on your machine

Read from SKILL.md and the folder at commit 4c75928. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

LangBot MCP Operations loads about 2.7k tokens when it runs. Until then it costs about 126 tokens; SKILL.md has 1,251 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~126
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from langbot-app/LangBot at commit 4c75928, republished under its Apache-2.0 licence (© langbot-app). 1,251 words, ~2,715 tokens.

Download SKILL.mdSave it as .claude/skills/langbot-mcp-ops/SKILL.md (or your agent's skills folder).
name
langbot-mcp-ops
description
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".

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

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

Tool surface

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

ToolPurpose
get_system_infoVersion, edition, instance id
list_bots / get_bot / create_bot / update_bot / delete_botManage messaging-platform bots (secrets redacted on read)
list_bot_event_route_statusesInspect bot event-route runtime status
list_processors / get_processor / create_processor / update_processor / delete_processorManage the peer Agent, Pipeline and Event processor types
get_processor_metadataDiscover installed event-capable Runner components, schemas and supported event patterns.
list_processor_runs / get_processor_run_eventsRead one Agent or plugin processor run history and logs; paginate with before_id / after_sequence.
debug_agentExecute 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_pipelineManage pipelines
list_llm_models / get_llm_model / list_embedding_models / list_model_providersInspect models & providers
list_knowledge_bases / get_knowledge_base / retrieve_knowledge_baseRAG knowledge bases (incl. semantic search)
list_mcp_serversExternal MCP servers LangBot connects to (as a client)
list_skills / get_skillInstalled skills
list_knowledge_engines / get_knowledge_engine_schema / list_knowledge_parsersDiscover RAG configuration
get_pipeline_extensions / update_pipeline_extensionsRead or completely replace extension bindings; all lists and switches required
run_pipelineOne fresh-session turn; requires runtime.operate, executes configured models/tools, never auto-retry an unknown outcome
get_monitoring_records / get_monitoring_detailsBounded Workspace records and existing message/session details
get_sandbox_diagnosticsRead status (resource.view), sessions/errors (audit.view); managed sandbox admission still applies

Mutating tools (create_*, update_*) take a JSON object matching the same shape as the corresponding HTTP API request body. Discover resources with the list_* / get_* tools before mutating; identifiers are UUIDs. Reads require resource.view; mutations require resource.manage. All service calls inherit the immutable Workspace context authenticated at the MCP transport boundary. Pass is_default: true to create_pipeline only when the Workspace does not already have a default pipeline.

How to use

  1. Get an API key (web UI key, or set api.global_api_key in config.yaml).
  2. Point your MCP client at http://<host>:5300/mcp with the key header.
  3. Call get_system_info to confirm connectivity.
  4. Use list_* tools to discover, then get_* / create_* / update_* / delete_* as needed.

ChatGPT / Codex subscription providers

list_model_providers can return the openai-codex requester. Its OAuth credentials are server-only and are not provider API keys. Never ask a user to paste ChatGPT access tokens, refresh tokens, or a Codex auth cache into an MCP tool or model configuration.

A human connects or disconnects the subscription through Models → provider settings in the LangBot web UI. The provider-scoped /codex/* authentication routes deliberately require a browser-user session and are not exposed as MCP tools or authorized by a LangBot API key. Once connected, models are managed and selected through the normal provider/model workflow. A disconnected provider must be reauthorized; do not silently replace it with API-key billing.

See ChatGPT / Codex subscription for setup, usage limits, and the personal-account versus shared-service boundary.

Provider deletion

The curated MCP surface currently lists providers but has no provider-deletion tool. In the web UI, Edit Provider → Delete asks for confirmation before removing that provider and all its LLM, embedding, and rerank models. This is irreversible; never interpret a request to edit a provider as authorization to delete it.

The equivalent HTTP operation is DELETE /api/v1/provider/providers/{uuid}?cascade=true, requiring resource.manage in the authenticated Workspace. Omitting cascade preserves the existing refusal to delete providers that still have models. Cloud-managed providers remain protected. Cascade deletion removes stored Codex authorization state as well; it is not the same operation as disconnecting an account.

Show full SKILL.md (497 more words)Show less

Implementation & maintenance (for LangBot developers)

  • Server: src/langbot/pkg/api/mcp/server.py (FastMCP). Tools call the service layer directly, so the MCP surface stays aligned with the API.
  • Mount: src/langbot/pkg/api/mcp/mount.py — an ASGI dispatcher fronting Quart, authenticating /mcp requests, running the streamable-HTTP session manager.
  • Smoke test: tests/manual/mcp_smoke.py.

When you add, remove, or change an HTTP API endpoint that should be agent-accessible, update the corresponding MCP tool and this skill. The MCP tool surface and the API must stay aligned (see AGENTS.md).

Pitfalls

  • /mcp is the server LangBot exposes. The /api/v1/mcp routes are the client side (managing external MCP servers LangBot connects to). Don't confuse them.
  • A 401 means the key is wrong, missing, revoked, expired, or (for the global key) api.global_api_key is empty or the instance is not an OSS singleton.
  • A 403 means the key is valid but lacks the permission required by the tool.
  • The global key is plaintext in config.yaml — only enable it on trusted/internal deployments and serve over HTTPS.

Event processors

Create a processor with kind: "event_processor" and basic information. Without a component it supports no events. Discover installed components with get_processor_metadata, then use update_processor with component_ref and optional parameters. API callers may also supply these when creating an instance. Bind an instance by updating the bot's plugin_processors array with {"processor_uuid": "<instance UUID>", "enabled": true}. This replaces the full subscription list; preserve bindings you want to keep. Do not add plugin processors to event_bindings, which remains exclusive Agent/Pipeline routing. Each enabled subscription independently receives the installed Runner's declared events. Slow or failed subscribers do not prevent other subscribers or the primary route from executing. Installation alone never activates a handler. Reusing an instance shares its configuration and runtime state. Use a separate instance for independent settings. Optional plugin behavior belongs in the Runner config schema. debug_agent accepts the complete typed event in payload.data for this kind. Legacy EventListener plugins remain in the Pipeline lifecycle.

list_processor_runs includes created_at_ms, started_at_ms, and finished_at_ms: Host lifecycle times in epoch milliseconds. Use the start and finish times for elapsed processing time; select a run and call get_processor_run_events for its logs and action results. These times are not internal plugin profiling data.

Unified execution monitoring

Use get_monitoring_executions for the execution list and its legacy pipeline_ids parameter to filter any processor kind (Agent, Pipeline or event processor); the summary uses the same processor scope. Use get_monitoring_execution_detail with source=auto to resolve a run, message or event identifier outside the current list page. The detail exposes inputs, outputs (generated content), deliveries (recorded platform sends), events, llm_calls, tool_calls, errors, related, and conversation in pages. Follow each section's has_more and next_offset independently. Conversation history supplies context; historical messages without explicit links must not be asserted to belong to the selected execution. Events without a processor run use source=event. All lookups remain Workspace-scoped.

Monitoring record filters accept mode (all, real, debug) and execution_statuses (normalized execution statuses). These select the owning execution, not the individual model/tool call outcome. Calls without a recorded execution link are excluded when an execution filter is active.

© langbot-app, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/skills/langbot-mcp-ops of langbot-app/LangBot.

Open the folder on GitHubat commit 4c75928

Compare with similar skills

LangBot MCP Operations next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

LangBot MCP Operations compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
LangBot MCP Operations this skilllangbot-app/LangBot18k—~2.7kAutomated safety check: PassApache-2.0
Agenticmailagenticmail/agenticmail236—~3.9kAutomated safety check: PassMIT
Orchardokooo5km/Skills4U183—~5kAutomated safety check: WarnMIT
Linkdigest Social Link Readersickn33/agentic-awesome-skills47k—~3.4kAutomated safety check: PassMIT
Aris InfraOpenLAIR/dr-claw1.2k—~1.4kAutomated safety check: NotesMIT
Burp MCP Vuln Checklangbyyi/CyberStrikeAI-SRC135—~3.1kAutomated safety check: PassApache-2.0

Similar skills

  • Agenticmail

    agenticmail/agenticmail

    🎀 AgenticMail — Full email, SMS, phone call-control, Telegram, media, memory, storage & multi-agent coordination for AI agents.

    236 GitHub stars~3.9k tokensUpdated 8 days ago
    Agent WorkflowsAuto-check passed
  • Orchard

    okooo5km/Skills4U

    Use the local Orchard app to interact with macOS Apple apps and services: Calendar, Reminders, Clock, Mail, Contacts, Notes, Music, Weather, Messages, Location/Maps, and Apple Shortcuts.

    183 GitHub stars~5k tokensUpdated 2 days ago
    Agent WorkflowsAuto-check: warnings
  • Linkdigest Social Link Reader

    sickn33/agentic-awesome-skills

    Read one public Xiaohongshu, Douyin, TikTok, YouTube, X or WeChat article link into text an agent can use (transcript, image text, key points) via the LinkDigest API or MCP server.

    47k GitHub stars~3.4k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Aris Infra

    OpenLAIR/dr-claw

    ARIS (Auto-claude-code-research-in-sleep) infrastructure setup and configuration.

    1.2k GitHub stars~1.4k tokensUpdated 21 days ago
    Agent WorkflowsAuto-check: notes
  • Burp MCP Vuln Check

    langbyyi/CyberStrikeAI-SRC

    Automate low-impact web vulnerability verification through Burp MCP.

    135 GitHub stars~3.1k tokensUpdated yesterday
    SecurityAuto-check passed
  • X Twitter Scraper

    Xquik-dev/x-twitter-scraper

    Use Xquik to fetch X (Twitter) data or act through a connected account: search, profiles, followers, replies, threads, timelines, media downloads, bulk exports, trends, monitors, signed webhooks…

    210 GitHub starsUsed in 1 repo~2.6k tokens
    Backend & APIsAuto-check passed

More from langbot-app/LangBot

All 9 skills in this repo
  • LangBot Plugin Development

    langbot-app/LangBot

    Guides building, debugging and testing LangBot plugins: components, SDK calls, README and locale rules, SDK pitfalls and WebSocket-based testing.

    18k GitHub stars~3.9k tokensUpdated today
    Auto-check passed
  • LangBot Deployment Guide

    langbot-app/LangBot

    Deploys and configures a LangBot instance with Docker Compose or Kubernetes, covering config.yaml, the Box sandbox runtime, the plugin runtime and the global API key.

    18k GitHub stars~1.2k tokensUpdated today
    Auto-check: notes
  • LangBot Core Development

    langbot-app/LangBot

    Covers developing the LangBot core backend and web UI: dev setup, repo layout, API auth types, adding endpoints, migrations and keeping the MCP server in step.

    18k GitHub stars~1.4k tokensUpdated today
    Auto-check: notes
  • Guides building, migrating and testing LangBot messaging-platform adapters for the Event-Based Agents layout, with unified event and message conversion.

    18k GitHub stars~4k tokensUpdated today
    Auto-check passed
  • LangBot Space MCP

    langbot-app/LangBot

    Browses and searches the LangBot Space marketplaces for plugins, MCP servers and skills through its read-only MCP server, authenticated with a personal access token.

    18k GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • LangBot Environment Setup

    langbot-app/LangBot

    Prepares a LangBot development and testing environment for an agent, covering service startup, proxy settings and browser access through Computer Use or Playwright MCP.

    18k GitHub stars~496 tokensUpdated today
    Auto-check: notes

Categories

Questions about LangBot MCP Operations

What does LangBot MCP Operations do?

Manages a LangBot instance over its built-in MCP server: endpoint, API-key authentication, client config and the tool set for bots, processors and more. LangBot's built-in MCP server mirrors a curated subset of its HTTP service API so agents can manage an instance programmatically. It is served over streamable HTTP at the /mcp path on the same host and port as the web UI, and the key can be sent as an X-API-Key header or a bearer token.

When should I use LangBot MCP Operations?

LangBot MCP Operations fits situations like: managing LangBot bots, agents and pipelines from an AI agent instead of raw HTTP; setting up an MCP client against a LangBot /mcp endpoint; choosing between a web-UI API key and the global key; debugging 401 or 403 errors from the LangBot MCP server.

How do I install LangBot MCP Operations in Claude Code?

Run `npx skills add langbot-app/LangBot --skill langbot-mcp-ops -a claude-code`. Or copy the skill folder (skills/skills/langbot-mcp-ops in langbot-app/LangBot) into .claude/skills/langbot-mcp-ops in your project. Claude Code loads it when a task matches its description.

How do I install LangBot MCP Operations in Codex?

Run `npx skills add langbot-app/LangBot --skill langbot-mcp-ops -a codex`. Or copy the skill folder (skills/skills/langbot-mcp-ops in langbot-app/LangBot) into .agents/skills/langbot-mcp-ops in your project. Codex loads it when a task matches its description.

Can I use LangBot MCP Operations in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add langbot-app/LangBot --skill langbot-mcp-ops -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/langbot-mcp-ops, .gemini/skills/langbot-mcp-ops, .github/skills/langbot-mcp-ops and .opencode/skills/langbot-mcp-ops in your project.

What does LangBot MCP Operations need to run?

SKILL.md names no scripts, command-line tools or credentials: LangBot MCP Operations is instructions for the agent only. Our summary lists: A running LangBot instance; A LangBot API key (a web-UI lbk_ key or the global key).

Does LangBot MCP Operations access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is LangBot MCP Operations safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does LangBot MCP Operations use?

LangBot MCP Operations is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does LangBot MCP Operations use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to LangBot MCP Operations?

Skills that share tags, products or a category with LangBot MCP Operations: Agenticmail (agenticmail/agenticmail, 236 stars), Orchard (okooo5km/Skills4U, 183 stars), Linkdigest Social Link Reader (sickn33/agentic-awesome-skills, 47k stars) and Aris Infra (OpenLAIR/dr-claw, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains LangBot MCP Operations?

langbot-app (a GitHub organization) maintains it in langbot-app/LangBot, which has 18,060 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 8, 2026.

Source: langbot-app/LangBot on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.