# 安装 com.billingserv/mcp

- 类型: MCP 工具
- 说明: MCP server for BillingServ: customers, invoices, orders, packages, and revenue reports.
- 仓库: https://github.com/billingserv/mcp

## 方式一 · 一键代装（复制提示词让 AI 代劳）

### Claude Code
```
请帮我安装 askskill 上的 "com.billingserv/mcp" MCP 服务：
执行：claude mcp add 'com-billingserv-mcp' -- npx -y @billingserv/mcp-server
```

### Codex
```
请帮我安装 askskill 上的 "com.billingserv/mcp" MCP 服务：
在 ~/.codex/config.toml 中添加：
[mcp_servers.com-billingserv-mcp]
command = "npx"
args = ["-y","@billingserv/mcp-server"]
然后重启 Codex 生效
```

### Cursor
```
请帮我安装 askskill 上的 "com.billingserv/mcp" MCP 服务：
在 .cursor/mcp.json 的 "mcpServers" 中添加：
"com-billingserv-mcp": { "command": "npx", "args": ["-y","@billingserv/mcp-server"] }
然后在 Cursor 设置 > MCP 中启用
```

## 方式二 · 命令行安装（原生命令与配置）

### Claude Code
```bash
claude mcp add --env BILLINGSERV_API_BASE_URL=YOUR_VALUE --env BILLINGSERV_API_KEY=YOUR_VALUE --env BILLINGSERV_TIMEOUT_MS=YOUR_VALUE --transport stdio com-billingserv-mcp -- npx -y @billingserv/mcp-server
```
需要环境变量：BILLINGSERV_API_BASE_URL, BILLINGSERV_API_KEY, BILLINGSERV_TIMEOUT_MS

### Codex
```bash
codex mcp add --env BILLINGSERV_API_BASE_URL=YOUR_VALUE --env BILLINGSERV_API_KEY=YOUR_VALUE --env BILLINGSERV_TIMEOUT_MS=YOUR_VALUE com-billingserv-mcp -- npx -y @billingserv/mcp-server
```
配置文件 ~/.codex/config.toml：
```toml
[mcp_servers.com-billingserv-mcp]
command = "npx"
args = ["-y","@billingserv/mcp-server"]

[mcp_servers.com-billingserv-mcp.env]
BILLINGSERV_API_BASE_URL = "YOUR_VALUE"
BILLINGSERV_API_KEY = "YOUR_VALUE"
BILLINGSERV_TIMEOUT_MS = "YOUR_VALUE"
```
需要环境变量：BILLINGSERV_API_BASE_URL, BILLINGSERV_API_KEY, BILLINGSERV_TIMEOUT_MS

### Cursor
配置文件 .cursor/mcp.json：
```json
{
  "mcpServers": {
    "com-billingserv-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@billingserv/mcp-server"
      ],
      "env": {
        "BILLINGSERV_API_BASE_URL": "YOUR_VALUE",
        "BILLINGSERV_API_KEY": "YOUR_VALUE",
        "BILLINGSERV_TIMEOUT_MS": "YOUR_VALUE"
      }
    }
  }
}
```
一键安装：cursor://anysphere.cursor-deeplink/mcp/install?name=com-billingserv-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBiaWxsaW5nc2Vydi9tY3Atc2VydmVyIl0sImVudiI6eyJCSUxMSU5HU0VSVl9BUElfQkFTRV9VUkwiOiJZT1VSX1ZBTFVFIiwiQklMTElOR1NFUlZfQVBJX0tFWSI6IllPVVJfVkFMVUUiLCJCSUxMSU5HU0VSVl9USU1FT1VUX01TIjoiWU9VUl9WQUxVRSJ9fQ
需要环境变量：BILLINGSERV_API_BASE_URL, BILLINGSERV_API_KEY, BILLINGSERV_TIMEOUT_MS
