概要
What is TypeScript Definition Finder MCP Server?
An MCP server that helps AI code editors locate the original definition of TypeScript symbols in a codebase, including imported symbols from external packages.
How to use TypeScript Definition Finder MCP Server?
Install via Smithery (npx -y @smithery/cli install @runninghare/ts-def-mcp --client claude) or manually with bun install and bun run build. Start the server with node dist/run.js. Use the tool find_typescript_definition (trigger /ts-def) with parameters file_path, line_content, and column_number.
Key features of TypeScript Definition Finder MCP Server
- Finds original definitions of TypeScript symbols
- Works with imported symbols from external packages
- Returns both the definition location and code snippet
- Supports stdio interface for AI code editor integration
- Trigger command
/ts-defavailable in Cursor
Use cases of TypeScript Definition Finder MCP Server
- Locating the original definition of an imported symbol in a TypeScript project
- Finding where a class, interface, or function is defined in the local codebase
- Assisting AI code editors to navigate to symbol definitions during code generation or refactoring
FAQ from TypeScript Definition Finder MCP Server
—