tsconfig-inheritance-flattener-mcp

by vola-trebla

Not rated
GitHub

About

Resolves TypeScript config inheritance chains and returns effective compiler options

Details

Author
vola-trebla
Categories
Developer Tools

Setup

Install tsconfig-inheritance-flattener-mcp in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/vola-trebla/tsconfig-inheritance-flattener-mcp

Follow the installation instructions in the repository README, then restart your MCP client.

Resolves TypeScript config inheritance chains and returns effective compiler options

Your AI agent readstsconfig.json. It has no idea what it actually means.

MCP server that resolves the full TypeScript config inheritance chain and returns theeffective compiler optionsthat actually apply — including everything inherited from extended base configs, monorepo packages, andnode_modulespresets.

Your agent readstsconfig.jsonand sees:

{ "extends": "@tsconfig/strictest", "compilerOptions": { "paths": { "@/": ["./src/"] } } }

It has no idea that@tsconfig/strictestsetsstrict: true,noUncheckedIndexedAccess: true,exactOptionalPropertyTypes: true. It doesn't know thatbaseUrlis defined two levels up in your monorepo base config. So it:

- Suggests code that would failnoUncheckedIndexedAccess
- Gets confused about what@/resolves to
- Doesn't know yourtargetisES2022, notES5
- Gives wrong answers about module resolution

The TypeScript compiler API already resolves all of this. This MCP just exposes it.

Resolves the fullextendschain and returns the merged compiler options that actually apply to a giventsconfig.json. Shows the inheritance chain, all merged options (with enums as readable strings, not magic numbers), and include/exclude patterns.

Effective TypeScript Configuration Config: /project/apps/web/tsconfig.json Inheritance chain: /project/apps/web/tsconfig.json → /project/tsconfig.base.json → node_modules/@tsconfig/strictest/tsconfig.json Compiler Options (merged): target: "ES2022" module: "NodeNext" moduleResolution: "NodeNext" strict: true noUncheckedIndexedAccess: true exactOptionalPropertyTypes: true baseUrl: "/project" paths: { "@/": ["apps/web/src/"] }

Maps a TypeScript path alias (e.g.@/hooks/useAuth) to its physical file location on disk, using the resolvedpathsandbaseUrlfrom the tsconfig. Returns all existing candidates with extension probing.

Alias Resolution: @/hooks/useAuth Config: /project/apps/web/tsconfig.json Base URL: /project Resolved physical paths: /project/apps/web/src/hooks/useAuth.ts ✓ exists

Inspects thereferencesarray in a roottsconfig.jsonand validates that each referenced package hascomposite: true. Catches broken cross-package dependencies in TypeScript monorepos before they cause silent build failures.

Project References Analysis Config: /project/tsconfig.json References found: 2 [✓] packages/shared → /project/packages/shared/tsconfig.json [✗ NOT FOUND] packages/deprecated → /project/packages/deprecated/tsconfig.json Violations: ✗ packages/shared is referenced but does not have composite: true Fix: add "composite": true to packages/shared/tsconfig.json

Agent is helping debug a TypeScript error and asks:

"What compiler options are actually active in this project?"

Without this MCP, the agent guesses based on what it sees intsconfig.json. With it:

get_effective_compiler_options("/project/apps/web/tsconfig.json") → strict: true, noUncheckedIndexedAccess: true, target: "ES2022", module: "NodeNext"

Now the agent knows exactly whyarr[0]has typestring | undefinedand not juststring. No more wrong suggestions.

{ "mcpServers": { "tsconfig-flattener": { "command": "npx", "args": ["-y", "tsconfig-inheritance-flattener-mcp"] } } }

"What compiler options actually apply to/project/apps/web/tsconfig.json? It extends a monorepo base and @tsconfig/strictest."

"Where does@/components/Buttonresolve to on disk?"

"Are the project references in my root tsconfig valid? Do all referenced packages have composite: true?"

- ast-impact-mapper-mcp— for code→test correlation
-
release-readiness-triage-mcp— for CI triage

- npm:npmjs.com/package/tsconfig-inheritance-flattener-mcp
- GitHub:
github.com/vola-trebla/tsconfig-inheritance-flattener-mcp

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

AI-to-AI code review platform — Claude, Codex, and Gemini cross-check each other via MCP, REST API, and CLI for consensus-based results.

A stateful LSP runtime for AI agents: warm language server sessions with 50+ tools for go-to-definition, find-references, diagnostics, rename, and more across 30+ languages.

Persistent code index using Tree-sitter for fast, precise code search. Replaces grep with ~50 token responses instead of 2000+.

Orchestrates a dual-AI engineering loop where a Primary AI plans and implements, while a Review AI validates and reviews, with continuous feedback for optimal code quality. Supports custom AI pairing (Claude, Codex, Gemini, etc.)

AmazingMCP — MCP Server for .NET / C# Codebases

An MCP server that gives AI agents deep understanding of C# codebases via Roslyn — type search, dependency graphs, usage analysis, and architecture overviews, all from a live in-memory compilation.

A platform-agnostic code analysis library with semantic search capabilities and MCP server support.

Enforce consistent C++ style and best practices across your codebase. Analyze naming conventions, memory safety, and const correctness, and get actionable modernization suggestions up to C++23. Accelerate reviews with ready-made prompts and quick access to curated guidelines.

AI-Safe Code Analysis with 113+ MCP tools for guard validation, memory, workflow, and testing.

A Rust-based CLI tool for code-related tasks, operating as an MCP server.

Provides AI assistants with a comprehensive, one-time analysis for complete codebase context and understanding.

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.