Server data from the Official MCP Registry
AST for TypeScript, supports creating JSON representations of React components
AST for TypeScript, supports creating JSON representations of React components
Valid MCP server (5 strong, 3 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.
15 files analyzed · 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Set these up before or after installing:
Environment variable: PROJECT_TSCONFIG_PATH
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-jscoobyced-jsc-typescript-ast-mcp": {
"env": {
"PROJECT_TSCONFIG_PATH": "your-project-tsconfig-path-here"
},
"args": [
"-y",
"jsc-typescript-ast-mcp"
],
"command": "npx"
}
}
}From the project's GitHub README.
A Model Context Protocol (MCP) server that provides TypeScript AST (Abstract Syntax Tree) analysis capabilities. This server allows you to find references for classes and methods, analyze component trees, and find dependencies in TypeScript code using the ts-morph library.
find_dependency tool to list all files that import a specified library.component_tree tool to analyze React component structures in your codebase.Clone the repository
Install dependencies:
yarn install
Copy the example configuration files:
cp .env.example .env
Update .env with your project's tsconfig path:
PROJECT_TSCONFIG_PATH=/path/to/your/project/tsconfig.json
yarn build
yarn test:mcp
This will start the MCP server that can be connected to by MCP-compatible clients.
To use this MCP server in Claude Code:
yarn build
.mcp.example.json to .mcp.json (or update your existing one with the content of the MCP configuration).claude/settings.local.json and add the MCP section (or the subset needed if you already have some MCPs configured) “enableAllProjectMcpServers”: true,
“enabledMcpjsonServers”: [
“typescript-ast”
]
/mcp command and check the MCP is connectedsrc/yarn build
yarn test:mcp
The server uses the following environment variable:
PROJECT_TSCONFIG_PATH: Path to the tsconfig.json file to use for project analysis (defaults to 'tsconfig.json').env.example: Example environment variables file.mcp.example.json: Example MCP configuration file (if applicable)The server provides three tools:
find_referenceFind all references to a given class method in your codebase.
filePath: Path to the fileclassName: Name of the classmethodName: Name of the methodfind_dependencyList all files that import a specified library.
dependencyName: Name of the dependency to search forcomponent_treeAnalyze React component structures in your codebase.
entryFilePath: Path to the entry filemaxDepth: Maximum depth of the component tree (default: 3)data-id (optional): Attribute name to capture into TreeNode.dataId (example: data-attribute-id)props, dataId, and onClickMIT
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
by mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.