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

Ouverte
#25 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
Plutôt claire
Activité
Active
Stack technique
javascript, macos, swift

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
JavaScript
Étoiles
1
Forks
0
Merge moyen
1 j 21 h
PR mergées (30 j)
9

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de Agent360dk/computerMCP

Toutes les issues de Agent360dk/computerMCP

Issues similaires

Plus d'issues JavaScript

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.