使用
Linux x86_64
需要先準備
- 執行環境:
Rust 1.99 or newer - 系統套件:
grim,loginctl,notify-send,libxkbcommon-dev
僅下載安裝腳本
curl -fsSL https://github.com/ayagmar/niri-computer-use/releases/latest/download/install.sh -o /tmp/ncu-install.sh && ls -l /tmp/ncu-install.sh在本機下載並解壓 libxkbcommon
mkdir -p ~/.local/lib ~/.local/debxkb && curl -fsSL https://ftp.debian.org/debian/pool/main/libx/libxkbcommon/libxkbcommon0_1.7.0-2_amd64.deb -o /tmp/libxkbcommon0.deb && dpkg-deb -x /tmp/libxkbcommon0.deb ~/.local/debxkb && find ~/.local/debxkb -name "*.so*" -ls && cp -P ~/.local/debxkb/usr/lib/x86_64-linux-gnu/libxkbcommon.so* ~/.local/lib/ && ls -l ~/.local/lib/使用本機函式庫路徑重試安裝
export LD_LIBRARY_PATH="$HOME/.local/lib:${LD_LIBRARY_PATH:-}" && NCU_REGISTER=0 sh /tmp/ncu-install.sh
確認能用
LD_LIBRARY_PATH="$HOME/.local/lib:${LD_LIBRARY_PATH:-}" ~/.local/bin/niri-computer-use --version輸出應包含「niri-computer-use 0.1.5」。
先試試這個
LD_LIBRARY_PATH="$HOME/.local/lib:${LD_LIBRARY_PATH:-}" ~/.local/bin/niri-computer-use status加進你的 agent
claude mcp add niri-computer-use -- $HOME/.local/bin/niri-computer-use serveClaude Desktop、Cursor 等用戶端用的 JSON
{
"mcpServers": {
"niri-computer-use": {
"command": "sh",
"args": [
"-c",
"exec \"$HOME/.local/bin/niri-computer-use\" serve"
]
}
}
}執行 niri-computer-use status 確認伺服器能連到你的 niri 桌面,再將它加入 MCP 用戶端。
它能做什麼
以下依據 README;pickfit 沒有逐項檢查。
- 檢視並控制 niri 桌面未測試
- 擷取螢幕畫面並傳送按鍵與點擊未測試
- 依無障礙名稱操作畫面元素未測試
- 管理視窗焦點與版面配置未測試
pickfit 測到哪一步
Linux x86_64
- 可以安裝
- 可以連線
- 工具呼叫可用
- 可離線使用
pickfit 怎麼測的
每次測試都從乾淨的機器開始,照上面的步驟執行。 pickfit 怎麼驗證
Linux x86_64
MCP 用戶端成功呼叫工具
- 從頭重跑
- 可離線使用
- 檢查於 2026年10月30日
- 版本 0.1.5
MCP 用戶端透過 stdio 連線,列出 17 個工具,呼叫 status 也回傳了結果。
測試機器遇到的差異
- README: curl -fsSL https://github.com/ayagmar/niri-computer-use/releases/latest/download/install.sh | sh installs the release binary
測試中: 手動從 ftp.debian.org 下載 libxkbcommon0_1.7.0-2_amd64.deb,以 dpkg-deb -x 解壓至 ~/.local/debxkb,將 libxkbcommon.so.0* 複製到 ~/.local/lib,並以 LD_LIBRARY_PATH=$HOME/.local/lib 執行安裝腳本及每次 niri-computer-use 呼叫 - README: install script installs the release binary checked against its .sha256
測試中: install.sh 會下載已編譯的執行檔 tarball(niri-computer-use-0.1.5-x86_64-linux.tar.gz + .sha256),已通過 checksum 驗證,但無法作為腳本閱讀