SORACOM MCP服务器
SORACOM MCP服务器是 模型上下文协议(MCP) 提供与SORACOM API无缝集成(部分)的服务器。
安装
1.构建Docker镜像
git clone {THIS_REPOSITORY_URL}
cd soracom-mcp-server
docker build -t soracom-mcp-server:latest .2.设置VSCode
{
"mcp": {
"inputs": [
{
"type": "promptString",
"id": "soracom_auth_key",
"description": "SORACOM Auth Key",
"password": true
},
{
"type": "promptString",
"id": "soracom_auth_key_id",
"description": "SORACOM Auth Key ID",
"password": true
}
],
"servers": {
"soracom": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SORACOM_AUTH_KEY",
"-e",
"SORACOM_AUTH_KEY_ID",
"soracom-mcp-server:latest"
],
"env": {
"SORACOM_AUTH_KEY": "${input:soracom_auth_key}",
"SORACOM_AUTH_KEY_ID": "${input:soracom_auth_key_id}"
}
}
}
}
}更多关于在VS Code中使用MCP服务器工具的信息 代理模式文档.
工具
提供的工具如下。这些工具支持一些SORACOM API,主要用于检索信息。 调用所有API的服务类(截至2025年4月15日)位于 src/已生成,这样您就可以参考该文件 src/处理程序/工具映射 添加更多。
计费工具
- getBillingHistory:按月检索过去已确认的计费历史记录。
- getBilling:检索特定月份的已确认账单。
- getBillingPerDay:检索特定月份的每日账单。
- exportBilling:将过去的账单详细信息CSV导出到存储。
- 获取最新账单:检索当月的最新账单。
- exportLatestBilling:将最新的账单详细信息CSV导出到存储中。
- 获取账单项目的账单摘要:按账单项目检索过去4个月的账单摘要。
- 获取模拟人生账单摘要:按SIM卡检索过去4个月的账单摘要。
日志工具
- getLogs:获取目标的日志。
订购工具
- list订单:列出所有订单。
- getOrder:获取订单的详细信息。
- listOrdered订阅用户:按特定顺序列出订阅者。
- 产品列表:检索可用产品列表。
- 列表可用折扣:检索可用的长期折扣列表。
SIM卡工具
- listSims:列出所有SIM卡。
- getSim:获取SIM卡的详细信息。
索莱莱工具
- 列表:检索Soralets列表。
- Getsoralet:检索Soralet的详细信息。
- getSoraletLogs:检索Soralet的日志。
- testSoralet:用参数测试Soralet。
- list软件版本:检索Soralet版本列表。
订阅者工具
- 列表订阅者:列出所有订阅者。
- getSubscriber:获取订阅者的详细信息。
SoraCam工具
- listSoraCam设备:检索SoraCam设备列表。
- Getsoracamdevice:检索SoraCam设备的详细信息。
- getSoraCamDeviceAtomCam设置运动:检索运动检测设置。
- getSoraCamDeviceAtomCam设置运动灵敏度:检索运动检测灵敏度设置。
- getSoraCamDeviceAtomCam设置夜视:检索夜视模式设置。
- getSoraCamDeviceAtomCam设置质量:检索图像质量设置。
- getSoraCamDeviceAtomCam设置旋转:检索图像旋转设置。
- getSoraCamDeviceAtomCam设置声音:检索声音检测设置。
- getSoraCamDeviceAtomCam设置声音灵敏度:检索声音检测灵敏度设置。
- getSoraCamDeviceAtomCam设置状态灯:检索状态指示灯设置。
- getSoraCamDeviceAtomCam设置时间戳:检索时间戳显示设置。
- listSoraCamDeviceEvents for Device:检索特定SoraCam设备的事件列表。
- Getsoracamdeviceexport用法:检索SoraCam设备的导出使用情况。
- listSoraCamDevice图像导出设备:检索特定SoraCam设备的图像导出状态列表。
- exportSoraCamDevice已录制图像:从SoraCam设备的录制视频中导出静止图像。
- 获取soracamdevice图像:检索SoraCam设备的图像导出状态。
- getSoraCamDeviceName:检索SoraCam设备的名称。
- getSoraCamDevicePowerState:检索SoraCam设备的电源状态。
- listSoraCam设备记录和事件:检索SoraCam设备的录制时段和事件列表。
- Getsoracamdevicestrians视频:检索SoraCam设备的流媒体视频信息。
- listSoraCamDevice视频导出设备:检索特定SoraCam设备的视频导出状态列表。
- Getsoracam设备视频:检索SoraCam设备的视频导出状态。
- exportSoraCamDevice录制视频:导出SoraCam设备的录制视频。
- 列表SoraCam设备AtomCam固件更新:检索可用于固件更新的SoraCam设备列表。
- listSoraCamDevice事件:检索所有SoraCam设备的事件列表。
- listSoraCamDevice图像导出:检索所有SoraCam设备的图像导出状态列表。
- listSoraCamDevice视频导出:检索所有SoraCam设备的视频导出状态列表。
- listSoraCamLicense包:检索SoraCam的许可证包列表。
DataEntry服务工具
- getDataEntries:从特定资源检索数据条目列表。
- getDataEntry:通过资源ID和时间戳检索特定数据条目的详细信息。
- list数据源资源:列出操作员的所有数据源资源。
