chaimi-bookkeeping-mcp 3.0.0 → 3.0.3
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.
- package/package.json +1 -1
- package/server.js +2 -2
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -103,7 +103,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
103
103
|
type: 'object',
|
|
104
104
|
properties: {
|
|
105
105
|
store: { type: 'string', description: '商家名称' },
|
|
106
|
-
date: { type: 'string', description: '消费时间(ISO
|
|
106
|
+
date: { type: 'string', description: '消费时间(ISO 8601 格式,必须包含日期和时间,如:2026-04-10T13:06:21)' },
|
|
107
107
|
totalAmount: { type: 'number', description: '总金额' },
|
|
108
108
|
originalAmount: { type: 'number', description: '应付金额' },
|
|
109
109
|
discountAmount: { type: 'number', description: '优惠金额' },
|
|
@@ -450,7 +450,7 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
450
450
|
instructions: '请将 systemPrompt 作为 system message,把小票图片作为 user message,调用你的大模型进行解析。解析完成后,调用 save_receipt 工具保存结果。'
|
|
451
451
|
}
|
|
452
452
|
};
|
|
453
|
-
userMessage = `✅ 获取解析Prompt成功\n\n版本: ${promptResult.data.version}\n\n
|
|
453
|
+
userMessage = `✅ 获取解析Prompt成功\n\n版本: ${promptResult.data.version}\n\n## System Prompt\n\n请将以下内容作为 system message 发送给大模型:\n\n\`\`\`\n${promptResult.data.systemPrompt}\n\`\`\`\n\n## 使用说明\n\n1. 将上面的 System Prompt 作为 system message\n2. 将小票图片作为 user message\n3. 调用大模型解析\n4. 解析完成后,调用 save_receipt 工具保存结果\n\n## 示例\n\n${JSON.stringify(promptResult.data.examples, null, 2)}`;
|
|
454
454
|
} else {
|
|
455
455
|
result = { success: false, error: promptResult.error };
|
|
456
456
|
userMessage = `❌ 获取Prompt失败:${promptResult.error}`;
|