be2-mcp
OfficialClick on "Deploy 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., "@be2-mcpCreate a draft change-set to set inventory to 0 for all products marked 'clearance'"
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.
be2 MCP (Model Context Protocol)
be2 MCP is a "governance layer" server that sits between the Claude agent and the be2 product backend, letting employees safely complete batch tasks through natural language. It is not just an API proxy, but a security gateway with full permission control, a change state machine, and an audit mechanism, ensuring that all writes to the production environment meet enterprise standards: no blind writes, no self-approval, and audit records retained across the entire chain.
๐ข Status: Phase 1aโ5 complete | 473 tests passed / 0 skipped | SIT be2-220 Live end-to-end acceptance passed
Core Features
draft-only manual approval: the agent can only create change-set drafts; all writes must be manually approved through an independent channel (panel or confirmation page).
Identity Pass-through: uses the be2 token issued at auth-service login, does not build its own RBAC, and delegates authorization decisions to the backend gateway.
Modular domains: each business domain (such as listing/unlisting, inventory) is encapsulated as an independent module; adding an action type does not touch the core.
Batch Wizard panel: supports Claude Desktop MCP Apps rendering interactive approval panels and operation wizards.
Append-only Audit: records a trace of every step from tool call to execution, and never stores plaintext tokens.
Related MCP server: @vaibot/mcp-server
System Architecture
Claude Client (Code/Desktop)
โ
โ (MCP over Streamable HTTP + OAuth 2.1 ไธ้ๆๅ่ token)
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโ be2-mcp server (ๆฒป็ๅฑค) โโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ โ
โ [OAuth 2.1 ๅคๆฎผ] ่ฒ ่ฒฌ Discovery / DCR / PKCE โ
โ โ โ
โ [Core ๆฒป็ๅฑค] change-set ็ๆ
ๆฉใCAS ้ฒ้่คใscope-bindingใ็จฝๆ ธ็ๅญ โ
โ โ โ
โ [Domain Modules] (src/modules/product/*) โ
โ โโ shelfToggle (ไธไธๆถ) โ
โ โโ inventorySetting (ๆธ้) โ
โ โโ inventoryPlatform (ๅนณๅฐๅๆ) โ
โ โโ shelfSchedule (ๆ็จ) โ
โ โ
โโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโ
โ (ๅธถ be2 JWT ๆฅๆน) โ (ๅธถ service key ๆ็ขผ/refresh) โ (ไบๅๆนๅ)
โผ โผ โผ
be2 gateway /product/api/v1 auth-service /api/v1/ UI ้ขๆฟ (mcp-ui) / ็ขบ่ช้ SSOSecurity Model Summary
Security mechanism | Defense target and effect |
OAuth 2.1 shell | Prevents the agent from stealing credentials. Credentials are only sent to be2-auth in the POPUP; the agent only obtains a short-lived code to exchange for a token. |
Token never leaves the server | Prevents credential leakage. The real token is stored server-side; what the agent gets is an opaque random string with no authorization power. |
draft-only + SSO/Nonce approval | Prevents agent hallucination/malicious writes. The agent cannot obtain |
scope-binding | Prevents prompt injection. A change-set can only operate on objects that |
businessList fail-fast | Prevents unauthorized attempts. The |
Quick Start
Install dependencies
npm installPrepare environment variables Copy
.env.exampleto.env. Never fill in or commit any real production token or password. You will need a SITSIT_AUTHSVC_SERVICE_KEY.Start the server & build the UI
npm run build:ui npm run devConnect Claude (using Claude Code as an example)
claude mcp add be2-mcp --transport http http://127.0.0.1:8787/mcpAfter running, the be2-auth SSO login page will pop up in the browser.
Testing
npm run ci
Project Structure Tree
src/
โโ core/ # ๆฒป็ๅฑคๅบ็ค่จญๆฝ (change-setใCASใauditใstore)
โโ oauth/ # OAuth 2.1 ๅคๆฎผ (Discovery, DCR, authorize, token routes)
โโ auth/ # ่ช่ญๅ
งๆ ธ (TokenManagerใauth-service ไปๆฅ)
โโ server/ # Streamable HTTP server, confirm routes, ่ทฏ็ฑ็ต่ฃ
โโ tools/ # MCP tools ่จปๅ่ไป้ข
โโ ui/ # ้ขๆฟ่็ฒพ้็ isomorphic ๅ็ซฏ (esbuild ๆๅ
ๅ
ฅๅฃ)
โโ modules/ # Domain modules ๅฏฆไฝ (็ดๆฅญๅ้่ผฏ)
โโ product/
โโ shelfToggle/ # ๅๅ/ๆนๆกไธไธๆถๆจก็ต
โโ inventorySetting/ # ๅบซๅญๆธ้ไฟฎๆนๆจก็ต
โโ inventoryPlatform/ # ๅบซๅญๅนณๅฐๅๆๆจก็ต
โโ shelfSchedule/ # ไธไธๆถๆ็จๆจก็ตDocumentation Map
CLAUDE.mdโ Development rules and command reference.docs/be2-mcp/design-overview.mdโ Understand the MCP architecture and key decisions in one read (a must-read for demos / architecture tours).docs/be2-mcp/demo-guide.mdโ Standard script for presentations and feature demos.docs/be2-mcp/security-model-explainer.mdโ Plain-language explanation of the security model.docs/be2-mcp/oauth-runbook.mdโ OAuth integration, refresh mechanism, and SSO explanation.docs/be2-mcp/mcp-apps-runbook.mdโ Guide to using the Claude Desktop panel approval mechanism.docs/be2-mcp/phase4a-runbook.mdโ Batch Wizard (inventory platform/scheduling) operation guide.docs/be2-mcp/module-catalog.mdโ List of implemented modules.docs/be2-mcp/module-onboarding.mdโ Checklist for onboarding a new domain / action type.
This server cannot be deployed
Maintenance
Related MCP Connectors
Human-in-the-loop review and approval for AI agents. Audit trail, approval policies, native MCP.
A paid remote MCP for CLI tool MCP, built to return verdicts, receipts, usage logs, and audit-ready
AI governance MCP server for EU AI Act compliance and jurisdiction verification
- gatewayOAuthai.sealgate
MCP gateway with runtime security policy, tool-call-level control, and audit of agent actions.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA governed MCP server for integrating AI agents with customer data, featuring role-based access control, field redaction, and human-in-the-loop approval for secure support operations.1-

@vaibot/mcp-serverofficial
FlicenseAqualityDmaintenanceGovernance circuit-breaker MCP server that enables AI agents to request risk-based decisions, approve or deny actions, and finalize outcomes with full audit receipts.4-- AlicenseNot gradedqualityCmaintenanceGoverned MCP server for bank-grade agent tool access with RBAC, PII redaction, rate limiting, and audit logging.MIT
- FlicenseNot gradedqualityBmaintenanceAn MCP server that enables non-technical operations users to resolve common commerce-ops tickets, such as orders charged but failed, through an investigate, recommend, approve, and execute workflow with read-only and write tools.-