MCP Integration & /mcp Endpoint
How the built-in t3-code MCP server and /mcp endpoint connect agents and external MCP clients.
Model Context Protocol (MCP) has quickly become the standard bridge between coding agents and external tooling. T3 Code uses MCP in two directions: automatically attached inside threads, and exposed externally over /mcp.
1. The Built-In t3-code MCP Server
Whenever T3 Code launches an agent thread, it automatically attaches its internal t3-code MCP server and injects control instructions into the agent session.
Instead of running the underlying CLI completely blind to its host UI, the agent gains standardized MCP access to T3 Code's workspace and thread controls.
2. Driving T3 Code From Outside Agents via /mcp
T3 Code also exposes an /mcp endpoint so external MCP-capable tools can talk to your running T3 Code server.
What that enables
Even if you launch claude or codex directly inside a plain terminal outside the T3 Code UI, pointing that outside client at T3 Code's MCP server lets it:
- Read the projects registered in your T3 Code instance;
- Inspect available providers and models;
- Read and interact with active T3 Code threads.
That turns your background apps/server process into an addressable orchestration hub for custom scripts and external MCP workflows.
3. Do Your Existing CLI MCP Servers Still Work?
Yes—nothing breaks and no migration is required.
Because T3 Code drives your existing local claude, codex, and other CLIs, any third-party MCP servers you already configured in your local CLI dotfiles or project configs (databases, Playwright, issue trackers, docs search) continue working inside T3 Code threads as expected.
4. Practical Notes
- Zero setup for everyday use: Built-in
t3-codeMCP attachment happens automatically without hand-editing JSON files. - Keep remote endpoints gated: If you bind the server beyond localhost, protect access with
T3CODE_AUTH_TOKEN, Tailscale, or T3 Connect instead of exposing/mcpopenly on the public internet.