@fangcuntai/fangcuntai-mcp 1.6.6 → 1.6.8
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/README.en.md +87 -80
- package/README.md +87 -79
- package/package.json +22 -4
package/README.en.md
CHANGED
|
@@ -1,130 +1,137 @@
|
|
|
1
1
|
# @fangcuntai/fangcuntai-mcp
|
|
2
2
|
|
|
3
|
-
Fangcuntai
|
|
3
|
+
Fangcuntai is a family AI assistant that brings the family ledger, member collaboration, and Xiaojiaoshi together. Its in-app assistant, Xiaojiaoshi, helps with household bookkeeping, notes, and everyday family matters. This MCP server connects the same family data to Claude Desktop, Cursor, Lobster, and other desktop AI clients. Ledger entries, notes, and deletions show a summary before saving, and deleted items can be restored.
|
|
4
4
|
|
|
5
5
|
[简体中文](https://unpkg.com/@fangcuntai/fangcuntai-mcp/README.md)
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Fangcuntai and Xiaojiaoshi
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
- Query summaries, entries, trends, and categories.
|
|
11
|
-
- Create, delete, and restore ledger entries behind a write confirmation lock.
|
|
12
|
-
- Browse and search notes, organize two-level note folders, and create notes. Write to-dos as `- [ ]` / `- [x]`; link another note with `[[title]]`.
|
|
13
|
-
- Check subscription status and AI credit balance.
|
|
14
|
-
- Track writes created by the desktop assistant.
|
|
9
|
+
Xiaojiaoshi is the family AI assistant inside the app. By default it acts as the household's daily steward: checking spending, analyzing expenses, adding ledger entries, writing notes, and organizing family agreements and to-dos. When you ask it to record something, it writes directly to the official ledger or notes; AI changes can be reviewed in **Me → AI settings → Change history**.
|
|
15
10
|
|
|
16
|
-
|
|
11
|
+
It can also:
|
|
17
12
|
|
|
18
|
-
|
|
13
|
+
- Query by month, year, or quarter and answer questions like "How much did we spend this month?", "Was this reasonable?", and "How much more will we need?"
|
|
14
|
+
- Fill in a note's title, body, visibility, tags, and folder in one go when possible; when organizing existing notes, it only changes folders and tags.
|
|
15
|
+
- Link a note to the corresponding ledger entry.
|
|
16
|
+
- Give practical suggestions based on family data. For deeper relationship or emotional questions, you can `@` a specialized assistant.
|
|
17
|
+
- Let each family member choose which ledgers and notes Xiaojiaoshi can access.
|
|
19
18
|
|
|
20
|
-
-
|
|
21
|
-
- A Fangcuntai account.
|
|
22
|
-
- A desktop assistant token created in the Fangcuntai app:
|
|
23
|
-
**Me > Settings > Connect Desktop Assistant**.
|
|
19
|
+
Xiaojiaoshi is not a therapist and does not do fortune-telling or make decisions for parents. For medical, legal, or serious mental health issues, it suggests professional help.
|
|
24
20
|
|
|
25
|
-
|
|
21
|
+
The desktop MCP is the desktop extension of Xiaojiaoshi: the same ledger and notes, connected to Claude Desktop / Cursor / Lobster. Xiaojiaoshi writes directly in the app; the desktop MCP keeps a write confirmation step. The MCP does not replace in-app chat and does not include specialized assistants or private skills.
|
|
26
22
|
|
|
27
|
-
##
|
|
23
|
+
## Why use the desktop MCP
|
|
28
24
|
|
|
29
|
-
|
|
25
|
+
- **Official MCP server, not a community wrapper**: it calls the Fangcuntai API directly and works on the same ledger and notes as the app.
|
|
26
|
+
- **Built for families**: switch between families and ledger books you have joined; the server still enforces Fangcuntai family permissions.
|
|
27
|
+
- **Confirmation before writes**: creating entries, writing notes, deleting, and emptying the recycle bin show a summary first and save only after you confirm.
|
|
28
|
+
- **Deleted items can be restored**: deleted ledger entries and notes go to the recycle bin. Only emptying it is permanent.
|
|
29
|
+
- **Traceable writes**: ledger entries written by the desktop assistant carry a source marker visible in the app.
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
{
|
|
33
|
-
"command": "npx",
|
|
34
|
-
"args": ["-y", "@fangcuntai/fangcuntai-mcp"],
|
|
35
|
-
"env": {
|
|
36
|
-
"FANGCUNTAI_API": "https://api-service.fangcuntai.com",
|
|
37
|
-
"FANGCUNTAI_TOKEN": "hm_at_your_token"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
```
|
|
31
|
+
## Who it is for
|
|
41
32
|
|
|
42
|
-
|
|
33
|
+
- People already using Fangcuntai for family bookkeeping and notes who want to work from their desktop.
|
|
34
|
+
- Families sharing ledger books who need to switch between families and books.
|
|
35
|
+
- People who want AI to help organize bills and notes but want to review writes before they happen.
|
|
43
36
|
|
|
44
|
-
|
|
37
|
+
## What the desktop MCP can do
|
|
45
38
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
39
|
+
- **Query the ledger**: view summaries, entries, trends, and categories.
|
|
40
|
+
- **Write ledger entries**: create, update, delete, restore, or empty the recycle bin.
|
|
41
|
+
- **Notes**: browse, search, create, and move notes, and organize two-level folders. Write to-dos as `- [ ]` / `- [x]`; reference another note with `[[title]]`.
|
|
42
|
+
- **Links**: attach a note to a ledger entry, or unlink them.
|
|
43
|
+
- **Account**: check subscription status and AI credit balance.
|
|
50
44
|
|
|
51
|
-
|
|
45
|
+
## Things you can ask
|
|
52
46
|
|
|
53
|
-
|
|
47
|
+
- "How much did our family spend this month?"
|
|
48
|
+
- "Add an expense: groceries, 58 yuan today."
|
|
49
|
+
- "Link last week's renovation note to this bill."
|
|
50
|
+
- "Organize travel notes into the 2026 travel folder."
|
|
54
51
|
|
|
55
|
-
|
|
52
|
+
## Desktop MCP boundaries
|
|
56
53
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
- It only handles families and ledger books the current account can access.
|
|
55
|
+
- It does not change ledger settings, members, subscriptions, or credits; subscriptions and credits are read-only.
|
|
56
|
+
- Reminders are no longer available.
|
|
60
57
|
|
|
61
|
-
|
|
58
|
+
## Quick start
|
|
62
59
|
|
|
63
|
-
|
|
64
|
-
- A token is bound to a default family and can only switch to families the user has joined.
|
|
65
|
-
- Deleted ledger entries and notes are moved to the recycle bin.
|
|
66
|
-
- Ledger writes are marked with the `desktop_mcp` source.
|
|
67
|
-
- Requests include `X-App-ID: 60000` and `X-MCP-Tool` for auditing.
|
|
60
|
+
### 1. Prepare
|
|
68
61
|
|
|
69
|
-
|
|
62
|
+
- Node.js 18 or later.
|
|
63
|
+
- A Fangcuntai account.
|
|
64
|
+
- A desktop assistant token created in the Fangcuntai app: **Me → AI settings → Connect Desktop Assistant**.
|
|
70
65
|
|
|
71
|
-
|
|
66
|
+
The token is shown only once. Existing tokens cannot be changed, so revoke and create a new one if needed.
|
|
72
67
|
|
|
73
|
-
|
|
68
|
+
### 2. Configure
|
|
74
69
|
|
|
75
|
-
|
|
70
|
+
Add this server to your MCP-compatible desktop client:
|
|
76
71
|
|
|
77
|
-
|
|
72
|
+
```json
|
|
73
|
+
{
|
|
74
|
+
"command": "npx",
|
|
75
|
+
"args": ["-y", "@fangcuntai/fangcuntai-mcp"],
|
|
76
|
+
"env": {
|
|
77
|
+
"FANGCUNTAI_API": "https://api-service.fangcuntai.com",
|
|
78
|
+
"FANGCUNTAI_TOKEN": "hm_at_your_token"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
```
|
|
78
82
|
|
|
79
|
-
|
|
83
|
+
You can also copy the complete configuration from the **Connect Desktop Assistant** page in the Fangcuntai app.
|
|
80
84
|
|
|
81
|
-
|
|
85
|
+
The outer field differs by client (for example, Claude Desktop uses `mcpServers`). The JSON above is the server entry; the configuration copied from the app includes the correct outer structure.
|
|
82
86
|
|
|
83
|
-
|
|
87
|
+
### 3. Choose permissions
|
|
84
88
|
|
|
85
|
-
|
|
89
|
+
Select permissions when creating the token:
|
|
86
90
|
|
|
87
|
-
|
|
91
|
+
- Read-only ledger access: select **View transactions** and **View stats**.
|
|
92
|
+
- To create, update, or delete ledger entries: also select **Add / delete entries**.
|
|
93
|
+
- To write notes or organize folders: also select **Write notes**.
|
|
94
|
+
- To link notes and ledger entries: both write permissions are required.
|
|
88
95
|
|
|
89
|
-
|
|
96
|
+
### 4. Restart the client
|
|
90
97
|
|
|
91
|
-
|
|
98
|
+
Restart the desktop client after saving the configuration so it reloads the MCP server. To verify the connection, ask: "How much did our family spend this month?"
|
|
92
99
|
|
|
93
|
-
|
|
100
|
+
## Security and privacy
|
|
94
101
|
|
|
95
|
-
|
|
102
|
+
- A token only works within the permissions you selected, and the server checks them again.
|
|
103
|
+
- Creating entries, writing notes, deleting, and emptying the recycle bin show a summary first and save only after you confirm.
|
|
104
|
+
- Deleted ledger entries and notes go to the recycle bin and can be restored. Emptying the recycle bin is permanent.
|
|
105
|
+
- Ledger entries written by the desktop assistant carry a source marker visible in the app.
|
|
106
|
+
- The MCP server does not connect to the database or cache ledgers and notes; pending confirmations live only in the current process memory.
|
|
107
|
+
- Revoking the token in the app immediately disables the desktop assistant.
|
|
96
108
|
|
|
97
|
-
|
|
109
|
+
## Updates
|
|
98
110
|
|
|
99
|
-
|
|
111
|
+
When a desktop client starts the server with `npx -y @fangcuntai/fangcuntai-mcp`, it uses npm's `latest` tag. Restart the client after a new release; no configuration change is needed.
|
|
100
112
|
|
|
101
|
-
|
|
113
|
+
Check the latest version:
|
|
102
114
|
|
|
103
115
|
```bash
|
|
104
|
-
|
|
105
|
-
npm install
|
|
106
|
-
npm test
|
|
107
|
-
npm run build
|
|
108
|
-
|
|
109
|
-
FANGCUNTAI_TOKEN=hm_at_xxx \
|
|
110
|
-
FANGCUNTAI_API=http://127.0.0.1:9080 \
|
|
111
|
-
node dist/index.js
|
|
116
|
+
npm view @fangcuntai/fangcuntai-mcp version
|
|
112
117
|
```
|
|
113
118
|
|
|
114
|
-
|
|
119
|
+
Pin a specific version:
|
|
115
120
|
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
|
|
121
|
+
```json
|
|
122
|
+
{
|
|
123
|
+
"args": ["-y", "@fangcuntai/fangcuntai-mcp@1.6.8"]
|
|
124
|
+
}
|
|
119
125
|
```
|
|
120
126
|
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
## Publishing
|
|
127
|
+
## Troubleshooting
|
|
124
128
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
129
|
+
- **No fangcuntai tools in the client**: restart the client after saving the configuration; confirm Node.js 18+ and that the config is under the correct `mcpServers` field.
|
|
130
|
+
- **Missing `FANGCUNTAI_TOKEN`**: make sure the client configuration includes the `hm_at_` token created in the app.
|
|
131
|
+
- **Missing-permission error**: create a new token in the app with the required permissions. Existing tokens cannot be expanded.
|
|
132
|
+
- **Only entries from the last month can be updated**: edit older entries in the app, or ask Xiaojiaoshi to update them.
|
|
133
|
+
- **Cannot reach the API**: the local default is `http://127.0.0.1:9080`; for normal use, copy the production configuration from the app.
|
|
134
|
+
- **Token lost or leaked**: revoke it in the app and create a new one.
|
|
128
135
|
|
|
129
136
|
## Links
|
|
130
137
|
|
package/README.md
CHANGED
|
@@ -1,129 +1,137 @@
|
|
|
1
1
|
# @fangcuntai/fangcuntai-mcp
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
方寸台是一个面向家庭的 AI 助手:把家庭账本、成员协作和小家师放在一起。App 里的小家师帮你查账、记账、写记事;桌面 MCP 把同一份家庭数据接进 Claude Desktop、Cursor、龙虾等桌面 AI。记账、写记事和删除前先给你看摘要,账单和记事删了还能恢复。
|
|
4
4
|
|
|
5
5
|
[English](https://unpkg.com/@fangcuntai/fangcuntai-mcp/README.en.md)
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## 方寸台和小家师
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
- 在确认锁保护下记账、删除、恢复回收站和清空回收站。
|
|
11
|
-
- 查看和搜索记事,整理两层记事文件夹,直接创建记事。待办写成 `- [ ]` / `- [x]`,一篇可用 `[[标题]]` 连到另一篇。
|
|
12
|
-
- 查询订阅和 AI 积分。
|
|
13
|
-
- 写入数据带来源标记,可在方寸台 App 中追踪。
|
|
9
|
+
小家师是 App 里的家庭 AI 助手,默认做家里的日常管家:查账、分析开销、记账、写记事、整理家庭约定和待办。你说要记,它直接写进正式账本和记事;改过的内容可以在「我的 → AI 配置 → 修改记录」查看。
|
|
14
10
|
|
|
15
|
-
|
|
11
|
+
它还能:
|
|
16
12
|
|
|
17
|
-
|
|
13
|
+
- 按月份、年份或季度查账,回答「这个月花了多少」「花得合理吗」「接下来还要花多少」。
|
|
14
|
+
- 会尽量一次写全记事的标题、正文、可见范围、标签和文件夹;整理已有记事时只改文件夹和标签。
|
|
15
|
+
- 把一篇记事和对应账单挂在一起。
|
|
16
|
+
- 结合家庭数据给建议;相处、情绪等想深入聊,可以在输入框上方 `@` 专业小师。
|
|
17
|
+
- 每个家人可以自己选择小家师能看哪些账本和记事。
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
- 一个方寸台账号。
|
|
21
|
-
- 在方寸台 App 中生成桌面助手令牌:
|
|
22
|
-
**我的 → AI 配置 → 连接桌面助手**。
|
|
19
|
+
小家师不是心理医生,也不做算命或替代家长做决定;遇到医疗、法律、严重心理问题,会建议找专业人士。
|
|
23
20
|
|
|
24
|
-
|
|
21
|
+
桌面 MCP 是小家师在电脑上的延伸:同一本账、同一份记事,接进 Claude Desktop / Cursor / 龙虾。App 里的小家师直接写入;桌面 MCP 仍保留写入确认。MCP 不替代 App 内聊天,也不包含专业小师和私有技能。
|
|
25
22
|
|
|
26
|
-
##
|
|
23
|
+
## 为什么用桌面 MCP
|
|
27
24
|
|
|
28
|
-
|
|
25
|
+
- **官方 MCP,不是社区包装**:直接走方寸台 API,和 App 是同一本账、同一份记事。
|
|
26
|
+
- **家庭场景**:可以切换已加入的家庭和账本,权限仍由方寸台家庭权限校验。
|
|
27
|
+
- **写入有确认**:记账、写记事、删除和清空回收站前,先展示摘要,你确认后才保存。
|
|
28
|
+
- **误删可恢复**:账单和记事删除后进入回收站,可以恢复;清空回收站才永久删除。
|
|
29
|
+
- **来源可追踪**:桌面助手写入的账单带来源标记,App 里能查到。
|
|
29
30
|
|
|
30
|
-
|
|
31
|
-
{
|
|
32
|
-
"command": "npx",
|
|
33
|
-
"args": ["-y", "@fangcuntai/fangcuntai-mcp"],
|
|
34
|
-
"env": {
|
|
35
|
-
"FANGCUNTAI_API": "https://api-service.fangcuntai.com",
|
|
36
|
-
"FANGCUNTAI_TOKEN": "hm_at_你的令牌"
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
```
|
|
31
|
+
## 适合谁
|
|
40
32
|
|
|
41
|
-
|
|
33
|
+
- 已经在方寸台记账、记事,想在电脑上顺手处理。
|
|
34
|
+
- 家里多人共用账本,需要在不同家庭和账本之间切换。
|
|
35
|
+
- 想让 AI 帮忙整理账单和记事,但写入前要能看一眼。
|
|
42
36
|
|
|
43
|
-
|
|
37
|
+
## 桌面 MCP 能做什么
|
|
44
38
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
39
|
+
- **查账**:查看收支摘要、流水、趋势和分类。
|
|
40
|
+
- **记账**:记一笔、改一笔、删除,以及恢复或清空回收站。
|
|
41
|
+
- **记事**:查看、搜索、新建、移动记事,整理两层文件夹。待办写成 `- [ ]` / `- [x]`,可用 `[[标题]]` 引用其他记事。
|
|
42
|
+
- **挂接**:把一篇记事和一笔账挂在一起,或拆开。
|
|
43
|
+
- **账号**:查询订阅状态和 AI 积分。
|
|
49
44
|
|
|
50
|
-
|
|
45
|
+
## 可以这样问
|
|
51
46
|
|
|
52
|
-
|
|
47
|
+
- 「这个月家里花了多少?」
|
|
48
|
+
- 「记一笔:今天买菜 58 元,算餐饮。」
|
|
49
|
+
- 「把上周那篇装修记事挂到这笔账上。」
|
|
50
|
+
- 「把出行相关的记事整理到「2026出行」文件夹。」
|
|
53
51
|
|
|
54
|
-
|
|
52
|
+
## 桌面 MCP 的边界
|
|
55
53
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
- 只处理当前账号有权限查看的家庭和账本。
|
|
55
|
+
- 不改账本设置、成员权限、订阅或积分;订阅和积分只能查询。
|
|
56
|
+
- 事情提醒已下线,不提供提醒功能。
|
|
59
57
|
|
|
60
|
-
|
|
58
|
+
## 快速开始
|
|
61
59
|
|
|
62
|
-
|
|
63
|
-
- 令牌绑定默认家庭,会话中只能切换到用户已加入的其他家庭。
|
|
64
|
-
- 删除的账单和记事进入回收站,可以恢复。
|
|
65
|
-
- 写入账单的来源标记为 `desktop_mcp`。
|
|
66
|
-
- 请求使用 `X-App-ID: 60000` 和 `X-MCP-Tool` 便于审计。
|
|
60
|
+
### 1. 准备
|
|
67
61
|
|
|
68
|
-
|
|
62
|
+
- Node.js 18 或更高版本。
|
|
63
|
+
- 一个方寸台账号。
|
|
64
|
+
- 在方寸台 App 生成桌面助手令牌:**我的 → AI 配置 → 连接桌面助手**。
|
|
69
65
|
|
|
70
|
-
|
|
66
|
+
令牌明文只显示一次。已有令牌不能改权限,需要撤销后重新生成。
|
|
71
67
|
|
|
72
|
-
|
|
68
|
+
### 2. 配置
|
|
73
69
|
|
|
74
|
-
|
|
70
|
+
把以下配置添加到支持 MCP 的桌面客户端:
|
|
75
71
|
|
|
76
|
-
|
|
72
|
+
```json
|
|
73
|
+
{
|
|
74
|
+
"command": "npx",
|
|
75
|
+
"args": ["-y", "@fangcuntai/fangcuntai-mcp"],
|
|
76
|
+
"env": {
|
|
77
|
+
"FANGCUNTAI_API": "https://api-service.fangcuntai.com",
|
|
78
|
+
"FANGCUNTAI_TOKEN": "hm_at_你的令牌"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
```
|
|
77
82
|
|
|
78
|
-
|
|
83
|
+
也可以从方寸台 App 的「连接桌面助手」页面复制完整配置。
|
|
79
84
|
|
|
80
|
-
|
|
85
|
+
不同客户端的外层字段不同(例如 Claude Desktop 用 `mcpServers`)。上面是服务器条目;从 App 复制的配置会带好外层结构。
|
|
81
86
|
|
|
82
|
-
|
|
87
|
+
### 3. 勾选权限
|
|
83
88
|
|
|
84
|
-
|
|
89
|
+
生成令牌时按需要勾选:
|
|
85
90
|
|
|
86
|
-
|
|
91
|
+
- 只想查账:勾「查询账单」和「查看统计」。
|
|
92
|
+
- 要记账、改账或删除流水:再勾「记一笔 / 删除」。
|
|
93
|
+
- 要写记事、整理文件夹:再勾「写记事」。
|
|
94
|
+
- 要挂接记事和账单:两个写权限都要勾。
|
|
87
95
|
|
|
88
|
-
|
|
96
|
+
### 4. 重启客户端
|
|
89
97
|
|
|
90
|
-
|
|
98
|
+
保存配置后重启桌面客户端,让 MCP 重新加载。第一次可以先问一句「这个月家里花了多少?」确认连接正常。
|
|
91
99
|
|
|
92
|
-
|
|
100
|
+
## 安全与隐私
|
|
93
101
|
|
|
94
|
-
|
|
102
|
+
- 令牌只在你勾选的范围内工作,服务端还会再校验一次。
|
|
103
|
+
- 记账、写记事、删除和清空回收站前都会先展示摘要,确认后才写入正式数据。
|
|
104
|
+
- 账单和记事删除后进入回收站,可以恢复;清空回收站不可恢复。
|
|
105
|
+
- 桌面助手写入的账单带来源标记,App 里能看到是它写的。
|
|
106
|
+
- MCP 不直连数据库,也不缓存账本和记事;待确认内容只存在当前进程内存里。
|
|
107
|
+
- 在 App 里撤销令牌后,桌面助手会立刻失效。
|
|
95
108
|
|
|
96
|
-
|
|
109
|
+
## 更新
|
|
97
110
|
|
|
98
|
-
|
|
111
|
+
桌面客户端通过 `npx -y @fangcuntai/fangcuntai-mcp` 启动时,会自动使用 npm 的 `latest`。升级后重启客户端即可,配置不用改。
|
|
99
112
|
|
|
100
|
-
|
|
113
|
+
查看当前最新版:
|
|
101
114
|
|
|
102
115
|
```bash
|
|
103
|
-
|
|
104
|
-
npm install
|
|
105
|
-
npm test
|
|
106
|
-
npm run build
|
|
107
|
-
|
|
108
|
-
FANGCUNTAI_TOKEN=hm_at_xxx \
|
|
109
|
-
FANGCUNTAI_API=http://127.0.0.1:9080 \
|
|
110
|
-
node dist/index.js
|
|
116
|
+
npm view @fangcuntai/fangcuntai-mcp version
|
|
111
117
|
```
|
|
112
118
|
|
|
113
|
-
|
|
119
|
+
固定到某个版本:
|
|
114
120
|
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
|
|
121
|
+
```json
|
|
122
|
+
{
|
|
123
|
+
"args": ["-y", "@fangcuntai/fangcuntai-mcp@1.6.8"]
|
|
124
|
+
}
|
|
118
125
|
```
|
|
119
126
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
## 发布
|
|
127
|
+
## 常见问题
|
|
123
128
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
129
|
+
- **客户端里看不到 fangcuntai 工具**:保存配置后重启客户端;确认 Node.js 18+,并检查配置是否放在正确的 `mcpServers` 外层。
|
|
130
|
+
- **提示缺少 `FANGCUNTAI_TOKEN`**:确认客户端配置里填了 App 生成的 `hm_at_` 令牌。
|
|
131
|
+
- **提示未勾选权限**:在 App 里重新生成令牌,勾选对应权限;已有令牌不能追加权限。
|
|
132
|
+
- **提示只能改最近 1 个月**:更早的流水请在 App 里改,或让小家师直接更新。
|
|
133
|
+
- **连不上 API**:本地默认是 `http://127.0.0.1:9080`;正常使用时从 App 复制配置,使用生产地址。
|
|
134
|
+
- **令牌丢失或泄露**:在 App 里撤销旧令牌,重新生成一个。
|
|
127
135
|
|
|
128
136
|
## 链接
|
|
129
137
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fangcuntai/fangcuntai-mcp",
|
|
3
|
-
"version": "1.6.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.6.8",
|
|
4
|
+
"description": "方寸台家庭 AI 助手(小家师)的桌面 MCP:在 Claude Desktop、Cursor、龙虾里查家庭账本、记账、写记事;关键写入先确认,删除可恢复。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"dev": "tsc && node dist/index.js",
|
|
20
20
|
"organize-notes": "node scripts/organize-notes.mjs",
|
|
21
21
|
"test": "tsx --test \"src/**/*.test.ts\"",
|
|
22
|
-
"prepare": "npm run build"
|
|
22
|
+
"prepare": "npm run build",
|
|
23
|
+
"prepublishOnly": "npm test"
|
|
23
24
|
},
|
|
24
25
|
"publishConfig": {
|
|
25
26
|
"access": "public"
|
|
@@ -29,11 +30,28 @@
|
|
|
29
30
|
},
|
|
30
31
|
"keywords": [
|
|
31
32
|
"mcp",
|
|
33
|
+
"model-context-protocol",
|
|
34
|
+
"mcp-server",
|
|
32
35
|
"fangcuntai",
|
|
33
36
|
"方寸台",
|
|
37
|
+
"xiaojiaoshi",
|
|
38
|
+
"family-assistant",
|
|
39
|
+
"ai-assistant",
|
|
34
40
|
"family",
|
|
41
|
+
"family-finance",
|
|
42
|
+
"family-ledger",
|
|
35
43
|
"ledger",
|
|
36
|
-
"
|
|
44
|
+
"bookkeeping",
|
|
45
|
+
"personal-finance",
|
|
46
|
+
"expense-tracker",
|
|
47
|
+
"notes",
|
|
48
|
+
"claude-desktop",
|
|
49
|
+
"cursor",
|
|
50
|
+
"openclaw",
|
|
51
|
+
"lobster",
|
|
52
|
+
"desktop-assistant",
|
|
53
|
+
"家庭账本",
|
|
54
|
+
"记账"
|
|
37
55
|
],
|
|
38
56
|
"homepage": "https://www.fangcuntai.com",
|
|
39
57
|
"dependencies": {
|