Skip to main content
Glama
757607106

erp-billing

by 757607106

GJP ERP AI 销售开单 MCP

基于 AgentScope 2.0.5 的完整销售单 MCP 服务,服务名为 erp-billing

AI 平台 / SaaS 对话页
  │ Authorization: Bearer <短期 MCP token>
  ▼
ERP 开单 MCP
  ├─ McpIdentityResolver:解析身份与 billing scopes
  ├─ McpToolSetResolver:按 tenant/account/session 隔离会话
  ├─ BillingToolSet:资料追问、商品匹配、预览和提交
  └─ BillingApiPort
       └─ Adapter:固定 ERP URL + 按会话注入 Bearer

ERP URL 不是租户动态参数,由部署环境唯一配置:

ERP_BILLING_BASE_URL=https://test-ai.yuncyb.com/aicyberp-api

URL 不进入 InvocationContext 或 Tool Schema。Bearer 仍按用户会话 隔离;账号、密码、验证码、Cookie 和 Token 都不进入模型可见工具参数。

销售单流程

业务必填项:

  • 客户

  • 出库仓库

  • 经手人

  • 录单日期(YYYY-MM-DD

  • 商品明细

备注可选,最多 200 字。接口必填的 id=0saveType 由工具内部管理:草稿 0、预收 1、正式 2

MCP 发布五个工具:

工具

作用

sync_products

同步当前账号可见商品到隔离会话内存

search_products

独立查询真实 ERP 商品

search_sales_order_options

查询客户、仓库或经手人候选

prepare_sales_order

返回缺失项、候选、商品匹配和不可变销售单预览

submit_sales_order

用户确认后以 billing:write 写入真实 ERP

实际调用接口:

GET  /product/page
GET  /customer/page
GET  /warehouse/page
GET  /staff/page
POST /sales/orders

只有 prepare_sales_order 返回 readyToSubmit=true,用户明确确认当前预览,并且 调用身份具有 billing:write 时,才允许提交。submit_sales_order 还要求唯一 idempotency_key;当前实现提供会话内防重,生产多副本应接入共享幂等存储。

Related MCP server: PyerP MCP Server

开发

uv sync --extra dev
uv run pytest -q
uv run ruff check src tests

代码结构:

src/
├── erp_billing/  # 销售单领域、ToolSet、Port、Adapter、Prompt 和 MCP
└── gjp_common/   # 身份、固定端点、凭据、MCP、配置和日志

主要文档:

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

  • A
    license
    B
    quality
    D
    maintenance
    An MCP server that enables AI assistants to interact with Odoo ERP apps like Inventory, CRM, Sales, and Manufacturing. It allows users to read, create, and manage Odoo records and workflows using natural language commands.
    25
    15
    1
    ISC
  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    An MCP server that enables LLM agents to interact with PyerP ERP systems via a REST API. It allows users to search, read, create, and update ERP records such as inventory, clients, and users using natural language.
  • A
    license
    Not graded
    quality
    Not graded
    maintenance
    An enterprise-grade MCP server that enables AI agents to execute SAP RFC functions and read business data securely through the Model Context Protocol.
  • A
    license
    Not graded
    quality
    B
    maintenance
    MCP server for commerce-operations self-service. Lets an AI agent look up order details and search orders without needing developer or SQL access.
    12
    MIT

View all related MCP servers

Related MCP Connectors

  • MCP server for AI access to Swagger by SmartBear.

  • MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.

  • Connect e-commerce and marketing data to AI assistants via MCP.

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/757607106/gjp-cyb-mcp'

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