MCP Server

Exposing codebase intelligence to AI tools via the Model Context Protocol.

What is MCP?

The Model Context Protocol (MCP) is an open standard that lets AI models securely access external tools and data sources. Linear Canal implements MCP over both stdio (for local desktop clients) and SSE (for server deployments).

Starting the Server

bash
linear-canal mcp --stdio

Available MCP Tools

  • lc_context — returns compiled ctx summaries for a task description.
  • lc_search — semantic search across the vector index.
  • lc_impact — computes the downstream blast radius of changing a file.
  • lc_graph — queries the knowledge graph for relationships.

Claude Desktop Config

json
{
  "mcpServers": {
    "linear-canal": {
      "command": "linear-canal",
      "args": ["mcp", "--stdio"]
    }
  }
}
MCP Server | Linear Canal Docs | Linear Canal