About uMouse MCP
uMouse MCP is an MCP server published by SonicloudTech in the Other category: hardware mouse MCP server for AI agents on Windows x64. USB HID control and voice dictation; requires compatible uMouse hardware and firmware. 面向 AI 智能体的硬件鼠标 MCP:USB HID 控制与语音听写,需要兼容的 uMouse 设备与固件。. Conduid read 28 tools from its source: umouse_ack_voice, umouse_audio_record, umouse_button, umouse_cursor_click, umouse_cursor_click_at, umouse_cursor_drag and 22 more. No package is published for it, so it installs from a source checkout.
The repository has 1.2K stars and 2 forks, is licensed MIT, and its last commit was on 31 Oct 2026. The latest release is v0.1.1 (23 Oct 2026): uMouse MCPB 0.1.1 / MCPB 封装发布 This release adds an MCPB installation package for compatible Windows MCP clients and the metadata/workflow for the official MCP Registry. The release before it was v0.1.0 (20 Oct 2026). It passes all 5 static checks Conduid ran on the repository.
Install
git clone https://github.com/SonicloudTech/mouse-mcpTools (28)
umouse_ack_voice按 event_id 确认语音消息已经处理或已被目标宿主接受。幂等;未完成转写的消息不可确认。仅改变收件箱状态,不执行语音内容。| Parameter | Type | Description |
|---|---|---|
| event_id * | string |
umouse_audio_record设备录音(16kHz/16bit/mono,WAV 落盘返回路径,不进对话流)。【推荐】语音键自动采集默认开启:让用户按住语音键说话、松开即可,等 speechCaptured 事件(umouse_wait_events,payload 含 WAV 路径),无需本工具编排。本工具用于手动场景:action=start 开始(用于会议等持续音频),action=stop 收尾(若会话已被语音键松开/超时自动收尾,返回 file=最近完成的录音而非错误),action=status 查看进行中会话。| Parameter | Type | Description |
|---|---|---|
| action * | string | |
| device_id | string | 录音绑定的设备 SN(多台在线必填)。${DEVICE_ID_DOC} |
| max_seconds | number | 本次录音上限秒数(默认取服务配置) |
umouse_button按住/松开鼠标按键(拖拽与长按的原语):action=press 按住 → umouse_cursor_move 移动 → action=release 松开。状态型协议:press 后务必 release(服务端空闲 3s 也会自动发复位帧兜底)。注意:press/move/release 分多轮调用的间隔若超过 3s 会被空闲复位打断——拖拽请改用单次调用的 umouse_cursor_drag。${INJECT_NOTE}| Parameter | Type | Description |
|---|---|---|
| action * | string | |
| button * | string | |
| device_id | string | 目标设备 SN。单台在线可省略;多台在线必须显式指定(缺省时命令会被 SDK 拒绝)。识别超时的临时身份(usb-xxxx / ble-<mac>)仅本次连接会话内稳定,不要持久化。 |
umouse_cursor_click点击鼠标按键:按下→抬起。count 为连击次数(双击传 2,上限 5)。拖拽使用单次 umouse_cursor_drag。${INJECT_NOTE}| Parameter | Type | Description |
|---|---|---|
| button * | string | 左/右/中键 |
| count | number | 连击次数(双击=2) |
| device_id | string | 目标设备 SN。单台在线可省略;多台在线必须显式指定(缺省时命令会被 SDK 拒绝)。识别超时的临时身份(usb-xxxx / ble-<mac>)仅本次连接会话内稳定,不要持久化。 |
umouse_cursor_click_at精准点击:闭环定位到 (x,y) 后点击;定位未收敛不点击。序列在服务内串行,但不能阻止外部鼠标输入或设备延迟。配合截图坐标直击目标(图标/按钮中心)。count 为连击次数(双击=2)。${INJECT_NOTE}| Parameter | Type | Description |
|---|---|---|
| button | string | |
| count | number | 连击次数(双击=2) |
| device_id | string | 目标设备 SN。单台在线可省略;多台在线必须显式指定(缺省时命令会被 SDK 拒绝)。识别超时的临时身份(usb-xxxx / ble-<mac>)仅本次连接会话内稳定,不要持久化。 |
| tol_px | number | 定位收敛容差(像素,默认 3) |
| x * | number | 目标 X(虚拟屏幕像素,截图坐标) |
| y * | number | 目标 Y(虚拟屏幕像素,截图坐标) |
umouse_cursor_drag原子拖拽:单次调用内完成 按住`button`(默认左键)→ 移动 dx/dy → 松开。不受 agent 分轮延迟影响(分轮 press/move/release 超过 3s 会被空闲复位打断)。${INJECT_NOTE}| Parameter | Type | Description |
|---|---|---|
| button | string | 拖拽按住的按键 |
| device_id | string | 目标设备 SN。单台在线可省略;多台在线必须显式指定(缺省时命令会被 SDK 拒绝)。识别超时的临时身份(usb-xxxx / ble-<mac>)仅本次连接会话内稳定,不要持久化。 |
| dx * | number | X 轴相对位移(正=右) |
| dy * | number | Y 轴相对位移(正=下) |
umouse_cursor_move相对移动光标:dx/dy 为相对位移(正=右/下,像素≈1 单位)。大位移自动拆帧连发(单帧 int8 上限 ±127)。拖拽使用单次 umouse_cursor_drag,避免分轮调用被空闲复位打断。${INJECT_NOTE}| Parameter | Type | Description |
|---|---|---|
| device_id | string | 目标设备 SN。单台在线可省略;多台在线必须显式指定(缺省时命令会被 SDK 拒绝)。识别超时的临时身份(usb-xxxx / ble-<mac>)仅本次连接会话内稳定,不要持久化。 |
| dx * | number | X 轴相对位移(正=右) |
| dy * | number | Y 轴相对位移(正=下) |
umouse_cursor_move_to闭环绝对定位:把光标移动到虚拟屏幕坐标 (x,y)(即截图像素坐标,主屏左上角为 0,0)。内部单帧发送后等待光标位置变化再修正(每帧反馈默认最多等 5s(UMSDK_INJECT_FEEDBACK_MS 可调),总定位最多 20s、15 帧),降低设备延迟导致的误判和过冲。返回 {ok, iterations, final:{x,y}, residual:{dx,dy}};无反馈即停止,不重发;超时帧仍可能迟到——先等 10-20s 观察再决定重试。测试期间不要手动移动鼠标。${INJECT_NOTE}| Parameter | Type | Description |
|---|---|---|
| device_id | string | 目标设备 SN。单台在线可省略;多台在线必须显式指定(缺省时命令会被 SDK 拒绝)。识别超时的临时身份(usb-xxxx / ble-<mac>)仅本次连接会话内稳定,不要持久化。 |
| tol_px | number | 收敛容差(像素,默认 3) |
| x * | number | 目标 X(虚拟屏幕像素,截图坐标) |
| y * | number | 目标 Y(虚拟屏幕像素,截图坐标) |
umouse_cursor_scroll滚动滚轮:amount 为格数(正=向上,负=向下),|amount|>127 自动拆帧。${INJECT_NOTE}| Parameter | Type | Description |
|---|---|---|
| amount * | number | 滚轮格数(正=向上) |
| device_id | string | 目标设备 SN。单台在线可省略;多台在线必须显式指定(缺省时命令会被 SDK 拒绝)。识别超时的临时身份(usb-xxxx / ble-<mac>)仅本次连接会话内稳定,不要持久化。 |
umouse_get_capabilities查询设备能力(voice / mouse_control / keyboard_control)与当前可执行状态:每台设备返回能力声明的 support、来源(当前 product-default/test-profile;hardware-info 仅预留,尚无硬件上报接线)、连接代次与在线状态,以及因此被隐藏的工具和原因。能力未声明(unknown)的操作会被执行层拒绝——注入工具只对声明 supported 的设备开放(可用 UMSDK_TEST_CAPS 声明测试能力)。| Parameter | Type | Description |
|---|---|---|
| device_id | string | 目标设备 SN;省略 = 全部已知设备。${DEVICE_ID_DOC} |
umouse_get_events非阻塞拉取自上次游标以来的设备事件。返回 {events:[{seq,ts,deviceId,type,payload}], nextSince, buffer}。务必把返回的 nextSince 作为下次调用的 since 续读(seq 严格递增,不重放)。可用 type:${eventTypes(bridge).join(' | ')}。keyEvent payload={key: speech|translation|m|ai|capture|raw, action: down|up|hold|click, index(M 键序号)};speechCaptured payload={path(WAV), durationMs, bytes, autoStopped}。| Parameter | Type | Description |
|---|---|---|
| limit | number | 本次最多返回条数 |
| since | number | 上次返回的 nextSince;首次传 0 |
| types | array | 按 type 过滤(如 ["keyEvent"]) |
umouse_key_release_all受限清理:仅释放本进程此前按下的按键/修饰键通道(未持有任何通道时为无帧幂等操作,不会向仅语音设备发零帧)。正常无需调用(点按类工具自动释放、空闲 3s 兜底);异常恢复/中止组合操作时使用。| Parameter | Type | Description |
|---|---|---|
| device_id | string | 目标设备 SN。单台在线可省略;多台在线必须显式指定(缺省时命令会被 SDK 拒绝)。识别超时的临时身份(usb-xxxx / ble-<mac>)仅本次连接会话内稳定,不要持久化。 |
umouse_key_tap键盘组合键点按(固件反向控制 0xF1,标准 HID 报文):mods 为修饰键,keys 为 HID Usage ID 数组(≤6 个)。常用 Usage ID(hex):0x04~0x1D=a~z(字母序号 = ASCII-93)、0x1E~0x27=1~0、0x28=Enter、0x29=Esc、0x2A=Backspace、0x2C=Space、0x4F~0x52=方向键 右/左/下/上;符号键与完整表见 HID Usage Tables Keyboard/Keypad Page。自动按下→抬起。打长文本不建议逐键调用(中文/文本输入请走语音识别链路)。${INJECT_NOTE}| Parameter | Type | Description |
|---|---|---|
| device_id | string | 目标设备 SN。单台在线可省略;多台在线必须显式指定(缺省时命令会被 SDK 拒绝)。识别超时的临时身份(usb-xxxx / ble-<mac>)仅本次连接会话内稳定,不要持久化。 |
| keys * | array | HID Usage ID 数组(如 [4]=a) |
| mods | array | 修饰键:ctrl/shift/alt/gui(win/cmd) |
umouse_list_devices枚举当前在线的声云智能鼠标:[{id(SN), connMode(USB/BLE), battery(%), status(normal/meeting), lastSeen}]。umouse_reconfigure修改须在 SDK 启动前锁定的配置并受控重启会话(工作模式/USB/BLE 识别标识/设备上限/语音键自动录音)。注意:重启会断开所有在线设备(事件缓冲保留,设备重连后自动恢复)。一般保持环境变量配置不变,仅在接入非默认设备时使用。| Parameter | Type | Description |
|---|---|---|
| ble | object | 覆盖蓝牙识别标识;null = 恢复生产默认 |
| debug | number | SDK 内部日志级别 |
| device_limit | number | 同型号设备上限(默认 4) |
| speech_auto_record | boolean | 语音键自动录音开关(默认开启;关闭后改用 umouse_audio_record 手动模式) |
| usb | object | 厂商 ID(0x 十进制或十六进制均可) |
| work_mode | string | 工作模式,v1 仅 FULL |
umouse_set_audio_source指定语音音频源设备(多台在线时语音识别会话应锁定单源):设置后仅该设备音频被采集录音,其它设备在 SDK 层静音。不传 device_id = 恢复默认先到先得策略。语音会话进行中被仲裁拒绝。| Parameter | Type | Description |
|---|---|---|
| device_id | string | 目标设备 SN;省略/空 = 恢复默认策略 |
umouse_set_channel_pref设置通道偏好(运行时可切,切换瞬间断开当前通道重新探测):AUTO=USB 优先静默转 BLE(默认);USB=仅 2.4G 接收器;BLE=仅蓝牙(接收器在位但鼠标切到蓝牙、USB 假在线时用它)。| Parameter | Type | Description |
|---|---|---|
| device_id | string | 省略 = 作用于全部已连接设备 |
| pref * | string |
umouse_set_dpiDPI 档位的固件字节(协议 03 22 <level>,非索引非 DPI 数值)。主流固件映射:800→21, 1200→32, 1600→42, 2400→63, 4000→4, 6000→5;其它固件族编码不同。注意:固件对软件设置不回执——返回 1 仅代表字节已写入通道,生效与否以 dpiChanged 事件/光标速度旁证判断。| Parameter | Type | Description |
|---|---|---|
| device_id | string | 目标设备 SN。单台在线可省略;多台在线必须显式指定(缺省时命令会被 SDK 拒绝)。识别超时的临时身份(usb-xxxx / ble-<mac>)仅本次连接会话内稳定,不要持久化。 |
| level * | number | 固件档位字节(见工具描述中的映射表) |
umouse_status查看 uMouse SDK 服务状态:SDK 版本、运行时长、配置摘要、在线设备数、事件缓冲水位、录音状态、旧进程接管记录。排查问题先调它。umouse_voice_cancel取消指定语音会话:立即禁止结果投递并启动设备清理;不把"取消等待"冒充"设备已关麦"。已输入的字符不撤回。| Parameter | Type | Description |
|---|---|---|
| session_id * | string | 目标会话 ID |
umouse_voice_finish结束指定语音会话(对话内完成按钮/VAD 之外的手动入口;幂等:重复调用返回已有状态)。收尾顺序:会议销毁→等待设备确认与音频段完成→识别终态→结果可取。| Parameter | Type | Description |
|---|---|---|
| session_id * | string | 目标会话 ID |
umouse_voice_inbox读取物理语音键产生的持久化转写消息。默认只读未确认消息,读取不删除。status=ready 的 text 是用户语音转写,可能有识别错误;queued/transcribing 请等待,empty 不创建对话,failed 查看 errorCode。处理或向明确宿主成功交付后用 umouse_ack_voice。日志通知不保证唤醒新回合。| Parameter | Type | Description |
|---|---|---|
| include_acknowledged | boolean | |
| limit | number |
umouse_voice_start开启一次 Agent 语音问答会话:经设备麦克风采集(会议模式),就绪(会议确认+首段 PCM 到达)后返回 listening/sessionId。随后用 umouse_voice_wait 等待最终文字(VAD 静音/完成按钮/上限结束)。同一时间仅一个会话;重复 client_request_id 幂等返回。本工具只采集语音,最终文字作为工具结果返回——不向任何输入框打字。| Parameter | Type | Description |
|---|---|---|
| client_request_id | string | 调用方请求幂等键:重复传入返回同一会话 |
| device_id | string | 目标设备 SN。单台在线可省略;多台在线必须显式指定(缺省时命令会被 SDK 拒绝)。识别超时的临时身份(usb-xxxx / ble-<mac>)仅本次连接会话内稳定,不要持久化。 |
| end_mode | string | 结束方式(vad_or_manual=VAD 静音或手动;manual_only=仅手动/上限) |
| prompt | string | 给用户的提示语(记录与会话关联,不强制展示) |
umouse_voice_status语音编排状态:ASR/typer 就绪、活动会话(状态机位置、目的、设备)、未确认关麦的隔离记录与最近会话摘要。可选 session_id 返回单会话详情(含分段耗时)。默认不回传听写正文。| Parameter | Type | Description |
|---|---|---|
| session_id | string | 省略 = 全局状态 |
umouse_voice_wait等待语音会话结果(有界等待,单次 ≤25s;更久以分轮续等)。pending 与终态明确区分;终态返回最终文字 text、结束原因 stopReason、会议关麦确认与音频段边界事实。仅返回 agent-reply 会话的文字。| Parameter | Type | Description |
|---|---|---|
| session_id * | string | umouse_voice_start 返回的会话 ID |
| wait_ms | number | 本次等待毫秒数 |
umouse_wait_events长轮询等待新设备事件:有匹配立即返回,超时返回空(timedOut:true)。等待用户物理操作的标准工具。推荐范式:等用户语音输入 → types:["speechCaptured"](用户按住语音键说话、松开后事件自带 WAV 路径 payload.path,直接取用,无需编排录音);等按键 → types:["keyEvent"](payload={key: speech|translation|m|ai|capture|raw, action: down|up|hold|click, index})。可用 type:${eventTypes(bridge).join(' | ')}。宿主超时提示:宿主对工具调用本身可能设有更短超时——单次 timeout_ms 建议不超过 25000,更久等待以返回的 nextSince 游标分轮续等。| Parameter | Type | Description |
|---|---|---|
| since | number | 上次返回的 nextSince |
| timeout_ms | number | 最长等待毫秒数(上限 30000) |
| types | array | 按 type 过滤 |
umouse_wait_voice在当前活动对话内等待语音键转写完成,返回未确认的 ready/empty/failed 消息(最多 25 秒)。已存在未确认结果会立即返回;处理后 ack 才不会重复读取。不能保证客户端在当前回合结束后自动唤醒。| Parameter | Type | Description |
|---|---|---|
| timeout_ms | number |
umouse_write_raw【诊断模式专用】向设备活动通道写原始字节(字节直接进固件)。仅 UMSDK_RAW_DIAG=1 时可见与可用;已知命令帧(03 F0 鼠标 / 03 F1 键盘)仍须目标设备声明对应能力,未知命令拒绝——raw 不是绕过能力门控的入口。hex 为偶数长度的十六进制字符串,单次上限 1024 字节。| Parameter | Type | Description |
|---|---|---|
| device_id | string | 目标设备 SN。单台在线可省略;多台在线必须显式指定(缺省时命令会被 SDK 拒绝)。识别超时的临时身份(usb-xxxx / ble-<mac>)仅本次连接会话内稳定,不要持久化。 |
| hex * | string | 如 "0a03f0.." |
Security checks
Static checks derived from the repository 6 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 2.1K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by package-lock.json and mcp/voice-ui/Cargo.lock.
- ✓No dynamic code executionScanned 63 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
What the source scan found
- Transport
- stdio and Streamable HTTPmcp/src/index.ts:12, mcp/src/shared/daemon.ts:9
- Starts other programs
- 16 callsmcp/acceptance/run-matrix.mjs:30, mcp/acceptance/run-matrix.mjs:34, mcp/acceptance/run-matrix.mjs:44
- Outbound network calls
- 3 callsmcp/acceptance/run-matrix.mjs:20, mcp/src/shared/installation.ts:130, mcp/src/transcriber.ts:225
- Writes or deletes files
- 57 callsmcp/src/asr-service.ts:139, mcp/src/asr-service.ts:172, mcp/src/asr-service.ts:211
- Lockfile
- package-lock.json and mcp/voice-ui/Cargo.lock
Pattern matches on the source text of 63 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 2.1K words, fetched 6 days ago. The original in the repository is authoritative.
Read full README