fliggy-invoice-mcp-server
v1.0.0
Published
Fliggy flight ticket reimbursement MCP Server for Claude Code — invoice issuing, voiding, reissuing, cancellation and knowledge Q&A
Downloads
25
Maintainers
Readme
fliggy-invoice-mcp-server
飞猪机票报销凭证 MCP Server,支持 Claude Code 安装后直接进行发票开具、作废重开、取消等操作,以及报销领域的知识问答。
Quick Start
无需安装,直接在 Claude Code 中使用:
claude mcp add fliggy-invoice -- npx fliggy-invoice-mcp-server或者全局安装后使用:
npm install -g fliggy-invoice-mcp-server
claude mcp add fliggy-invoice fliggy-invoice-mcpFeatures
Tools (5 个发票工具)
| 工具名 | 功能 |
|--------|------|
| query_invoice_tool | 查询订单的报销凭证状态 |
| submit_all_invoice_tool | 统一开具发票 |
| submit_separate_invoice_tool | 按乘机人分开开具发票 |
| submit_reopen_invoice_tool | 作废已开具发票并重新开具 |
| cancel_invoice_tool | 取消正在开具中的发票 |
Resources (5 份业务知识文档)
注册为 MCP Resource,Claude 可按需读取报销业务的完整流程规则。
Prompts (1 个问答模板)
invoice-qa 模板自动注入全部知识文档,支持报销领域的自然语言问答。
Demo 测试
当前版本使用 mock 数据,以下订单号可用于测试:
| 订单号 | 场景 |
|--------|------|
| ORDER_001 | 正常开票(需提供抬头) |
| ORDER_002 | 正常开票(已有抬头) |
| ORDER_003 | 作废重开 |
| ORDER_004 | 取消开票 |
| ORDER_005 | 异常状态 |
| ORDER_006 | 不支持电子行程单 |
调试
使用 MCP Inspector 可视化调试:
npx @modelcontextprotocol/inspector node node_modules/.bin/fliggy-invoice-mcpLicense
MIT
