Text search is useful until an AI coding agent has to answer a structural question: where is this symbol really defined, which callers will a refactor affect, or what type does this expression have? A grep result can show matching text, but it cannot reliably distinguish a definition from a re-export, a comment, or an unrelated variable with the same name.
Locus MCP adds a small semantic layer to that workflow. It connects an MCP-compatible agent to language servers, so the agent can ask for definitions, references, hover information, diagnostics, status, and a rename preview through six focused tools.
This tutorial sets up Locus for a TypeScript project, checks the language-server boundary, and adds an MCP configuration that an agent host can start automatically. The goal is not to replace an IDE or make refactors autonomous.…