个人财务CLI工具

一个生产就绪的命令行界面,用于管理PocketSmith个人财务预测API,包括账户、交易、预算、类别和财务预测。

  • by ktmcp-cli
  • JavaScript
  • 本地部署
  • 更新于
在 GitHub 查看 ktmcp-cli/pocketsmith

使用说明

“六个月前,每个人都在谈论MCP。我当时想,拧紧MCP。每个MCP作为CLI都会更好。”

— 彼得·斯坦伯格OpenClaw创始人 在YouTube上观看(~2:39:00) | 莱克斯·弗里德曼播客#491

PocketSmith CLI

生产就绪的命令行界面 PocketSmith 个人理财预测API。直接从您的终端管理账户、交易、预算、类别和财务预测。

免责声明:这是一个非官方的CLI工具,不隶属于PocketSmith Limited,也不受PocketSmith Limited的认可或支持。

特性

  • 用户 --获取当前用户信息和个人资料
  • 账户 --列出并检查所有财务账户
  • 交易 --通过过滤列出、获取和创建交易
  • 分类 --浏览支出/收入类别
  • 预算 --查看预算分析和跟踪
  • 储蓄 --查看储蓄目标和余额
  • 预测 --访问财务预测数据
  • JSON输出 --所有命令支持 --json 用于脚本和管道
  • 彩色输出 --用粉笔清洁、可读的终端输出

为什么选择CLI>MCP

MCP服务器是复杂的、有状态的,需要一个正在运行的服务器进程。CLI是:

  • 更简单 --只是一个你直接调用的二进制文件
  • 可组合 --管道输出至 jq, grep, awk,和其他工具
  • 可编写脚本的 --在shell脚本、CI/CD管道、cron作业中使用
  • 可调试 --看看到底发生了什么 --json 旗帜
  • AI友好 --AI代理可以像MCP一样轻松地调用CLIs,开销更少

安装

npm install -g @ktmcp-cli/pocketsmith

身份验证设置

PocketSmith使用API密钥身份验证。从PocketSmith帐户设置中获取密钥。

1.获取API密钥

  1. 登录到 pocketsmith.com
  2. 首选 账户设置 > 管理API密钥
  3. 创建新的开发人员密钥

2.配置CLI

pocketsmith config set --api-key YOUR_API_KEY

3.验证

pocketsmith user me

命令

配置

# Set API key
pocketsmith config set --api-key <key>

# Show current config
pocketsmith config show

用户

# Get current user info
pocketsmith user me
pocketsmith user me --json

账户

# List all accounts
pocketsmith accounts list

# Get account details
pocketsmith accounts get <account-id>

交易

# List transactions for an account
pocketsmith transactions list <account-id>

# Filter by date
pocketsmith transactions list <account-id> --start-date 2024-01-01 --end-date 2024-01-31

# Search transactions
pocketsmith transactions list <account-id> --search "grocery"

# Get a specific transaction
pocketsmith transactions get <transaction-id>

# Create a transaction
pocketsmith transactions create <account-id> \
  --date 2024-01-15 \
  --amount -42.50 \
  --payee "Whole Foods"

分类

# List all categories
pocketsmith categories list

预算

# View budget analysis
pocketsmith budgets list

储蓄

# View savings goals
pocketsmith savings list

预测

# Show financial forecast
pocketsmith forecast show

JSON输出

所有命令支持 --json 对于机器可读输出:

# Get all accounts as JSON
pocketsmith accounts list --json

# Pipe to jq for filtering
pocketsmith accounts list --json | jq '.[] | select(.type == "bank") | {id: .id, name: .title, balance: .current_balance}'

# Get transactions as JSON
pocketsmith transactions list <account-id> --json | jq '.[] | select(.amount < 0) | {date: .date, payee: .payee, amount: .amount}'

贡献

欢迎在 github/ktmcp-cli/hocketsmith.

许可证

麻省理工学院——见 许可证 了解详情。


部分 KTMCP-CLI 项目——用简单、可组合的CLI替换MCP。


支持KTMCP

如果您发现此CLI有用,我们将非常感谢您的支持!分享您的经验:

  • 红迪
  • 推特/X
  • 黑客新闻

激励: 能够证明他们的支持/倡导有助于推进KTMCP的用户将优先考虑他们的功能请求和问题。

请注意,这些是真实的账户和真实的社区。真实的提及和真实的推荐会有很长的路要走!

支持这个项目

如果您发现此CLI有用,我们将感谢Reddit、Twitter、Hacker News或Moltbook的支持。请注意,这些是真实的社区账户。能够证明其支持有助于推进KTMCP的贡献者将优先考虑其PR和功能请求。