@blod-nm/user-kit 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/schemas.js +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blod-nm/user-kit",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "CloudBase user-center kit: auth (wechat code / unionid / password / sms / email / signup) + crm_user_detail archive on @blod-nm/base-cb.",
package/src/schemas.js CHANGED
@@ -166,9 +166,11 @@ export const SCHEMAS = {
166
166
  title: '读取档案',
167
167
  inputSchema: obj({ uid: str('唯一用户 id(必填)') }, { required: ['uid'], additionalProperties: false }),
168
168
  outputSchema: {
169
- type: ['object', 'null'],
170
- description: '档案行;不存在时为 null',
169
+ // MCP SDK 要求 outputSchema 根类型字面 "object";无行时 content 文本为 null、structuredContent 省略
170
+ type: 'object',
171
+ description: '档案行(无行时 structuredContent 省略,content 文本为 null)',
171
172
  properties: { id: str('档案行 id'), data: { type: 'object' }, status: str('状态'), deleted_at: { type: ['string', 'null'] } },
173
+ additionalProperties: true,
172
174
  },
173
175
  annotations: { readOnlyHint: true },
174
176
  },