chaimi-bookkeeping-mcp 3.1.4 → 3.1.6

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/oauth.js +6 -1
  2. package/package.json +1 -1
package/oauth.js CHANGED
@@ -57,9 +57,14 @@ class OAuthManager {
57
57
  await this.authorizeWithDeviceFlow(deviceCodeRes);
58
58
  }
59
59
 
60
+ // 3. 轮询获取 Token
61
+ console.log('');
62
+ console.log('⏳ 等待用户授权,请勿关闭窗口...');
63
+ console.log(' (请在手机微信中完成授权操作)');
64
+ console.log('');
60
65
  const token = await this.pollForToken(
61
66
  deviceCodeRes.deviceCode,
62
- 2000
67
+ deviceCodeRes.interval * 1000 || 5000
63
68
  );
64
69
 
65
70
  await this.tokenStorage.save(token);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chaimi-bookkeeping-mcp",
3
- "version": "3.1.4",
3
+ "version": "3.1.6",
4
4
  "description": "柴米记账 MCP Server - 支持 Claude、Cursor、OpenClaw、WorkBuddy 等 AI 工具直接记账",
5
5
  "main": "server.js",
6
6
  "bin": {