Hands-free and voice: queued work moves on by itself, and the person hears what is waiting

未关闭
#25 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
javascript, macos, swift

调研方向

Start with the queue and approval flow in mcp-server/godkend.js and mcp-server/index.js, then read mcp-server/status.js and the status helper under helper/Sources/cmcp-status/. The issue splits the work across auto-continuing queued calls, optional macOS speech, client notification measurements, and Voice Control checks; pick one part and trace its existing tests. Done for the full issue includes the stated acceptance criteria, including measured client results in the README and tests showing speech cannot approve.

由索引模型根据 Issue 内容生成。

描述

enhancement help wanted

Why

People increasingly drive their agents hands-free: a voice mode in the chat app, dictation, macOS Voice Control, a phone call into an agent. In those setups nobody is looking at the menu bar and nobody types "try again". Today computer-mcp assumes someone will: when something is waiting, it waits for the agent to call again or the person to notice the icon. For hands-free use, work that lands in the queue should move on by itself, and the person should be able to hear what is waiting.

How it works today (measured from the code, 25 Nov)

  • No voice code at all. A code search for voice, speech, dictation in the repo finds nothing. The only audio is one sound per new question (helper/Sources/cmcp-status/Lyd.swift, test/ikon-lyd.mjs), plus the notification banner added in 0.4.1.
  • A stdio server cannot start a turn. The server only acts when its client calls a tool (StdioServerTransport in mcp-server/index.js). It cannot make a voice assistant speak or start a new turn by itself.
  • Waiting means "call again". A menu bar question answers after about 45 s with "has not answered yet", and the answer is collected only when the agent calls again with exactly the same tool and arguments (CMCP_ASK_WINDOW / CMCP_ASK_KEEP in mcp-server/godkend.js, test/svar-senere.mjs). A screen request with another agent holding the screen returns "ask again in a moment" (skaermLaan in index.js). In voice mode, that "again" never comes.
  • Approvals need Touch ID or the Mac's password in the icon, every time. That stays: a spoken "yes" can be faked by anything that can play audio, so voice must never be a yes.

Proposed approach (each part can be its own PR)

  1. Auto-continue from the queue - builds on #17. When the per-app lock or the screen becomes free, the waiting call proceeds in the same call (with notifications/progress keeping it alive), so a hands-free session never has to say "try again".
  2. Wake on queue - builds on #18. With the icon running at login, it watches the queue (pending.jsonl, the lock folder) and wakes up when something lands: banner + sound today, and optionally speaks a short line ("Claude wants to send a message in Mail - approve with Touch ID") using macOS speech (AVSpeechSynthesizer, no third-party dependency). Off by default, switchable in the icon's menu, and the spoken text says what and where, never what is being typed.
  3. Hand the answer back without a retry. After the person approves in the icon, a call that is still open gets its answer directly. For a call that has already returned "has not answered yet", investigate what MCP offers to tell the client (notifications/message, notifications/progress, a resource update) and measure which clients actually turn that into a new turn or a spoken line - Claude desktop/mobile voice, ChatGPT voice, Cursor, Claude Code, Raycast, Siri Shortcuts. Write down what was measured; do not assume.
  4. Voice Control friendly. Check that the box's Deny / Done buttons and the icon's menu can be operated by macOS Voice Control ("Click Deny"), while Allow still requires Touch ID.

Acceptance criteria

  • With the icon started at login (#18), a request that lands in the queue is announced with no manual step, and the queued action runs by itself when it is its turn (#17).
  • Spoken announcements are opt-in, contain no typed text and no window contents beyond what the box already shows, and are covered by a test like test/ikon-lyd.mjs.
  • Voice can never approve: a test proves that no path from speech or a banner reaches verified: 'owner' without Touch ID or the password.
  • A table in the README of which clients turn a server notification into something the person hears, measured.

Pointers

mcp-server/godkend.js, mcp-server/index.js (skaermLaan, server setup), mcp-server/audit.js (pending.jsonl), mcp-server/status.js (startIkon), helper/Sources/cmcp-status/main.swift, helper/Sources/cmcp-status/Lyd.swift, test/ikon-lyd.mjs, test/svar-senere.mjs, test/ikon-boks.mjs.

Related: #17 (the queue) and #18 (switching on by itself). If you use your Mac hands-free, or work on a voice client, your measurements are the most valuable thing here - even a comment saying "in client X, a progress notification did / did not get spoken" helps. Comment if you want to take a part.

主要语言
JavaScript
星标
1
派生
0
平均合并
1 天 21 小时
30 天内合并 PR
9

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Agent360dk/computerMCP 的其他 Issue

查看 Agent360dk/computerMCP 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。