VW

vinnividivicci/wave_mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

23 stars 9 forks 质量 70 趋势 0MIT

Wave 的 MCP 服务器

概览

一个模型上下文协议(MCP)服务器,集成了Claude与波动会计,实现费用跟踪和收入交易生成。 - 📸 : 自动从收据文本提取并创建费用 - 💰 : 从支付数据创建收入交易 - 🏢 : 无缝管理多个 Wave 业务 - 🔍 : 查找现有供应商和客户 - 📊 : 通过适当账户列出和分类交易 - 🔄 : 直接连接 Wave 的 GraphQL API - Python 3.8 或更高版本 - 带 API 访问权限的 Wave Business 账户 - Claude 桌面应用程序 - Wave OAuth2 访问令牌 1. 遵循本指南:https://developer.waveapps.com/hc/en-us/articles/360020948171-Create-a-Wave-Account-and-Test-Businesses#application : Wave API 访问可能需要批准。请查看 Wave 当前的开发者项目状态。 将服务器添加到您的Claude桌面配置中: : ~/Library/Application Support/Claude/claude_desktop_config.json : %APPDATA%\Claude\claude_desktop_config.

概述(AI 翻译)

一个模型上下文协议(MCP)服务器,集成了Claude与波动会计,实现费用跟踪和收入交易生成。

特色

  • 📸 从收据创建费用:自动从收据文本提取并创建费用
  • 💰 收益交易创建:从支付数据创建收益交易
  • 🏢 多业务支持:无缝管理多家Wave企业
  • 🔍 供应商与客户搜索:查找现有供应商和客户
  • 📊 账户管理:列出并分类与适当账户的交易
  • 🔄 实时集成:直接连接Wave的GraphQL API

先修条件

  • Python 3.8 或更高版本
  • 带API访问权限的Wave商务账户
  • Claude桌面应用程序
  • Wave OAuth2访问令牌

安装

  1. 克隆仓库:

  2. 安装依赖:

  3. 创建一个 .env 文件:

获取你的波浪通行令牌

  1. 遵循本指南:https://developer.waveapps.com/hc/en-us/articles/360020948171-Create-a-Wave-Account-and-Test-Businesses#application

注意:Wave API访问可能需要批准。请查看Wave当前的开发者项目状态。

配置

Claude桌面设置

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Wave Accounting MCP Server

A Model Context Protocol (MCP) server that integrates Claude with Wave Accounting to automate expense tracking and income transaction creation.

Features

  • 📸 Expense Creation from Receipts: Automatically extract and create expenses from receipt text
  • 💰 Income Transaction Creation: Create income transactions from payment data
  • 🏢 Multi-Business Support: Manage multiple Wave businesses seamlessly
  • 🔍 Vendor & Customer Search: Find existing vendors and customers
  • 📊 Account Management: List and categorize transactions with proper accounts
  • 🔄 Real-time Integration: Direct connection to Wave’s GraphQL API

Prerequisites

  • Python 3.8 or higher
  • Wave Business account with API access
  • Claude Desktop application
  • Wave OAuth2 access token

Installation

  1. Clone the repository:
git clone https://github.com/vinnividivicci/wave_mcp.git
cd wave_mcp
  1. Install dependencies:
pip install -r requirements.txt
  1. Create a .env file:
WAVE_ACCESS_TOKEN=your_wave_oauth2_access_token_here

Getting Your Wave Access Token

  1. Follow this guide: https://developer.waveapps.com/hc/en-us/articles/360020948171-Create-a-Wave-Account-and-Test-Businesses#application

Note: Wave API access may require approval. Check Wave’s current developer program status.

Configuration

Claude Desktop Setup

Add the server to your Claude Desktop configuration:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "wave-accounting": {
      "command": "python",
      "args": ["/absolute/path/to/wave_mcp/mcp_server.py"],
      "env": {
        "WAVE_ACCESS_TOKEN": "your_wave_oauth2_access_token_here"
      }
    }
  }
}

Restart Claude Desktop after saving the configuration.

Usage Examples

Creating an Expense from a Receipt

I have a receipt from Office Depot for $45.99 dated March 15, 2024. 
It's for office supplies - printer paper and pens.

Creating Income from Payment

Received payment of $1,500 from ABC Company on March 20, 2024 
for consulting services invoice #1234.

Listing Available Accounts

Show me my expense accounts in Wave.

Setting Active Business (Multi-Business Accounts)

List my Wave businesses and set the active one.

Available MCP Tools

Expense Management

  • create_expense_from_receipt: Create expenses from receipt text
  • search_vendor: Search for existing vendors
  • get_expense_accounts: List available expense accounts

Income Management

  • create_income_from_payment: Create income transactions
  • search_customer: Search for existing customers
  • get_income_accounts: List available income accounts

Business Management

  • set_business: Set the active business
  • list_businesses: List all available businesses
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "wave-accounting": { "command": "python", "args": ["/absolute/path/to/wave_mcp/mcp_server.py"], "env": { "WAVE_ACCESS_TOKEN": "your_wave_oauth2_access_token_here" } } } }