manifest_version: 2
app_key: __DBX_APP_KEY__
name: 请填写智能服务名称

mcp_server:
  # 这是 dbx init 生成 Starter 工程时使用的共享示例 MCP。
  # 开发实际业务时，请替换为自己的 MCP 地址和认证配置。
  end_point: https://s0piqd9123oupmbgufs9i.apigateway-cn-beijing.volceapi.com/mcp
  description: 购物方案示例 MCP 服务
  mcp_config:
    protocol: Streamable

tools:
  create_shopping_plan:
    login_type: no_login
    description: 根据购物场景、人数和预算生成一份购物方案
    output:
      kind: entities
      entity_types: [shopping_plan_entity]

entities:
  shopping_plan_entity:
    schema:
      plan_id:
        type: string
        is_entity_id: true
      entity_type:
        type: string
        llm_visible: false
      title:
        type: string
      scene:
        type: string
      people_count:
        type: int
      budget:
        type: float
      item_count:
        type: int
      subtotal:
        type: float
      budget_remaining:
        type: float
      budget_warning:
        type: string
      groups:
        type: array
        items:
          type: object
          properties:
            name:
              type: string
            item_count:
              type: int
            subtotal:
              type: float
      cart_snapshot:
        type: string
        llm_visible: false
    tool_card_binding:
      create_shopping_plan: shopping-plan

# 需要登录、定位、相机等能力时，再声明相应权限。
permissions: []
