Skip to content
plugmcp
DirectorySkillsCategoriesBlog
EN/中文
Sign inSign up
Home/Servers/BailingHub For Business Operations

BailingHub For Business Operations

I
by io.github.bailinghub

Let AI agents query and operate business systems with authorization, approval and audit trails.

Power your agent

Add this server

The publisher's own command. Not a PlugMCP endpoint.

Local command
npx -y [email protected]
Credentials from the publisher
  • BAILINGHUB_BASE_URL — Absolute URL of the self-hosted BailingHub deployment.
  • BAILINGHUB_CLIENT_TOKEN — Dedicated BailingHub Client Token restricted to the configured route.
  • BAILINGHUB_ROUTE — One allowlisted BailingHub route fixed by the operator for this server process.
  • BAILINGHUB_ALLOW_INSECURE_HTTP — Optional explicit override for operator-controlled private HTTP networks.
Provider
Claude Code
BAILINGHUB_BASE_URL=<value> BAILINGHUB_CLIENT_TOKEN=<secret> BAILINGHUB_ROUTE=<value> BAILINGHUB_ALLOW_INSECURE_HTTP=<value> claude mcp add io.github.bailinghub-bailinghub-governance -- npx -y [email protected]

Run in a terminal.

Claude Desktop
{
  "mcpServers": {
    "io.github.bailinghub-bailinghub-governance": {
      "command": "npx",
      "args": [
        "-y",
        "[email protected]"
      ],
      "env": {
        "BAILINGHUB_BASE_URL": "<value>",
        "BAILINGHUB_CLIENT_TOKEN": "<secret>",
        "BAILINGHUB_ROUTE": "<value>",
        "BAILINGHUB_ALLOW_INSECURE_HTTP": "<value>"
      }
    }
  }
}

claude_desktop_config.json

Step-by-step: add this in Claude

Remote URL or a command on your machine? How the two installs differ

Run on PlugMCP

Host a copy with our keys and logs.

A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.

Launch

Related MCP

View more
  • Firecrawl🔥 Official Firecrawl MCP Server - Adds powerful web scraping and search to Cursor, Claude and any other LLM clients.
  • N
    NotionToken-auth Notion MCP: pages, databases, blocks, comments, files. Runs headless in CI and agents.
  • Context7Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

Related skills

View all
  • reaReverse engineer anything with agents, from app behavior down to native binaries.
  • rea-changelog-updatePrepare or rewrite REA release changelogs and GitHub release notes from pinned Git history, with verified contributor thanks and Release Please synchronization.
  • rea-tool-designDesign or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.

Let AI agents query and operate business systems with authorization, approval and audit trails.

BailingHub MCP Server

0.7.0: optional model services and plan billing

Keep orchestration local while Core relays model requests and meters shared allowance asynchronously. Discover chat models and image tools separately; preserve business authorization, approvals and audit. Pair Core 0.9.0 / SDK 0.7.0 / DSH 0.7.0.

Changes · Upgrade

简体中文 | English

Let an MCP-compatible AI agent use natural-language requests to query and operate your store, SaaS, CRM, ERP, or other business system through BailingHub.

Depending on the capabilities explicitly exposed by the business system and the routes allowed for this connection, an agent can, for example:

  • find products with fewer than 10 items in stock and prepare a restocking suggestion;
  • update an employee or customer profile;
  • submit a refund request and wait when the configured route requires human approval.

The agent does not receive administrator or business-system credentials. BailingHub keeps the route boundary, approval state, execution record, and audit trail, while the downstream business system still makes the final authorization decision.

Previously introduced in 0.5.0: shop and inventory in one conversation

A host can let a user ask: “Check tumbler stock; if available, change the corresponding shop product to 59 and list it.” This SDK adds original-target checks for different systems on one Hub, system descriptions before tool search, and business-supplied authorization names. Actions must be exposed by the business systems, product mappings confirmed, and original approvals respected.

Use Core 0.9.0 + SDK 0.7.0 and a compatible host for these extensions, within one Hub and one administrator audit domain. The host owns explicit selection and persistent scope; the standalone MCP server does not gain a multi-system selection UI.

Scenarios, changes and upgrade steps

Conversation archives introduced in 0.4.0

When an Agent Client host enables conversation archiving, a BailingHub administrator can follow the user's request, the assistant's visible replies and the resulting business actions together. For example, one conversation can compare two separately authorized stores while retaining the original execution record for each store. Use BailingHub Core 0.9.0 with a host that captures and synchronizes the conversation. The archive API minimum is Core 0.6.0.

Version 0.4.0 introduced that synchronization API. It does not capture conversations by itself. A native host such as the DSH plugin owns the account selection and conversation interface. The standalone MCP server keeps its existing tool surface.

Who should upgrade, and where to start

