BailingHub MCP Server
Provides tools to manage tasks and workflows through BailingHub, allowing users to submit governed jobs with stable request IDs, track job state and public results, and wait for job completion without resubmitting.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@BailingHub MCP Serversubmit a task to handle order #45678 refund approval"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
BailingHub for DeepSeek Harness
简体中文 | English
Use your local DeepSeek Harness Agent to operate the admin side of an online store, SaaS product, or other business system through BailingHub. Ask it to look up data, update records, or run other actions available to the connected account. The existing business identity, permissions, and approval rules still apply, and BailingHub keeps the authorization and action trail.
For example, depending on what the connected business system has exposed, you can ask the local Agent to:
find an order, customer, product, or employee record;
update an allowed field or business status;
run another permitted admin action;
return the result while BailingHub records the corresponding tool steps.
Reasoning and tool orchestration stay in DSH. BailingHub supplies the authorized business context, available capabilities, approval state, invocation recovery, and audit records required for the local Agent to act safely.
This is an independent community integration. It is not developed, certified, endorsed, or recommended by DeepSeek.
Current stable line:
dsh-bailinghub@0.3.0uses the native Agent Client flow documented below. Public0.1.1remains available only as the explicit static MCP compatibility path.
For the shortest end-user path, follow the three-minute getting started guide.
How the 0.3 Agent Client fits together
DeepSeek Harness local Agent
-> dsh-bailinghub native Cordis adapter
-> bailinghub-mcp-server/sdk
-> BailingHub Agent Auth + Agent API
-> operator-selected business integration and final authorizationThe packages have separate responsibilities:
BailingHub Core owns Agent Auth, trusted business identity, runtime context, knowledge and memory projection, capability governance, approvals, invocation state, and audit records.
bailinghub-mcp-server/sdkowns browser login, PKCE, credential storage, refresh, Hub/client/workspace connection selection, and HTTP DTO mapping.dsh-bailinghubowns only DSH session, prompt, command, and dynamic-tool lifecycle integration. It does not store credentials or call a business API directly.
This Agent Client is not the BailingHub executor. The executor receives jobs from the Hub for work that must run near a machine; the Agent Client keeps the interactive reasoning loop on the user's local DSH Agent.
Related MCP server: bailinghub-mcp-server
Before installing
The deployer and business integrator must prepare these public identifiers in BailingHub:
A reachable HTTPS BailingHub deployment with the matching Agent Auth and Agent API contracts.
A public Agent Client application id (
clientAppId).At least one authorized workspace. In Agent Client v1, the workspace id is the BailingHub route id.
One stable, account- and tenant-neutral business authorization entry configured on the Hub Client App, plus a governed ACC/Tool Provider integration behind that route. The business page must handle sign-in, account switching, and tenant selection before it approves the request.
The end user does not enter a business API URL, business login credential, Tool Provider signing secret, BailingHub Client Token, or model-provider key into this plugin.
Install the 0.3 line
Prerequisites:
Node.js
22.19.0+or24+;pnpmand a DeepSeek Harness release listed in the compatibility matrix;the BailingHub preparation above.
Install the exact stable version into the DSH Web profile:
npm install --global pnpm @deepseek-ai/dsh@0.1.1-rc.2
dsh plugin --profile web add dsh-bailinghub@0.3.0dsh-bailinghub@0.3.0 installs its exact compatible bailinghub-mcp-server@0.3.0 dependency
automatically. DSH users should not separately guess or install an SDK version.
Configure one Hub connection
The native plugin has exactly four host configuration fields:
Plugin field | Environment value | Meaning | Secret |
|
| Public HTTPS URL of the developer's own BailingHub | No |
|
| Public Agent Client application id registered in that Hub | No |
|
| Initial authorized workspace/route id | No |
|
| User-selected local connection label | No |
Example placeholders:
export BAILINGHUB_HUB_URL='https://hub.example.com'
export BAILINGHUB_CLIENT_APP_ID='example-agent-client'
export BAILINGHUB_WORKSPACE='order_assistant'
export BAILINGHUB_CONNECTION_NAME='default'The same four fields may be supplied through the DSH plugin settings surface. Do not add tokens,
authorization URLs, business domains, or credentials to the Cordis patch. The Hub resolves the
Client App to its single business authorization entry. connectionName is only a user-controlled
local selector; it is not an account, tenant, or identity claim.
Inspect the composed profile before starting it:
dsh --profile web --dump-config
dsh webAuthorize and use the local Agent
In DSH, run:
/bailinghub login
/bailinghub doctor
/bailinghub status
/bailinghub workspaceslogin opens the system browser at the single business authorization entry configured by the Hub
operator. That business page owns sign-in, account switching, and tenant selection, confirms the
resulting business identity and requested workspace, then returns to a random loopback callback
protected by state and PKCE S256. Access and refresh tokens remain in SDK-owned secure storage
and are never written to the plugin configuration or printed by the command.
Useful commands:
Command | Purpose |
| Check host APIs, public configuration, SDK resolution, authorization, and workspace reachability without printing credentials |
| List local public connection metadata and authorization state without tokens |
| Create and select another local connection instance for new sessions; the public binding may match an existing instance |
| Select a registered connection for new sessions only |
| Remotely revoke its Agent Session, then remove its local credential and metadata |
| Authorize the configured Hub/client/workspace in the browser |
| Inspect the selected connection without printing credentials |
| List workspaces allowed by the current business authorization |
| Select another already-authorized workspace for new sessions |
| Retry a pending visible completion record without repeating a tool call |
| Revoke and remove the selected Agent Session |
The four plugin fields are the bootstrap connection. Additional connections can be registered with
connections add; the BailingHub console's Agent Client page can generate the same secret-free
command. On restart, the adapter reads the SDK registry before the first new Agent session or user
command and adopts its current connection's public metadata; a missing or unavailable registry
safely falls back to the four bootstrap fields. Quote a connection name when it contains spaces.
After connections use, run /bailinghub login if that binding is not authorized yet.
Connection selection is a user-only slash command and is never exposed as a model tool. It affects
only Agent sessions created afterward; existing sessions remain pinned to their original
connection and workspace. /bailinghub use <workspace> remains a different operation: it succeeds
only when the current Agent Session already authorizes that workspace.
After removing the selected connection, the adapter reads the SDK registry and adopts the remaining current connection for new sessions, including connections without an alias. Removing the final connection leaves the adapter explicitly unconfigured. A failed post-remove registry read never turns a successful removal into an error; removing a non-current connection also preserves the still-valid default when that refresh is unavailable.
For the same Hub + clientAppId + workspace public binding, browser authorization determines the
identity from the business page and its trusted on_behalf_of result. If that identity is already
authorized under another local connection name, the SDK replaces the older local connection and
revokes its old Agent Session. A different trusted identity remains an independent connection.
If login starts from a connectionName that already belongs to another identity, the SDK keeps
that original alias and Session, gives the newly authorized identity an available local alias such
as default-2, and selects the new alias for future sessions. Use connections list to see both
and connections use <name-or-key> to switch explicitly.
If login returns cleanupRequired: true, the newly selected connection is still authorized, but
one or more existing same-binding connections need explicit cleanup. Their identity may still be
unconfirmed when inspection was deferred. Do not authorize again; inspect
connections list and retry /bailinghub connections remove <name-or-key> for the reported old
entry.
For the first acceptance check, start a new DSH conversation and perform one read-only request, then one permitted mutation. Confirm the same conversation, run, visible final answer, and tool invocation trajectory appear in BailingHub. An approval-required capability must resume the original invocation after approval; it must never create a replacement business call.
DSH Code Mode is deliberately degraded in this release because it cannot safely present the current-turn dynamic schemas. Use native tool mode for governed business actions.
Security and privacy boundary
The model cannot choose a Hub URL, workspace, local connection, business identity, credential, approval result, or capability revision through tool arguments.
The SDK stores credentials in macOS Keychain. On Windows it protects credential files under LocalAppData with CurrentUser DPAPI; unavailable Windows PowerShell or DPAPI fails closed without a plaintext fallback. Linux and other POSIX systems require an explicit secure file-store opt-in.
BailingHub revalidates identity, scope, approval, idempotency, and invocation state on every governed call. The downstream business system still performs final authorization.
The adapter sends visible user input, governed tool arguments/results, and the visible final answer required by the Agent Client contracts. It never uploads hidden reasoning chunks.
This plugin governs only the BailingHub tools it registers. It does not intercept unrelated DSH tools or model-provider traffic.
Review Security, Privacy, the Agent Client contract, and compatibility before production use.
Legacy public 0.1.x static mode
Public dsh-bailinghub@0.1.1 remains an immutable configuration-only bundle. It uses the in-box
DSH MCP Client to start bailinghub-mcp-server@0.1.1, binds one operator-provisioned Client Token
to one fixed route, and leaves orchestration in BailingHub.
dsh plugin --profile web add dsh-bailinghub@0.1.1
export BAILINGHUB_BASE_URL='https://hub.example.com'
export BAILINGHUB_CLIENT_TOKEN='replace-with-a-route-scoped-client-token'
export BAILINGHUB_ROUTE='order_assistant'It exposes exactly these three tools:
mcp__bailinghub__submit_governed_job
mcp__bailinghub__get_governed_job
mcp__bailinghub__wait_for_governed_jobThe 0.3 Agent Client does not automatically consume or migrate the 0.1 Client Token. Keep versions explicit and follow the 0.1-to-0.3 migration boundary when testing or rolling back.
Compatibility and feedback
Version 0.3.0 is verified only against the versions listed in docs/COMPATIBILITY.md. DeepSeek Harness remains a developer preview, so every Harness release requires a new native lifecycle smoke test.
Report problems through GitHub Issues. Never include tokens, private deployment URLs, personal information, or production business payloads.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
- projectsOAuthcloud.tri2b
Task tracking built for coding agents. Work is leased, so two agents never take the same SubTask.
Shared task queue for humans and AI agents: leases, handoffs, approvals and signed receipts.
Task management for teams building with AI agents. Agents claim tasks and report progress.
- MoltJobsOAuthio.moltjobs
Browse MoltJobs jobs, manage owned AI agents, review evals, and place authorized USDC bids.
Related MCP Servers
- AlicenseAqualityAmaintenanceTask management API for AI agents. Create, delegate, and track tasks with agent identity, delegation chains, lifecycle webhooks, and persistent context.442091MIT

bailinghub-mcp-serverofficial
AlicenseAqualityAmaintenanceSubmit and inspect governed business-system actions through a BailingHub control plane, with tools for submitting, retrieving, and waiting on governed jobs.3261MIT- AlicenseNot gradedqualityBmaintenanceProvides a task passport system for handoff across AI harnesses, enabling users to list, open, create, and checkpoint tasks with stable IDs and verified state.28711MIT
- AlicenseAqualityBmaintenanceEnables AI coding agents like Claude Code or Codex to delegate tasks to a DeepSeek Harness subagent with its own context window, providing tools for task delegation, result waiting, continuation, and supervision with sandboxed execution.6MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bailinghub/bailinghub-dsh-plugin'
If you have feedback or need assistance with the MCP directory API, please join our Discord server