mcp-max-price
Version:
MCP tool for querying Max streaming service prices by country
67 lines (45 loc) • 1.14 kB
Markdown
一个用于查询Max流媒体服务在不同国家/地区价格的MCP工具。
```bash
npm install -g mcp-max-price
```
无需安装,直接使用npx命令运行:
```bash
npx mcp-max-price
```
在你的MCP客户端配置中,可以这样使用:
```javascript
// 配置示例
const ENV = {
MCP_CONFIG: {
"max-price": {
type: "stdio",
command: "npx",
args: ["mcp-max-price"],
env: { LOG_LEVEL: "info" }
}
}
};
// 初始化MCP客户端
await initializeMcp();
// 获取Max价格
const mcp = await getMcp();
const result = await mcp["max-price"]["get-max-price"]({ country_code: "US" });
console.log(result);
```
获取指定国家代码的Max流媒体服务价格信息。
**参数:**
- `country_code`: 两位国家代码(例如:SG, US, HK)
**返回:**
- 文本格式的价格信息摘要
- JSON格式的详细价格数据
- `LOG_LEVEL`: 设置日志级别(默认:info)。可选值:error, warn, info, debug
MIT