MCP.so
Sign In
Servers

TypeScript Package Introspector (MCP Server)

@t3ta

Overview

What is TypeScript Package Introspector (MCP Server)?

This tool extracts exported symbols (functions, classes, types, constants) and their type information from TypeScript packages and source code. It runs as a Model Context Protocol (MCP) server, designed for LLM applications like Claude for Desktop to inspect type definitions.

How to use TypeScript Package Introspector (MCP Server)?

Start the MCP server via npx: npx ts-introspect-mcp-server. To integrate with your project, create a .roo/mcp.json configuration file specifying the command and arguments shown in the README. The server provides two MCP tools: introspect-package (for npm packages) and introspect-source (for TypeScript source code).

Key features of TypeScript Package Introspector (MCP Server)

  • 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
  • Provide type information to LLMs through MCP

Use cases of TypeScript Package Introspector (MCP Server)

  • Give an LLM access to a package’s exported API without manual documentation
  • Dynamically inspect third‑party type definitions during code generation
  • Analyze local TypeScript source code for symbol extraction

FAQ from TypeScript Package Introspector (MCP Server)

How do I start the MCP server?

Run npx ts-introspect-mcp-server in your terminal.

What tools does the server provide?

Two tools: introspect-package (introspects an npm package) and introspect-source (introspects TypeScript source code directly).

How do I specify which package to introspect?

For introspect-package, provide the packageName parameter (e.g., 'zod'). For introspect-source, provide the source parameter containing the TypeScript code.

Does the tool include JSDoc comments?

Yes, JSDoc comments are extracted as descriptions for the exported symbols.

More from Other