Your setupNext step
You use an MCP application with a fixed business routeInstall this package at 0.7.0 using the MCP setup below. Your existing Client Token and Agent Session flows remain compatible.
You use a native Agent Client, such as DSHUpgrade through that host's matching release and follow its account-selection guide. Installing this MCP command alone does not add a multi-account conversation UI.
You build an Agent Client hostInstall [email protected], use Core 0.9.0 for the complete feature set, and follow the SDK guide.

You do not need to change business API declarations for this SDK upgrade. Existing read/write, approval and invocation recovery behavior stays in place. Conversation upload retries use the same event IDs and never repeat business actions; only the deployment's authorized administrators can read the combined archive. Hidden reasoning is excluded.

This package is a thin integration adapter. It does not embed BailingHub, grant business permissions, or replace the downstream business system's final authorization. It supports both the existing operator-provisioned Client Token mode and an Agent Session mode in which a human approves one local Agent through the system browser.

What It Exposes

ToolPurpose
submit_governed_jobSubmit untrusted task text to one operator-configured BailingHub route
get_governed_jobRead the current public state of a credential-owned job
wait_for_governed_jobPoll one job for at most 60 seconds without resubmitting it

The Agent Session MCP path starts with five small meta-tools for turn bootstrap, capability search, governed invocation/recovery, and visible run completion. BailingHub then returns at most 12 active business tools for the current turn; each replacement removes the previous active set instead of growing the model context indefinitely.

Host implementers should use the host-neutral Agent Client SDK guide.

The route, BailingHub URL, and credential are local process configuration, never model-supplied MCP tool arguments. An SDK host may publish a fixed set of available authorization references for per-call selection within one system; the host resolves each reference to its captured connection and retains control of connection management. See the authorization-reference guidance.

