{"name":"shangdazi-mcp","version":"0.1.0","description":"商搭 BizPal - AI 替你撮生意。B2B 供需撮合平台，支持供给/需求发布、自动匹配、意向沟通、联系方式交换","url":"https://mcp.shangdazi.com","capabilities":{"mcp":{"endpoint":"https://mcp.shangdazi.com/","transport":"http","protocol":"jsonrpc-2.0","auth":"Bearer sd_<member_token>"},"webhooks":{"description":"出站事件推送，支持 HMAC-SHA256 签名验证","events":["match_suggested","interest_received","match_accepted","match_declined","message_received","contact_requested"],"config_url":"https://mcp.shangdazi.com/api/webhooks","signature_header":"X-BizPal-Signature","signature_format":"sha256=<hex>"},"web_api":{"endpoint":"https://mcp.shangdazi.com/api","auth":"Bearer sd_<member_token>"}},"auth_methods":{"member_token":{"type":"bearer","prefix":"sd_","obtain":"POST /api/auth/register 或 POST /api/auth/login","fallback":"每个工具也接受可选 member_token 参数（header 优先，参数兜底）"}},"tools":[{"name":"register_member","description":"注册新会员，返回 member_id + member_token。token 必须由 AI 持久化到 ~/.shangda/credentials.json","requires_auth":false},{"name":"publish_supply","description":"发布供给。支持图片、资质图、视频。发布后进入巡航池等待匹配","requires_auth":true},{"name":"publish_demand","description":"发布需求。支持参考图、样件图。发布后进入巡航池等待匹配","requires_auth":true},{"name":"search_market","description":"实时搜索市场供需。支持类目/标签/位置/关键词筛选。返回最新发布的供给和需求","requires_auth":true},{"name":"list_my_posts","description":"查询本人发布的所有供需（供给+需求），按时间倒序，支持状态筛选","requires_auth":true},{"name":"search_matches","description":"主动检索当前会员的匹配项。可按状态、角色、匹配分筛选。按匹配分倒序","requires_auth":true},{"name":"get_match_detail","description":"查看某条匹配详情，含双方供需快照、对方会员基本信息、匹配理由。未 accepted 前对方联系方式不可见","requires_auth":true},{"name":"express_interest","description":"表达合作意向。匹配状态变为 interested，触发对方真人推送。不替用户做交易决策","requires_auth":true},{"name":"decline_match","description":"婉拒某条匹配。状态变为 rejected，平台不再就这条匹配推送","requires_auth":true},{"name":"accept_match","description":"接受某条匹配。状态从 notified/interested 变为 accepted，之后才能交换联系方式","requires_auth":true},{"name":"request_contact","description":"请求交换联系方式（match 必须 accepted/deal）。双方都点过后，phone 和 wechat_id 才会互相揭示","requires_auth":true},{"name":"get_my_notifications","description":"拉取平台推送的通知（匹配建议、意向接收等）。返回后自动标记为已读","requires_auth":true},{"name":"get_member_profile","description":"查询当前会员资料：昵称、简介、角色、信用分、资料完整度","requires_auth":true},{"name":"update_member_profile","description":"更新会员资料（昵称、简介、头像、角色）。至少传一个字段","requires_auth":true},{"name":"cancel_post","description":"下架某条供需（S- 或 D-）。只能下架自己的，关联的未处理匹配会被自动婉拒","requires_auth":true},{"name":"cruise_tick","description":"系统级：手动触发一次巡航，扫所有 active 供需并补匹配。需要 system_token（环境变量 CRUISE_SYSTEM_TOKEN）","requires_auth":false},{"name":"upload_attachment","description":"登记附件 URL 到某个 supply/demand/member。客户端需先把文件传到对象存储拿到 URL。可设封面、可见性、AI 标签","requires_auth":true},{"name":"list_attachments","description":"查询附件列表。可按 target_type+target_id、mine_only、kind 筛选。按 sort_order + created_at 排序","requires_auth":true},{"name":"delete_attachment","description":"删除附件记录。只能删自己的。注意：只清表，对象存储里的文件需另行清理","requires_auth":true},{"name":"web_login","description":"生成一次性免密登录链接（5 分钟有效，用一次即毁），发给用户即可直接登录商搭网页版","requires_auth":true},{"name":"profile_from_text","description":"一句话生成会员画像草稿（主营行业/偏好类目/偏好地区/简介）。返回草稿不落库，用户确认后用 update_member_profile / update_preferences 应用","requires_auth":true},{"name":"draft_post","description":"一句话生成供给/需求帖草稿（标题/类目/标签/价格或预算/地区）。返回草稿不落库，用户确认后用 publish_supply / publish_demand 落库","requires_auth":true},{"name":"check_post_health","description":"查我的帖子健康度：临期/过期/发布久无匹配。返回每张帖子的健康状态和优化建议，只建议不替用户改帖","requires_auth":true}],"docs":"https://shangdazi.com/docs"}