TypeScript Package Introspector (MCP Server)

by t3ta

158 downloads
Not rated
GitHub

Description

# TypeScript Package Introspector (MCP Server) This tool introspects TypeScript packages and source code to extract exported symbols (functions, classes, types, constants) and their type information. It can be used both as a library/CLI tool and as a [Model Context Protocol…

About

# TypeScript Package Introspector (MCP Server) This tool introspects TypeScript packages and source code to extract exported symbols (functions, classes, types, constants) and their type information. It can be used both as a library/CLI tool and as a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/)…

Details

Author
t3ta
Downloads
158
Categories
Other

- Extract exported symbols from npm packages using type definitions
- Analyze TypeScript source code directly
- Get detailed type signatures for all exported symbols
- Extract JSDoc comments as descriptions
- Run as an MCP server to provide context to LLMs

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name TypeScript Package Introspector (MCP Server)
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Clone the repository, install dependencies with npm install or pnpm install, and build with npm run build. Use the CLI with node dist/index.js <packageName>, the library via introspectFromPackage or introspectFromSource imports, or run the MCP server with npm start.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "typescript package introspector (mcp server)": {
            "ts-morph-mcp-server": {
                "command": "node",
                "args": [
                    "dist/index.js",
                    "zod"
                ]
            }
        }
    }
}

McpServers

{
    "ts-morph-mcp-server": {
        "command": "node",
        "args": [
            "dist/index.js",
            "zod"
        ]
    }
}

TypeScript Package Introspector (MCP Server)

This tool introspects TypeScript packages and source code to extract exported symbols (functions, classes, types, constants) and their type information. It can be used both as a library/CLI tool and as a Model Context Protocol (MCP) server.

Features

- Extract exported symbols from npm packages using their type definitions
- Analyze TypeScript source code directly
- Get detailed type signatures for all exported symbols
- Extract JSDoc comments as descriptions
- Run as an MCP server to provide context to LLMs

Installation

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.