Skip to main content
Glama
kkday-it

be2-mcp

Official
by kkday-it

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) / ็ขบ่ช้  SSO

Security 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 be2mcp_sid (SSO) or the nonce (panel), so it is structurally unable to self-approve.

scope-binding

Prevents prompt injection. A change-set can only operate on objects that L0 tools have "read" within the same conversation session.

businessList fail-fast

Prevents unauthorized attempts. The businessList issued by auth-service blocks unauthorized actions early at the MCP layer.

Quick Start

  1. Install dependencies

    npm install
  2. Prepare environment variables Copy .env.example to .env. Never fill in or commit any real production token or password. You will need a SIT SIT_AUTHSVC_SERVICE_KEY.

  3. Start the server & build the UI

    npm run build:ui
    npm run dev
  4. Connect Claude (using Claude Code as an example)

    claude mcp add be2-mcp --transport http http://127.0.0.1:8787/mcp

    After running, the be2-auth SSO login page will pop up in the browser.

  5. 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

F
license - not found
Not graded
quality - not tested
B
maintenance

Maintenance

โ€“Maintainers
โ€“Response time
โ€“Release cycle
โ€“Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    Not graded
    quality
    C
    maintenance
    A 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
  • F
    license
    A
    quality
    D
    maintenance
    Governance 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
  • F
    license
    Not graded
    quality
    B
    maintenance
    An 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.

View all related MCP servers

Related MCP Connectors

  • A paid remote MCP for CLI tool MCP, built to return verdicts, receipts, usage logs, and audit-ready

  • A paid remote MCP for AI SDK eval dashboard, built to return verdicts, receipts, usage logs, and aud

  • A paid remote MCP for AI SDK benchmark dashboard, built to return verdicts, receipts, usage logs, an

View all MCP Connectors

Latest Blog Posts

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/kkday-it/kkday-be2-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server