Steps
WorkBuddy, DeepSeek Harness, Doubao Desktop, or Claude is already open on your computer. You want to know how much this month’s training cost, or record an expense you just clarified, without switching back to the phone.
This guide explains how to connect the ledger, and how to verify that the desktop AI is actually reading Fangcuntai rather than inventing numbers.
Once connected, a desktop AI can query families, ledgers, transactions, and statistics; organize notes; and prepare ledger or note writes for confirmation. It cannot create ledgers, change members, or manage subscriptions. Official writes still wait for your confirmation.
The shortest path
AnchorGenerate a token first, then copy the instructions for your client:
- WorkBuddy, DeepSeek Harness: send the setup prompt to the agent. If the client can read and write files, it edits the configuration with a placeholder; you replace the token in the local file. If it cannot, paste the path it gives you manually.
- Doubao Desktop: send the field-by-field prompt to Doubao, then verify each field in New custom connector and save. Doubao cannot import a JSON file directly.
- Claude Desktop, Cursor: paste the same
mcpServersJSON into the configuration file or MCP settings.
The sections below follow that order. If you already know your client, jump to its section.
Three things to prepare
Anchor- Node.js 18 or later on the computer. Run
node -vin a terminal; a result such asv18,v20, orv22is fine. - A Fangcuntai account that has joined a family.
- A desktop assistant token. You will generate one in the next step.
Step 1: Generate a token in the app
AnchorOpen the Fangcuntai app: Me → AI → Connect desktop assistant.
The token uses the current family as its default. The desktop assistant can switch to another family you have already joined during a session.
Select permissions as needed:
| Permission | When to enable it |
|---|---|
| Query bills | The assistant needs to read transactions or search a category |
| View statistics | It needs summaries, trends, and category breakdowns |
| Write notes | It needs to create or edit notes |
| Add entry / Delete | It needs to edit entries, delete, or restore from the recycle bin |
If you only want to query, enable query and statistics first. Enable note writes when needed. Write permissions can wait until you actually need them.
After tapping Generate token, the page shows the plaintext once and offers Copy complete MCP configuration. The token is shown only once. Copy it into the client configuration; do not post it in a group, a screenshot, or a public repository.
Existing tokens cannot have permissions added. To change permissions, revoke the old token and generate a new one.
Step 2: Choose your client setup
AnchorClients read configuration from different places, but they use the same token and the same MCP server.
| Client | Setup | Status |
|---|---|---|
| WorkBuddy | Plugins → MCP servers → Configure MCP, or user-level ~/.workbuddy/mcp.json | Supported |
| DeepSeek Harness | Cordis patch for @deepseek-ai/dsh-mcp-client | Supported |
| Claude Desktop | mcpServers in claude_desktop_config.json | Supported |
| Cursor | Settings → MCP, or the MCP configuration file | Supported |
| Lobster / OpenClaw | Lobster’s MCP / Skill settings | Supported |
| Doubao | Desktop Skills → New custom connector, fill in the form | Desktop supported; web and mobile require the desktop app |
This table is based on public documentation, the Doubao Desktop 2.32.6 interface, and in-app instructions as of October 24, 2026. Menu names may change after client updates; follow the actual interface.
Shared JSON: WorkBuddy, Claude Desktop, Cursor, OpenClaw
AnchorMost MCP-capable clients accept this mcpServers configuration:
{
"mcpServers": {
"fangcuntai": {
"command": "npx",
"args": ["-y", "@fangcuntai/fangcuntai-mcp"],
"env": {
"FANGCUNTAI_API": "https://api-service.fangcuntai.com",
"FANGCUNTAI_TOKEN": "hm_at_your_token"
}
}
}
}Replace hm_at_your_token with the full token generated in the app. The production API is https://api-service.fangcuntai.com, and the package is @fangcuntai/fangcuntai-mcp.
If the client asks for a complete configuration file and the file already contains other servers, add only the fangcuntai entry to the existing mcpServers. Do not overwrite the whole file.
Let the agent install it: WorkBuddy
AnchorWorkBuddy supports a user-level configuration at ~/.workbuddy/mcp.json; on Windows, %USERPROFILE%\.workbuddy\mcp.json. If WorkBuddy can read and write files, send it this prompt:
Please install the Fangcuntai MCP server. First back up the existing WorkBuddy user configuration at ~/.workbuddy/mcp.json (%USERPROFILE%\.workbuddy\mcp.json on Windows), then merge fangcuntai into mcpServers while keeping the other servers and without overwriting the whole file. Keep FANGCUNTAI_TOKEN as the placeholder hm_at_your_token; do not ask me for the real token. After saving, tell me the file path and where to replace the token. After I replace it, refresh the MCP status, confirm fangcuntai is connected, and list the available tools. If you cannot find the configuration file, tell me to paste it manually through Plugins → MCP servers → Configure MCP.
Configuration:
{
"mcpServers": {
"fangcuntai": {
"command": "npx",
"args": ["-y", "@fangcuntai/fangcuntai-mcp"],
"env": {
"FANGCUNTAI_API": "https://api-service.fangcuntai.com",
"FANGCUNTAI_TOKEN": "hm_at_your_token"
}
}
}
}After the agent writes the file, open it yourself, replace hm_at_your_token with the full token from the app, then ask it to refresh. This keeps the token out of the chat history. WorkBuddy also provides a visual entry: Plugins → MCP servers → Configure MCP. After saving, check whether the service status is green or red.
Let the agent install it: DeepSeek Harness
AnchorDeepSeek Harness does not read mcpServers JSON. It connects through @deepseek-ai/dsh-mcp-client, with configuration in a Cordis patch.
If DSH_HOME is set, the user patch is usually at $DSH_HOME/cordis.patch.yml; otherwise at ~/.dsh/cordis.patch.yml. Send Harness this prompt:
Please add the Fangcuntai MCP server to DeepSeek Harness. First back up the user patch file: use $DSH_HOME/cordis.patch.yml if DSH_HOME is set, otherwise ~/.dsh/cordis.patch.yml. Keep existing patches and append only the insert below; do not overwrite other configuration. Keep FANGCUNTAI_TOKEN as the placeholder hm_at_your_token; do not ask me for the real token. After saving, tell me the file path and where to replace the token. After I replace it, reload Harness and confirm that mcp__fangcuntai__* appears in the tool list. If the current version does not support this configuration or the write fails, tell me directly; do not pretend the installation succeeded.
Configuration:
- insert:
- id: mcp-fangcuntai
name: '@deepseek-ai/dsh-mcp-client'
config:
serverName: fangcuntai
transport: stdio
command: npx
args: ['-y', '@fangcuntai/fangcuntai-mcp']
env:
FANGCUNTAI_API: https://api-service.fangcuntai.com
FANGCUNTAI_TOKEN: hm_at_your_tokenReplace the token and reload. Harness is still in preview, so the configuration format may change. If the tool names are not mcp__fangcuntai__*, check the current version’s MCP documentation rather than following an old guide.
Doubao Desktop
AnchorDoubao Desktop supports custom connectors through a form, not a directly mergeable mcpServers file. The web and mobile versions direct you to the desktop app; this step can only be completed on a computer.
Open Doubao Desktop, go to Skills, and find New custom connector. Fill in:
| Field | Value |
|---|---|
| Server name | fangcuntai |
| Transport | STDIO |
| Command | npx |
| Arguments | -y, @fangcuntai/fangcuntai-mcp (two lines) |
| Environment variable | FANGCUNTAI_API=https://api-service.fangcuntai.com |
| Environment variable | FANGCUNTAI_TOKEN=hm_at_your_token |
Tap Save, return to the conversation, and confirm that fangcuntai appears in the tool list. The custom connector runs locally, so Node.js must be installed on this computer.
If you want Doubao to guide you field by field, send it the prompt below. It cannot create the connector in the interface for you; you still verify the values and tap save:
Please guide me through creating a custom connector in Doubao Desktop using these fields, and tell me where each one goes:
Server name: fangcuntai
Transport: STDIO
Command: npx
Arguments: -y, @fangcuntai/fangcuntai-mcp
Environment variable: FANGCUNTAI_API=https://api-service.fangcuntai.com
Environment variable: FANGCUNTAI_TOKEN=hm_at_your_token
After creation, remind me to save and return to the conversation to confirm that fangcuntai appears in the tool list. If the current version does not have New custom connector, tell me directly and do not pretend it succeeded.You can send this with the placeholder and avoid putting the real token into the chat. Replace hm_at_your_token only when you fill in the connector form.
Claude Desktop
AnchorOpen the Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Add fangcuntai to mcpServers, save, fully quit Claude Desktop, and restart it. After restarting, check whether the MCP tools loaded near the input box.
If Claude cannot find npx, Node may have been installed through nvm and the graphical app did not inherit the terminal environment. Run which npx in a terminal and put the absolute path in "command".
Cursor
AnchorOpen Cursor Settings → MCP, add an MCP server, and paste the complete JSON above. You can also edit Cursor’s MCP configuration file and reload the window.
Confirm that fangcuntai appears in the server list and the tools have loaded. Cursor’s menu location changes across versions; if you cannot find it, search for MCP in settings.
Lobster / OpenClaw
AnchorOpen Lobster’s MCP / Skill settings, create a server named fangcuntai, paste the complete configuration copied from the app, save, and restart or refresh MCP.
Clients that still cannot connect
AnchorCheck the Doubao version: the desktop app has custom connectors; the web and mobile versions do not and will direct you to the desktop app. Pure chat clients such as ChatGPT Web and Kimi Web are the same: if there is no MCP/connector entry and no local command execution, this guide does not apply.
For Coze or another platform with its own MCP management, follow that platform’s documentation. Its supported transport and local-command behavior must match Fangcuntai’s STDIO setup.
Step 3: Verify that it is connected
AnchorStart with read-only checks. Do not test writes first.
Open a new conversation in the client and ask:
- “List the families I have joined.”
- “How much did this month’s education category cost?”
The first should call list_my_families and return your families. The second should call a ledger query tool with a time and category range. Some clients display names such as mcp__fangcuntai__list_my_families; the namespace prefix is normal.
If it produces a plausible analysis without calling a tool, or the family names and amounts are clearly wrong, MCP is not connected. Do not use it to edit the ledger yet.
Understand the confirmation lock before writing
AnchorThe desktop assistant is locked by default. You cannot say “record this” and have it write directly into the official ledger.
A complete write usually looks like this:
- You request a write.
- The assistant requests an unlock; you explicitly agree.
- The assistant prepares a pending item and shows a summary with amount, category, date, and other fields.
- The write happens only after you confirm.
This flow prevents the assistant from mishearing a number or choosing the wrong category. The unlock expires after about 15 minutes, and the confirmation token is single-use.
The desktop assistant has no draft box and no auto-save: creating or editing an entry or note requires unlocking and confirming each write. After confirmation, it writes directly into official data and does not store it anywhere else first.
Posted transactions can be edited, but only entries added within the last month. Deletion moves an item to the recycle bin rather than removing it permanently. Desktop writes are marked with the desktop-assistant source and can be reviewed in the app.
Common questions
Anchornpx: command not found
Node.js is not installed, or the client did not inherit the terminal environment. Install Node.js 18 or later and restart the client. With nvm, put the absolute path from which npx into the configuration.
The service shows a connection failure, or fangcuntai is missing from the tool list
Check three things: the JSON has a complete mcpServers structure; the token has been replaced; npx starts in a terminal. WorkBuddy shows green or red status on its MCP page; Harness shows whether mcp__fangcuntai__* is in the tool list.
The token is invalid, revoked, or expired
Return to Connect desktop assistant in the app, revoke the old token, and generate a new one. Revoking a token immediately disconnects every client using it.
A permission error appears
Check which capabilities were selected when the token was generated. Existing tokens cannot add permissions; generate a new token. Also confirm that the current account has the corresponding role permission in this family.
Claude Desktop will not start on Windows
Try changing the command to cmd and the arguments to /c npx -y @fangcuntai/fangcuntai-mcp, or enter the absolute path to npx.cmd. Escape paths containing spaces correctly in JSON.
It answers, but the numbers are wrong
Ask “which tool did you call?” No tool call means it is guessing. Then check the family and ledger bound to the token, and state the family and ledger names explicitly in the conversation if needed.
Can I use Doubao?
Yes, but only Doubao Desktop. On the Skills page, open New custom connector, choose STDIO, enter npx, add -y and @fangcuntai/fangcuntai-mcp as arguments, and fill in the two environment variables. The web and mobile versions direct you to desktop. Do not paste mcpServers JSON; that format does not work in Doubao’s form.
Security boundaries
AnchorThe token is the key to this ledger. Do not put it in a public repository, screenshot, chat history, or web URL. If you suspect a leak, revoke it in the app; connected clients disconnect immediately.
Start with read-only permissions. Once query results are correct, enable note writes or ledger writes as needed. Read the summary before every write.
The Fangcuntai MCP service calls only the Fangcuntai API and does not connect directly to the database. Whether the client can read other files or run other commands is controlled by the client’s own permissions; that is separate from this token.
Resources
Anchor- npm package:
@fangcuntai/fangcuntai-mcp - WorkBuddy MCP guide: https://www.workbuddy.cn/docs/workbuddy/From-Beginner-to-Expert-Guide/Function-Description/MCP-Guide
- DeepSeek Harness MCP guide: https://deepseek-harness.github.io/deepseek-harness/guide/mcp-memory
For how Xiaojiashi and the desktop assistant work together, see What Xiaojiashi can do: ledger, notes, and household work. For the ledger itself, see How to start a family ledger: record the big items first, then talk about consistency.
