Docs
MCP & agents
Let Claude Code, Codex or any MCP client ask you a question out loud: Typd's local MCP server records your answer and returns text. Setup, tools, security.
Typd includes a local MCP server, part of Pro automation. Coding agents such as Claude Code and Codex can use it to ask you a question and hear your answer: the agent asks, you speak, the agent gets the text.
For the wider picture, including dictating prompts straight into the terminal, see Voice input for Claude Code and Codex on Mac.
Set up
Open the menu bar icon › Settings… › Automation. Other apps can control Typd must not be Off (it is Ask before recording by default). The pane shows both snippets below with the real path of your copy of Typd, and a Copy button for each: Copy Claude Code Command and Copy Codex Config. If Typd is not in /Applications, use the pane’s version.
Claude Code
Run this in Terminal. --scope user makes Typd available in every project:
claude mcp add --transport stdio --scope user typd -- /Applications/Typd.app/Contents/Helpers/typd mcp
Claude Code needs no timeout setting: its default tool timeout is far longer than the longest question.
Codex
Add this to ~/.codex/config.toml:
[mcp_servers.typd]
command = "/Applications/Typd.app/Contents/Helpers/typd"
args = ["mcp"]
tool_timeout_sec = 960
Keep tool_timeout_sec. Codex’s default is 60 seconds, and a spoken answer can take longer: a question waits up to 900 seconds, plus the time to transcribe.
Other MCP clients
The server is the bundled typd tool run as typd mcp, over stdio. Any client that can start a stdio MCP server can use it.
Try it
In Claude Code: “Ask me via typd which port to use.”
- Typd shows the recording pill and plays the start sound. Above it, a card shows “Claude Code asks”, the question, and how to send or cancel your answer.
- Answer out loud, then press your recording shortcut.
- The pill says “Sent”, and the text goes to the agent.
The text goes to the agent. Like any dictation, it is also saved in History, sent to the dictation webhook if you set one, and synced if Sync is on. It is never pasted into the app in front (usually the agent’s own terminal), and your clipboard is not touched. Your vocabulary applies. Typd transcribes on your Mac; what the agent then does with the text (for example, send it to its model provider) is up to the agent.
Example: an ask_user call
Say the agent has finished a change and needs a decision before it goes on. It calls ask_user with these arguments:
{
"question": "The tests pass. Deploy to staging now, or wait for your review?",
"timeout_seconds": 300
}
The card above the pill shows the question. You say “Wait, I’ll review it after lunch” and press your recording shortcut. The agent gets that sentence as text and carries on. If you don’t answer within 300 seconds, it gets the timeout error from How a question ends.
To make an agent ask you this way without being told each time, add a line to its instructions file (CLAUDE.md for Claude Code, AGENTS.md for Codex):
When you need a decision from me, ask me with the typd ask_user tool instead of waiting in the terminal.
Tools
| Tool | Arguments | Returns |
|---|---|---|
ask_user | question (1–2000 characters), timeout_seconds (5–900, default 120) | The transcript of your spoken answer. |
dictate | timeout_seconds | The transcript. No question is shown, only that the agent is listening. |
transcribe_file | path (absolute), model (optional) | The text, its duration and the model. Also saved in History. |
search_history | query, limit (1–100, default 10) | The newest matching History entries. |
get_vocabulary | none | Your vocabulary terms and replacements. |
The name on the question card (“Claude Code”, “Codex”) comes from the client itself. The model cannot change it through the tool’s arguments.
How a question ends
| What happens | The agent gets |
|---|---|
| You answer and press your shortcut | The text. |
| You click ✕ on the pill, then Delete (or menu bar › Delete Recording) | An error saying you canceled without answering. |
| The timeout passes while Typd is still recording | An error saying you may be away; the recording is discarded. The timeout counts from the moment the question appears, not from when you stop talking. A transcription already running is allowed to finish. |
| Typd heard nothing | A result with status empty. |
| You are dictating, or another question is open | An immediate “busy” error. Questions are not queued. |
| No model downloaded, or no microphone permission | An immediate error that says what to fix. |
| The agent cancels, or quits | Nothing: the recording is discarded. |
If Typd is not running, the first call starts it in the background.
Security
- Local only. The
typdtool talks to the app over a private socket in~/Library/Application Support/Typd/run/, readable only by your user. No network port is opened, so nothing is reachable from other computers. - Same user only. Only apps running as you on this Mac can connect; other users’ connections are refused.
- You can always see it. Recording starts as soon as the agent asks: the pill appears, the start sound plays and the card shows the question. Nothing is sent to the agent until you press your shortcut; ✕ then Delete on the pill, or the timeout, discards the recording.
- Nothing is run as a command. Arguments are checked strictly: files must be existing audio or video files, questions are limited in length.
- Kill switch. Set Other apps can control Typd in Settings › Automation to Off, and every MCP, command-line, Shortcuts and link command is refused. It covers the command-line tool, Shortcuts and typd:// links too.
- Links ask first. With Ask before recording (the default), a link or a script that starts a dictation shows “Start recording?” first. See CLI & URL scheme.