Authentication Modes

  • Agent Session: run bailinghub-mcp-server login once. The CLI uses a random loopback callback plus PKCE, opens the system browser, and stores the approved session in the platform-specific secure credential store. The MCP tools then use /agent-api/v1/* and refresh rotated tokens locally.
  • Client Token (compatible): when BAILINGHUB_CLIENT_TOKEN is present, the adapter keeps using POST /run and GET /jobs/{job_id} exactly as before.

Neither mode lets the model supply a credential, route, acting subject, or approval result. The Agent Session records the identity approved by the Hub/business authorization boundary; the downstream business system still makes the final authorization decision.

The MCP Registry server.json describes only the compatible standalone stdio/Client Token installation, so that entry still marks BAILINGHUB_CLIENT_TOKEN as required. The native DSH plugin does not consume that Registry configuration: it imports this package's /sdk subpath as an ordinary library dependency and establishes an Agent Session through the browser. Do not add a Client Token field to a DSH plugin based on the Registry form.

Security Model

MCP host / model
    |
    | request_id + untrusted input
    v
BailingHub MCP Server
    |
    | fixed route + Client Token or approved Agent Session
    v
BailingHub
    |
    | governed dispatch
    v
Business system
    |
    +-- resolves trusted subject and performs final authorization

The adapter intentionally does not accept:

  • an acting subject or identity claim;
  • a Client Token, administrator token, or business-system credential as tool input;
  • an approval decision or approval evidence;
  • an executor identity;
  • arbitrary metadata or callback URLs;
  • an arbitrary route.

In compatible Client Token mode, use a dedicated token restricted to the one route configured for this server process. Run separate server instances when different MCP clients need different route boundaries.

Install

Prerequisites:

  • Node.js 20.15 or newer;
  • a reachable BailingHub deployment;
  • either one route-scoped BailingHub Client Token or a registered public Agent client that can be approved for the required route.

For the legacy static-job mode, configure an MCP host to spawn:

{
  "mcpServers": {
    "bailinghub": {
      "command": "npx",
      "args": ["-y", "[email protected]"],
      "env": {
        "BAILINGHUB_BASE_URL": "https://hub.example.com",
        "BAILINGHUB_CLIENT_TOKEN": "replace-with-a-route-scoped-client-token",
        "BAILINGHUB_ROUTE": "order_assistant"
      }
    }
  }
}

Agent Session login

Authorize one registered public Agent client and one fixed route before starting the MCP host without a Client Token:

npm install --global [email protected]

bailinghub-mcp-server login \
  --base-url https://hub.example.com \
  --client-app-id merchant-agent \
  --route order-assistant

bailinghub-mcp-server status
bailinghub-mcp-server logout

The login callback binds only to a random 127.0.0.1 port and uses state plus PKCE S256. Access and refresh tokens never appear in CLI output. macOS uses Keychain. Linux and other POSIX platforms require an explicit BAILINGHUB_ALLOW_FILE_CREDENTIAL_STORE=true opt-in; that fallback rejects files that are not owned by the current user with mode 0600. Windows uses a CurrentUser DPAPI-protected file under the user's LocalAppData directory. If Windows PowerShell or DPAPI is unavailable, Agent Session fails closed and never falls back to plaintext. Compatible Client Token mode remains available on every supported platform.

For a local BailingHub process, loopback HTTP is accepted:

BAILINGHUB_BASE_URL=http://127.0.0.1:3000

Non-loopback HTTP is rejected by default. BAILINGHUB_ALLOW_INSECURE_HTTP=true exists only for an operator-controlled private network where TLS terminates elsewhere. Do not use it across an untrusted network.

Correct Job Flow

  1. Create a stable request_id for one business request.
  2. Call submit_governed_job with that ID and the task text.
  3. Preserve the returned job_id.
  4. Call wait_for_governed_job for a short bounded wait, or call get_governed_job later.
  5. If submission must be retried, reuse the exact same request_id and task meaning.

queued, running, and dispatched are non-terminal. done, error, and rejected are terminal. A wait timeout is not a failed task and must not cause a replacement submission.

First Success and Feedback

Use the MCP integration path as the canonical start page. The first integration is successful when an MCP host submits through the operator-fixed route, the same job_id reaches a terminal state, BailingHub retains its approval and audit state, and the MCP host never receives administrator or business-system credentials.

Report a PASS, partial result, or failure through the BailingHub independent validation form and select the MCP track. Never include tokens, model keys, personal information, or production business data.

Project Boundaries

The dependency direction is one-way:

bailinghub-mcp-server -> BailingHub public Client API / Agent API
BailingHub may consume ACC declarations
ACC has no dependency on either implementation

See:

  • Project boundaries
  • Threat model
  • Compatibility contract
  • Agent Client SDK
  • Generated image delivery
  • Privacy
  • Security policy

Development

npm install
npm run verify
npm pack --dry-run

Client Token mode uses the stable bailing.client-api.v1 surface:

  • POST /run
  • GET /jobs/{job_id}

Agent Session mode uses the additive Agent Auth v1 and Agent API v1 surfaces:

  • POST /agent-auth/v1/authorizations
  • POST /agent-auth/v1/token
  • GET /agent-auth/v1/session
  • POST /agent-auth/v1/revoke
  • GET /agent-api/v1/workspaces
  • GET /agent-api/v1/workspaces/{route}/bootstrap
  • POST /agent-api/v1/workspaces/{route}/turns
  • POST /agent-api/v1/workspaces/{route}/capabilities/search
  • POST /agent-api/v1/tool-invocations
  • POST /agent-api/v1/tool-invocations/{invocation_id}/resume
  • POST /agent-api/v1/runs/{run_id}/complete

The host SDK additionally uses conversation audit write APIs available from Core 0.6.0. Use Core 0.7.0 for the new cross-system mode, system descriptions and authorization names. These APIs are not exposed as MCP/model tools:

  • POST /agent-api/v1/conversation-audits
  • POST /agent-api/v1/conversation-audits/{conversation_id}/confirm
  • POST /agent-api/v1/conversation-audits/{conversation_id}/events

The bailinghub-mcp-server/sdk subpath additionally exposes a host-neutral Agent Client factory. It owns browser login, named local selectors, isolated credentials, token refresh, and Core DTO mapping. On the same Hub/client/workspace binding it replaces an older local connection only when Core reports the same trusted on_behalf_of; different business identities remain independently selectable. Core resolves the business authorization entry, so host adapters such as DSH never ask for a business URL and do not own credentials or BailingHub HTTP endpoint details.

No administrator, executor, approval-decision, tool-proxy, configuration, or direct business API is called by this adapter.

How do I install BailingHub For Business Operations?
Copy the stdio config for Cursor, Claude Desktop, Claude Code, or VS Code on this page. It uses the publisher's install, not a PlugMCP proxy.
Does BailingHub For Business Operations need an API key?
The publisher lists these environment variables: BAILINGHUB_BASE_URL, BAILINGHUB_CLIENT_TOKEN, BAILINGHUB_ROUTE, BAILINGHUB_ALLOW_INSECURE_HTTP.
What transport does BailingHub For Business Operations use?
BailingHub For Business Operations runs locally over stdio.
When was BailingHub For Business Operations last checked?
Last checked 2026-10-16. Let AI agents query and operate business systems with authorization, approval and audit trails.

No tool list yet. Remote servers get one after the first health check.

plugmcp

Plug any tool into any agent. MCP servers for people who do not write servers. Gateway for volume, n8n for apps.

  • github.com/TODO
  • x.com/TODO
  • linkedin.com/company/TODO

PlugMCP, 2026

Product
  • Browse
  • Install
  • Host your own
  • Voice mode
  • Browser
Directory
  • All MCP servers
  • Agent skills
  • Categories
  • New
  • Voice
  • Submit a server
Developers
  • Docs
  • Blog
  • What is MCP
  • What is WebMCP
  • Status
Company
  • About
  • Contact
  • Terms
  • Privacy
  • DPA