drio
Open app

TypeScript Definition Finder MCP Server

Source

A Model Context Protocol (MCP) server that helps AI code editors find TypeScript symbol definitions in your codebase. This tool is particularly useful when you need to locate the original definition of imported symbols, classes, interfaces, or functions in a TypeScript project.

Catalog onlyCatalog onlySTDIO

Overview

TypeScript Definition Finder MCP is a Model Context Protocol (MCP) server designed to assist AI code editors in locating TypeScript symbol definitions within a codebase. It is particularly useful for finding the original definitions of imported symbols, classes, interfaces, or functions in TypeScript projects.

To use the server, install the necessary dependencies, build the project, and start the stdio server. You can then use the find_typescript_definition tool by providing the required parameters: file path, line content, and column number.

  • Locates original definitions of TypeScript symbols - Supports imported symbols from external packages - Returns definition location and code snippet - Integrates seamlessly with AI code editors via stdio interface
  1. Finding definitions of imported symbols in TypeScript files.
  2. Locating local class definitions within a project.
  3. Assisting developers in understanding code by providing context for symbol usage.

Add to your AI client

Use these steps to connect TypeScript Definition Finder MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "typescript-definition-finder-mcp-runninghare": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-typescript-definition-finder-mcp-runninghare"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "typescript-definition-finder-mcp-runninghare": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-typescript-definition-finder-mcp-runninghare"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "typescript-definition-finder-mcp-runninghare": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-typescript-definition-finder-mcp-runninghare"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "typescript-definition-finder-mcp-runninghare": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-typescript-definition-finder-mcp-runninghare"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "typescript-definition-finder-mcp-runninghare": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-typescript-definition-finder-mcp-runninghare"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "typescript-definition-finder-mcp-runninghare": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-typescript-definition-finder-mcp-runninghare"
      ]
    }
  }
}

FAQ

What prerequisites are needed to run the server?

You need Bun v1.2.2 or later and Node.js to run the compiled server.

How do I find a symbol definition?

Use the `/ts-def` command with the required parameters to locate the definition of a symbol in your codebase.

Can this tool work with external packages?

Yes, it can find definitions for symbols imported from external packages.