t3code-mcp
MCP server for interacting with a running T3 Code instance. Enables viewing agent threads, sending messages, and approving permission requests from Claude Code or voice-controlled models.
README
t3code-mcp
MCP server for a running T3 Code instance. See which agent threads exist and what they need, read their history, send them messages, approve their permission requests — from Claude Code, Claude Desktop, or (the end goal) a voice-controlled model like Hermes while away from a screen.
See SPEC.md for the design and PLAN.md for the phased build.
Setup
pnpm install && pnpm build
- Make sure T3 Code is running (desktop app or
npx t3@latest). - Mint a bearer token for the local T3 server and put it in
.env(or export it):
npx t3@latest auth session issue --token-only --label t3code-mcp --ttl 365d
echo "T3_TOKEN=<the token>" > .env
- Sanity check against the live server (read-only):
pnpm smoke
Connect from Claude Code
claude mcp add --scope user t3code -- node /Users/thomascrundwell/Documents/projects/t3code-mcp/dist/index.js
(Token is picked up from .env in this directory; alternatively pass --env T3_TOKEN=....)
Tools
Visibility — t3_status, list_projects, list_threads (filter by project / attention state), get_thread, search_threads
Messaging & control — send_message, create_thread, wait_for_turn (send-and-wait round trip), interrupt_thread, stop_thread, archive_thread, unarchive_thread, set_thread_title
Hands-free interaction — pending_actions (cross-thread "what needs me?" inbox), respond_to_approval, respond_to_user_input
Voice layer — thread_digest and workspace_digest (TTS-friendly spoken summaries), wait_for_change (long-poll until anything needs attention)
Every thread carries a single attention state: needs-approval | needs-input | plan-ready | working | error | done | idle.
Remote / voice clients (HTTP mode)
For a remote voice agent (e.g. Hermes over Tailscale), run the streamable-HTTP transport with its own bearer token:
MCP_HTTP_TOKEN=<secret> node dist/index.js --http --port 3774 --host 0.0.0.0
Clients connect to http://<machine>:3774/ with Authorization: Bearer <secret>. Binds to 127.0.0.1 unless --host is given; T3 Code itself stays localhost-only.
Testing
pnpm smoke— read-only pass over every query tool against the live server.node scripts/smoke.mjs --mutate <projectId>— additionally runs the full write loop (create disposable thread → agent replies → follow-up message → rename → stop → archive). Use a scratch project; "t3code-mcp scratch" (/tmp/t3code-mcp-scratch) exists for this.
Notes / limitations
- Uses T3's HTTP JSON API only (
/api/orchestration/*). Live push, git-worktree bootstrap, and turn diffs are WebSocket-RPC-only in T3, so: updates are polled, andcreate_threadruns threads directly in the project workspace (start worktree threads from the T3 UI). - Image attachments not yet supported on
send_message. - Revoke access anytime:
npx t3@latest auth session list/... revoke.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.