这是一个基于 Rust 的原生财务追踪平台,借助 SQLite 存储数据,并由大语言模型(LLM)驱动。它能让你通过自然对话记录支出、分析消费习惯和计算税务,且所有信息都本地存储,无需依赖云端服务。
git clone https://github.com/Rayato159/your-money-left-the-chat
cd your-money-left-the-chat
cargo install diesel_cli --no-default-features --features sqlite
⚠️ 重要提示
如果遇到找不到
sqlite3.lib
的错误,请先在本地安装sqlite3
。
在文件夹 ./src/infrastructure/database/sqlite_data/
中创建一个名为 database.db
的文件。
可以使用 Makefile:
make migrate-up
或者使用原始的 cargo 命令:
diesel migrate run
使用 Makefile:
make build-release
或者使用原始的 cargo 命令:
cargo build --release --example your_money_left_the_chat
如果你使用的是 Claude Desktop,请找到 claude_desktop_config.json
文件,然后添加以下内容:
{
"mcpServers": {
"money": {
"command": "路径/your-money-left-the-chat/target/release/examples/your_money_left_the_chat.exe",
"args": [
"路径/your-money-left-the-chat/src/infrastructure/database/sqlite_data/database.db"
]
}
}
}
{
"mcpServers": {
"money": {
"command": "路径/your-money-left-the-chat/target/release/examples/your_money_left_the_chat",
"args": [
"路径/your-money-left-the-chat/src/infrastructure/database/sqlite_data/database.db"
]
}
}
}
现在你可以与 Claude 或 Ollama 对话,管理你的财务了:
今天我在 KFC 花了 129 泰铢。
系统会自动记录这笔支出并提供相应的财务摘要。
属性 | 详情 |
---|---|
后端 | MCP Rust SDK + SQLite + Diesel |
AI 接口 | Claude / Ollama(通过 mcp-cli ) |