javascript-mcp-server
Provides tools for analyzing Angular applications: component analysis, template binding, dependency graph, routes, modules, services, guards, standalone components, change detection, and subscription leak detection.
Provides tools for analyzing Express applications: API endpoints, routers, middleware ordering, error handlers, and handler call chains.
Provides tools for analyzing Fastify applications: API endpoints and handler call chains.
Provides tools for analyzing Koa applications: API endpoints and middleware.
Provides tools for analyzing Node.js applications: API endpoints, native modules, entry points, async flow, environment variables, and event emitter leak detection.
Provides tools for analyzing Nuxt applications: pages, composables, server API, plugins/middleware, auto-imports, configuration, and page metadata.
Provides tools for analyzing React applications: component listing and deep analysis, hooks dependencies, contexts, state management, effect leak detection, and memoization opportunities.
Provides tools for analyzing Svelte and SvelteKit applications: components, stores, reactivity, routes, server hooks, load/actions, and effect leak detection.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@javascript-mcp-server What are the high-complexity functions in this project?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
javascript-mcp-server
Deterministic MCP server for semantic analysis of JavaScript/TypeScript with interpretation of the Vue, Nuxt, Angular, React, Next, Svelte and Node frameworks.
Inspired by the existing deterministic servers (COBOL, Go, Rust, Python, Java): the server parses, resolves types and normalizes code 100% statically; the LLM only queries already-resolved structures. The AI never interprets the framework directly.
Deterministic mechanism
Layer | Mechanism |
JS/TS language | TypeScript Compiler API via |
Vue |
|
Nuxt | Conventions over Vue: |
Angular |
|
React / Next / Svelte | Structure conventions: |
Node |
|
The ProjectManager keeps an incremental cache: each file is indexed with its size:mtime signature; refresh_js_project only re-reads modified/new files and removes deleted ones, without rebuilding the whole project. Re-loading the same alias (load_js_project) also refreshes incrementally instead of rebuilding.
Related MCP server: code-graph-mcp
Requirements
Node.js ≥ 20
npm
Evolution roadmap: see
ROADMAP.md.
Installation and build
npm install
npm run build # compiles to dist/
npm start # starts the stdio server
npm run typecheck # type checking
npm test # smoke tests (node:test + InMemoryTransport)
npm run test:snapshots # verifies golden markdown snapshots
npm run test:snapshots:update # regenerates the snapshots (only if the change is intentional)
npm run test:stress # performance and incremental cache over a synthetic project of 240+ files (fixture in tmpdir)Tools (103)
Projects
load_js_project— loads a directory, detects the framework (if already loaded, does an incremental refresh)list_loaded_projects/unload_js_project/refresh_js_projectprogram_summary— executive summarydetect_framework—vue | nuxt | angular | react | next | svelte | express | fastify | node | plainget_file_content— content of a file by path suffixsearch_source— case-insensitive searchlist_files— TS/JS files with lines, optionally filter by extension (includes.vue)
Language / TypeScript
list_functions— functions and class methods with signaturelist_ts_types— interfaces, type aliases, enums, classeslist_variables— module variablesfunction_call_graph— local call graphfind_references— references to a symbolvariable_xref— data flow of a variable: definition/read/write (semantic classification)function_callers— invocations of a functionresolve_type— definition of a symbolfind_check_implementations— classes that implement/inheritget_type_hierarchy— what a type extends/implements and who uses itinspect_function— signature, parameters, doc and body of a function orClass.methodinspect_class— decorators, extends/implements, fields, methods, constructortypecheck_project— real type errors of the project (TypeChecker diagnostics via ts-morph)
Metrics / technical debt
function_metrics— cyclomatic complexity, body lines and parameters per function/method (with filters)find_high_complexity— functions with high cyclomatic complexity (configurable threshold)find_long_functions— functions with a long body (configurable threshold)
Quality / bug-hunt (heuristics)
find_unchecked_errors— async calls withoutawait/.catch: fetch,fs.*, exec, spawn, query, DB clients andaxios/HTTP; alsomap/forEachover unawaited promises; excludes Node callback variants (fs.writeFile(path, data, cb)); exact callee match and per-line dedupfind_unused_variables— unused module variables (cross-file analysis; exported excluded)find_dead_code— unreferenced functions/methods (cross-file analysis; Angular lifecycle hooks excluded)find_unimplemented_interfaces— interfaces whose methods no class implements explicitlyfind_any_usages— uses ofany(annotations,as any,<any>, arrays, parameters/returns) grouped by file; type debt
Vue
list_vue_components/analyze_vue_component(props, emits, slots, composables, reactive state, provide/inject;defineModel→v-modelsection,useTemplateRef→Template refssection,defineSlots→Slotssection)vue_template_binding_analysis— which script variables the template uses, classified with the compiler's real bindings (prop/ref/const/function)find_vue_provide_inject— cross-file provide/inject graph by key (resolves exported constants, detects orphan keys)find_vue_unused_reactive— declared reactive state unused in template/script (heuristic)find_vue_template_undefined— template identifiers without binding/local/builtin (heuristic)
Nuxt
list_nuxt_pages— routes frompages/+server/apilist_nuxt_composables/list_nuxt_server_api/list_nuxt_plugins_middlewarenuxt_auto_imports/nuxt_configlist_nuxt_page_meta—definePageMetaper page (layout, middleware, title, validate, pageTransition)
Angular
list_angular_components/analyze_angular_component(Input/Output, DI, lifecycle)angular_template_analysis— template analysis with@angular/compiler(inputs/outputs/interpolations/pipes/structural directives + references without a class member)angular_dependency_graph— @Injectable services and consumerslist_angular_routes/list_angular_modules/list_angular_servicesangular_module_graph— NgModules (declarations, imports, providers)analyze_angular_route_guards— route guards/resolvers (canActivate/canActivateChild/canActivateFn/canDeactivate/canLoad/canMatch/resolve) and their definitionslist_angular_standalone_components— standalone components (composition imports) vs non-standalone (NgModule)find_angular_change_detection— ChangeDetectionStrategy (OnPush/Default) and manual CD (heuristic)find_angular_subscription_leaks— subscribe() without unsubscribe/takeUntil/async pipe (heuristic)
React / Next / Svelte
list_react_components— .tsx/.jsx components with JSX, exports and used hooksanalyze_react_component— deep analysis of a component: typed props, hooks with arguments, custom hooks, early returns, memo/forwardRef and contextslist_react_hooks_deps— useEffect/useMemo/useCallback with their deps array (heuristic: flags missing deps)list_react_context— cross-file contexts: createContext, providers and useContext consumerslist_next_routes— app router routes (app/**/page.tsx) and pages routerlist_next_api_routes— API routes (app/**/route.ts) with HTTP methods andmiddleware.tsanalyze_react_state— state inventory per component: useState/useReducer/useRef with bindingsfind_react_effect_leaks— useEffect with listeners/timers/subscriptions without cleanup (heuristic)list_next_data_fetching— ISR/cache in app router: revalidate, generateStaticParams, generateMetadata, fetch with next.revalidate/tags and use client/server directivesfind_react_memo_opportunities— components with non-primitive props without memo() and JSX with new values per render (heuristic)list_svelte_components— .svelte components with props, stores and dispatched eventsanalyze_svelte_component— deep analysis of a Svelte component: props, reactivity ($:), Svelte 5 runes ($state/$derived/$effect/$props/$inspect/…), stores, context, lifecycle, bindings, snippets and dispatched eventslist_sveltekit_routes— SvelteKit routes by directory convention (src/routes): +page, +page.server (load/actions), +layout, +server.ts (API) and +errorfind_svelte_effect_leaks— onMount with listeners/timers/subscriptions without cleanup in onDestroy (heuristic)find_svelte_unused_stores— stores (writable/readable/derived) unused in any template or script (heuristic)list_sveltekit_server_hooks— hooks.server.ts: handle (sequence), handleError and handleFetch with their structurelist_sveltekit_load_actions— load and actions per route with details (throw error/fail/redirect/params)list_react_files— .tsx/.jsx/.svelte files with lines
Node
list_api_endpoints— Express/Fastify/Koaanalyze_api_endpoint— handler call chain (→ service → repo), validation, auth middleware and next(err); resolves mounted routerslist_express_routers— sub-routers, mounts, global middleware in order and error-handlers (4 args)node_native_modules/node_entry_points/node_async_flownode_process_env— variables read withprocess.env(dot/bracket), crossed with the root.env*files: flags defined keys (✓) and undefined keys (⚠ must be set in the environment/CI), and lists.envkeys without any read in the code (orphans)find_event_emitter_leaks— EventEmitter listeners without their cleanup pair in scope (heuristic)find_sync_io_blocking—fs.*Syncin handlers/async that blocks the event loop (heuristic)find_unclosed_resources— streams/connections/http.request without close/end/destroy (heuristic)find_deprecated_apis—new Buffer,url.parse,util.is*,createCipher,require.extensions(heuristic)
Cross-framework
module_dependency_graph— relative imports/requires graph between modules, with cycles and modules without importersfind_test_mapping— production modules (src/) → tests that import them, and src/ without tests
Security and robustness (heuristics)
find_xss_vectors— XSS vectors: v-html (Vue),{@html}(Svelte), dangerouslySetInnerHTML (React), innerHTML/insertAdjacentHTML/document.writefind_sql_injection— query/execute with interpolated template literal or string concatenationfind_eval_sites— eval / new Function / Function() (dynamic execution)find_command_injection— exec/execSync/spawn with variable interpolationfind_hardcoded_secrets— keys/passwords/tokens with literal value, URLs with credentials, private keys and AWS keysfind_insecure_http— http://, ws:// WebSocket and cookies without Secure/HttpOnlyfind_silent_catches— empty catches, console-only, or without error binding (discarded error)find_event_listener_leaks— addEventListener/setInterval without removeEventListener/clearInterval in the same scope
Technical debt and quality (heuristics)
find_code_duplication— duplicated code blocks (copy-paste) between functions/methodsfind_todo_fixme— TODO / FIXME / HACK / XXX markers in commentsfind_unused_dependencies— package.json dependencies never imported in any filefind_ts_ignores— type suppressors @ts-ignore / @ts-nocheck / @ts-expect-errorfind_magic_numbers— numeric literals that are not 0/1 outside named constants
TypeScript types in depth (heuristics)
find_non_null_assertions— non-null assertionsexpr!(trust without verification)find_unsafe_type_casts—as any,as neverand double castas unknown as Xfind_loose_generics— type parameters without constraint or unused in the bodyfind_untyped_exports— exported functions/methods without return type or unannotated params
Limitations and heuristics
The bug-hunt tools (
find_unchecked_errors,find_unused_variables,find_dead_code,find_unimplemented_interfaces) are heuristics by design: they flag "possible" dead code and can produce false positives/negatives (indirect use via decorators, template refs or dynamic calls). The reference count is cross-file over the real AST (ts-morph), notgrep.find_dead_codeexcludes exported symbols and Angular lifecycle hooks (ngOnInit, etc.), which are invoked by the framework.find_dead_code/find_unused_variablesalso count identifiers from templates (.htmlin Angular,<template>block in Vue/Nuxt): a method used only from the template is not reported as dead.find_unimplemented_interfacesis heuristic: in TypeScript interface satisfaction is structural, so a class can satisfy one without declaring it inimplements. Empty interfaces and those extended by another interface are discarded.find_any_usagesis a type-debt heuristic: it detects ts-morph's semanticanynodes (: any,as any,<any>,any[], parameters/returns). It does not distinguish intentionalany(e.g. ananyat the boundary with untyped libraries) from accidental; it groups by file sorted by number of uses.find_unchecked_errorsonly considers known callees (fetch,fs.*, exec, spawn, query, DB client verbs…) and requires the line to be free ofawait/.catch/.then/Promise.all. Generic HTTP verbs (get,post,put,patch,delete,head,options) only count when the receiver is HTTP/axios (axios,http(s),client,request,api) — somap.get(...)is not flagged. It also detectsmap/forEachthat fire unawaited promises (fire-and-forget), excluding those already handled withawait/Promise.all/.catchon the same line. Node callback variants (fs.writeFile(path, data, cb),fs.readFile(p, cb)) are excluded because the callback receives the error.variable_xrefclassifies DEFINITION/WRITE/READ with ts-morph semantic references (findReferences); it is not interprocedural flow analysis.angular_template_analysisreports template identifiers without a class member. Members are resolved via ts-morph (incl.@Input/@Output, methods, getters/setters, constructor parameters); if there is no ts-morph project a RegEx fallback is used that can miss cases. Template pipes are resolved to the project's@Pipe/@Directiveclass (by class name or by the decorator'sname) and excluded from the "without a member" section; the realparseTemplateerrors are shown in "Compiler diagnostics".@Componentmetadata (analyze_angular_component,list_angular_components) is read structurally with ts-morph, with RegEx fallback.detect_frameworkis heuristic overpackage.json+ directory structure. A project that uses@vue/compiler-sfconly as a build dependency (without SFCs in the app code) is no longer classified as Vue. React is detected by dependency + presence of.tsx/.jsx; Next/Svelte by dependency.list_fileswithext='.vue'lists SFCs by directory walk (ts-morph does not parse.vue); the rest of the extensions come from the ts-morph project.inspect_functionandresolve_typeresolve top-level functions, nested functions andClass.methodmethods; arrow-functions are only shown ininspect_function.The analysis does not run
npm installon the analyzed project: it only readspackage.json,tsconfig.jsonand the source code.Vue SFC parsing is cached by
size:mtimeMssignature (same criterion as the ProjectManager): SFCs are not re-parsed on every tool call.analyze_vue_component: theComposablessection lists each composable once (dedup);defineSlotsis extracted by finding the real}>()closing so it does not cut on nested types ({ title: string }), anddefineModelsupports generics (defineModel<string>()).analyze_svelte_component: theRunes (Svelte 5)section lists the lines with runes ($state,$derived/$derived.by,$effect/$effect.pre,$props,$inspect,$bindable); the$:(classic reactivity) stay in their own section. Svelte 5 converts$:into runes, but they are not translated into each other: each syntax is reported where it appears.
Distribution (single-file)
The server can be packaged into a single self-contained JS file that includes all the
dependencies (TypeScript, ts-morph, Vue/Angular compilers). On the destination only Node ≥ 20
is needed — no npm, no node_modules, no copying the directory:
npm run dist:bundle # generates release/javascript-mcp-server.cjs (~26 MB)
./release/javascript-mcp-server.cjs # executable, shebang includedIt is the same server (103 tools), verified with stdio smoke:
initialize,tools/list, project loading, Vue analysis with@vue/compiler-sfcand semantic analysis with ts-morph.The
--externalare the optional template-engines that@vue/compiler-sfctries torequirelazily inside try/catch (twig, ejs, pug, handlebars, …); they are not used and do not affect the tools.The bundle is CJS (
format=cjs): even if the project is ESM, the final file is a single.cjs.The
release/directory is not versioned; regenerate it with the script after each change.
MCP client configuration
{
"mcpServers": {
"javascript": {
"command": "node",
"args": ["/path/to/javascript-mcp-server/dist/index.js"]
}
}
}Or using the single-file bundle:
{
"mcpServers": {
"javascript": {
"command": "/path/to/javascript-mcp-server/release/javascript-mcp-server.cjs"
}
}
}Structure
src/
├── index.ts # MCP server + tool registration
├── project-manager.ts # project loading, framework detection, ts-morph cache
├── analysis.ts # language semantic engine (ts-morph) + cross-framework bug-hunt
├── markdown.ts / version.ts
└── ast/
├── vue.ts # Vue interpretation (+ SFC cache by signature)
├── nuxt.ts # Nuxt conventions
├── angular.ts # Angular interpretation
├── react.ts # React / Next
├── svelte.ts # Svelte / SvelteKit (leaks, stores, hooks, load/actions)
├── node.ts # Node/Express/Fastify
├── security.ts # security (XSS, injection, secrets, …)
├── debt.ts # technical debt (duplication, unused deps, magic numbers)
├── cross.ts # module_dependency_graph and find_test_mapping
└── types.ts # TypeScript types in depth (non-null, casts, generics, exports)
test/
├── smoke.test.ts # smoke tests via InMemoryTransport
├── snapshot.test.ts # golden markdown snapshots (regenerate with npm run test:snapshots:update)
├── stress.test.ts # performance/incremental cache (npm run test:stress; generates the fixture in tmpdir)
├── generate-stress.ts # generator of the synthetic project of 240+ files used by stress.test.ts
├── snapshots/ # golden tool outputs
└── fixtures/ # example projects (vue-basic, vue-deep, nuxt-basic, nuxt-deep, angular-basic,
# angular-deep, react-basic, react-next-deep, next-basic, svelte-basic, sveltekit-basic,
# svelte-deep, node-express, node-deep, ts-deep, cross-modules, security-vulns,
# debt-vulns, js-pure, type-errors, callgraph-basic)Available Tools
103 toolsanalyze_angular_componentA
Analyzes a component: @Input/@Output, providers, constructor DI, lifecycle hooks.
Inputs: file (required), name (required).
analyze_angular_route_guardsC
Route guards and resolvers: which guards/resolvers each route uses (canActivate/canActivateChild/canActivateFn/canDeactivate/canLoad/canMatch/resolve) and where they are defined (classes or functions).
Inputs: name (required).
analyze_api_endpointA
Call chain of an endpoint: handler → service → repo, validation (zod/joi/validate*), auth middleware and next(err). Resolves mounted routers (app.use("/prefix", router)).
Inputs: name (required), path (required).
analyze_react_componentB
In-depth analysis of a React component: typed props, hooks with arguments, consumed contexts, custom hooks, early returns and memo/forwardRef. Deterministic (ts-morph).
Inputs: file (required), name (required).
analyze_react_stateB
State inventory per component: useState/useReducer/useRef/useSyncExternalStore with initial value and bindings (setters/dispatch).
Inputs: name (required).
analyze_svelte_componentB
In-depth analysis of a Svelte component: props, reactivity ($:), stores (writable/readable/derived), context (setContext/getContext), lifecycle, bindings, snippets and dispatched events.
Inputs: file (required), name (required).
analyze_vue_componentA
Analyzes a .vue component: props, emits, slots, composables, reactive state, provide/inject.
Inputs: file (required), name (required).
angular_dependency_graphC
DI dependency graph: @Injectable services and who consumes them.
Inputs: name (required).
angular_module_graphB
NgModules graph: declarations, imports and providers per module.
Inputs: name (required).
angular_template_analysisA
Template binding analysis with @angular/compiler: inputs, outputs, interpolations, pipes, structural directives, and references to identifiers without a class member.
Inputs: file (required), name (required).
detect_frameworkA
Detects the framework of the loaded project (Vue, Nuxt, Angular, Express, Fastify, Node, plain).
Inputs: name (required).
find_angular_change_detectionB
Change detection strategies per component (heuristic): without ChangeDetectionStrategy.OnPush, manual CD (detectChanges/markForCheck/detach/reattach) and components with OnPush.
Inputs: name (required).
find_angular_subscription_leaksA
Uncleaned subscriptions (heuristic): subscribe() in components/directives/services without ngOnDestroy/unsubscribe/takeUntil/async pipe in the class (comments are ignored).
Inputs: name (required).
find_any_usagesA
any usages in the project (type-debt heuristic): : any annotations, as any, <any>, parameters and returns typed as any. Grouped by file.
Inputs: name (required), max_results.
find_check_implementationsA
Checks which classes implement an interface or extend another (inheritance).
Inputs: name (required), type_name (required).
find_code_duplicationA
Duplicated code blocks (heuristic): sequences of identical lines in ≥2 functions (copy-paste).
Inputs: name (required).
find_command_injectionA
Possible command injection (heuristic): exec/execSync/spawn with variable interpolation.
Inputs: name (required).
find_dead_codeB
Functions and private methods that are not referenced locally (dead code).
Inputs: name (required).
find_deprecated_apisB
Deprecated Node APIs: new Buffer, url.parse, util.is*, createCipher, require.extensions (heuristic).
Inputs: name (required).
find_eval_sitesC
Usage of eval / new Function / Function() (heuristic): dynamic code execution.
Inputs: name (required).
find_event_emitter_leaksC
EventEmitter listeners registered without their cleanup pair in the same scope (heuristic).
Inputs: name (required).
find_event_listener_leaksA
Listeners and timers without cleanup (heuristic): addEventListener/setInterval without removeEventListener/clearInterval in the same scope.
Inputs: name (required).
find_hardcoded_secretsB
Hardcoded secrets (heuristic): keys/passwords/tokens with literal values, URLs with credentials, private keys and AWS keys.
Inputs: name (required).
find_high_complexityA
Functions/methods with high cyclomatic complexity (technical-debt heuristic), grouped by file.
Inputs: name (required), max_results, max_complexity.
find_insecure_httpB
Insecure HTTP (heuristic): http:// (not https), WebSocket ws:// and cookies without explicit Secure/HttpOnly.
Inputs: name (required).
find_long_functionsC
Functions/methods with a long body (technical-debt heuristic).
Inputs: name (required), max_lines.
find_loose_genericsA
Type parameters without constraint (<T> instead of <T extends ...>) or unused in the body (heuristic).
Inputs: name (required).
find_magic_numbersC
Magic numbers (heuristic): numeric literals that are not 0/1 outside named constants (config).
Inputs: name (required).
find_non_null_assertionsA
Non-null assertions expr! (type-debt heuristic): assume the value is not null/undefined without checking it.
Inputs: name (required).
find_react_effect_leaksA
useEffect that registers listeners/timers/subscriptions (addEventListener/setInterval/.subscribe) without cleanup (return) (heuristic).
Inputs: name (required).
find_react_memo_opportunitiesC
Components with non-primitive props (objects/arrays/functions) without memo() and JSX with new values per render (performance heuristic).
Inputs: name (required).
find_referencesC
Finds all references to a symbol in the project.
Inputs: name (required), symbol (required).
find_silent_catchesA
Silent catches (heuristic): empty catch blocks, console-only, or those that discard the error without binding or re-throw.
Inputs: name (required).
find_sql_injectionB
Possible SQL injection (heuristic): query/execute calls with interpolated template literal or string concatenation.
Inputs: name (required).
find_svelte_effect_leaksB
onMount that registers listeners/timers (addEventListener/setInterval/subscribe) without cleanup in onDestroy (heuristic).
Inputs: name (required).
find_svelte_unused_storesA
Stores (writable/readable/derived) declared/exported but not used in any template or script (heuristic).
Inputs: name (required).
find_sync_io_blockingA
fs.*Sync inside Express handlers or async functions: blocks the event loop (heuristic).
Inputs: name (required).
find_test_mappingA
Maps production modules (src/) to their tests (.test./.spec.) by imports; also lists src/ modules without tests.
Inputs: name (required).
find_todo_fixmeC
TODO / FIXME / HACK / XXX markers in comments (pending debt).
Inputs: name (required).
find_ts_ignoresA
Type suppressors: @ts-ignore / @ts-nocheck / @ts-expect-error (type debt).
Inputs: name (required).
find_unchecked_errorsA
Detects async calls (fetch, fs.*, exec, etc.) without await or .catch — possible unhandled error.
Inputs: name (required).
find_unclosed_resourcesA
Streams/connections/http.request without close/end/destroy in the same scope (heuristic).
Inputs: name (required).
find_unimplemented_interfacesB
Interfaces with methods that no class explicitly implements (heuristic: TS is structural).
Inputs: name (required).
find_unsafe_type_castsA
Unsafe type casts (heuristic): as any, as never and double cast as unknown as X.
Inputs: name (required).
find_untyped_exportsA
Exported functions/methods without return type or with unannotated parameters (heuristic of public API without types).
Inputs: name (required).
find_unused_dependenciesB
package.json dependencies that are not imported in any file (heuristic).
Inputs: name (required).
find_unused_variablesB
Module-level (top-level) variables that are not used in the rest of the file.
Inputs: name (required).
find_vue_provide_injectA
Cross-file provide/inject graph: which keys each file provides and which are injected, with exported-constant resolution and orphan keys (inject without provide).
Inputs: name (required).
find_vue_template_undefinedA
Identifiers used in the that do not resolve to any Vue binding/local/builtin (heuristic: possible typo or undeclared variable).
Inputs: name (required).
find_vue_unused_reactiveA
Declared reactive state (ref/reactive/computed/shallowRef) not used in the template or the rest of the script (heuristic).
Inputs: name (required).
find_xss_vectorsA
XSS vectors (heuristic): v-html (Vue), {@html} (Svelte), dangerouslySetInnerHTML (React), innerHTML/insertAdjacentHTML/document.write (DOM).
Inputs: name (required).
function_callersA
Finds the calls to a function (invocations with parentheses).
Inputs: name (required), symbol (required).
function_call_graphC
Local call graph: shows which functions call which functions.
Inputs: name (required), function_name.
function_metricsB
Metrics per function/method: cyclomatic complexity, body lines and parameters. Optional threshold filters.
Inputs: name (required), min_lines, min_complexity.
get_file_contentA
Returns the content of a project file. It is resolved by matching a path suffix.
Inputs: name (required), rel_path (required).
get_type_hierarchyB
Hierarchy of a type: what it extends/implements and who extends/implements it.
Inputs: name (required), type_name (required).
inspect_classA
Inspects a class: decorators, extends/implements, fields, methods, constructor.
Inputs: name (required), class_name (required).
inspect_functionA
Inspects a function or method (class.method): signature, parameters, doc, body.
Inputs: name (required), symbol (required).
list_angular_componentsA
Lists Angular components (@Component) with selector and standalone.
Inputs: name (required).
list_angular_modulesC
Lists NgModules.
Inputs: name (required).
list_angular_routesB
Routes defined with Routes/RouterModule (path -> component/loadChildren).
Inputs: name (required).
list_angular_servicesB
Lists @Injectable services.
Inputs: name (required).
list_angular_standalone_componentsA
Component inventory: standalone (with their composition imports) vs non-standalone (NgModule-dependent). Angular 19+: standalone by default.
Inputs: name (required).
list_api_endpointsB
Detects HTTP endpoints: Express (app/router.get/post/...), Fastify, Koa.
Inputs: name (required).
list_express_routersC
Express sub-routers (express.Router()) and their mounting (app.use), global middleware order and error-handlers (4 args).
Inputs: name (required).
list_filesA
Lists the TS/JS files of the project with their line count. Optionally filter by extension.
Inputs: name (required), ext.
list_functionsA
Lists all functions and class methods, with signature, file and line.
Inputs: name (required).
list_loaded_projectsA
Lists the currently loaded projects.
Inputs: no named parameters.
list_next_api_routesA
API routes of the Next app router: route.ts with HTTP methods (GET/POST/...) and dynamic params, plus middleware.ts with its matcher.
Inputs: name (required).
list_next_data_fetchingB
Data fetching/ISR/cache in the Next app router: revalidate, generateStaticParams, generateMetadata, dynamicParams, fetch with next.revalidate/tags and use client/server directives.
Inputs: name (required).
list_next_routesB
Next.js routes: app router (app/**/page.tsx) and pages router (pages/*.tsx).
Inputs: name (required).
list_nuxt_composablesA
Lists the auto-imported composables in composables/ and utils/.
Inputs: name (required).
list_nuxt_page_metaB
definePageMeta per page: layout, middleware, title, validate, pageTransition and name.
Inputs: name (required).
list_nuxt_pagesB
Routes generated from pages/ (with dynamic params and catch-all) and from server/api.
Inputs: name (required).
list_nuxt_plugins_middlewareA
Lists Nuxt plugins and middleware.
Inputs: name (required).
list_nuxt_server_apiB
Routes of the server/ API (server/api, server/routes) with HTTP method.
Inputs: name (required).
list_react_componentsB
React components: .tsx/.jsx files with JSX, their exports and used hooks.
Inputs: name (required).
list_react_contextC
React contexts cross-file: createContext, providers (<X.Provider>) and consumers (useContext).
Inputs: name (required).
list_react_filesA
Lists the .tsx/.jsx/.svelte files of the project with their line count.
Inputs: name (required).
list_react_hooks_depsA
Inventory of useEffect/useMemo/useCallback with their dependency array (heuristic: marks deps used in the callback but missing from the array).
Inputs: name (required).
list_svelte_componentsD
Svelte components: .svelte files with props (export let), stores and dispatched events.
Inputs: name (required).
list_sveltekit_load_actionsA
load and actions of +page.server.ts/+layout.server.ts per route, with details (throw error/fail/redirect/params).
Inputs: name (required).
list_sveltekit_routesA
SvelteKit routes by directory convention (src/routes): +page.svelte, +page.server.ts (load/actions), +layout, +server.ts (API) and +error.
Inputs: name (required).
list_sveltekit_server_hooksC
hooks.server.ts: handle (with sequence()), handleError and handleFetch with their structure.
Inputs: name (required).
list_ts_typesA
Lists interfaces, type aliases, enums and classes with their members.
Inputs: name (required).
list_variablesA
Lists module-level (top-level) variables with type and line.
Inputs: name (required).
list_vue_componentsB
Lists the .vue files of a project.
Inputs: name (required).
load_js_projectA
Loads a JavaScript/TypeScript project directory for deterministic analysis (ts-morph). Detects Vue, Nuxt, Angular, Express, Fastify or Node.
Inputs: source (required), alias.
module_dependency_graphB
Dependency graph between project modules: relative imports/requires resolved to files, with cycle detection and modules without importers.
Inputs: name (required).
node_async_flowC
Async patterns: await/Promise, .catch, EventEmitter, timers.
Inputs: name (required).
node_entry_pointsC
Project entry points: package.json scripts, main, listen(), shebang.
Inputs: name (required).
node_native_modulesD
Usage of native Node modules (node:fs, path, etc.) with imports/require.
Inputs: name (required).
node_process_envC
Environment variables read with process.env in the project (environment dependencies).
Inputs: name (required).
nuxt_auto_importsB
Shows the auto-imports available in Nuxt (Vue composables + Nuxt utilities).
Inputs: name (required).
nuxt_configB
Shows the content of nuxt.config.ts.
Inputs: name (required).
program_summaryA
Executive summary of a loaded project: framework, files, functions, types, variables and capabilities.
Inputs: name (required).
refresh_js_projectA
Rescans the file tree and incrementally syncs the ts-morph project: only re-reads files whose size or mtime changed.
Inputs: name (required).
resolve_typeA
Resolves a symbol to its definition: function, type alias, interface, class or enum.
Inputs: name (required), symbol (required).
search_sourceB
Searches for text in the code of all project files (case-insensitive).
Inputs: name (required), query (required).
typecheck_projectB
Real type errors of the project: TypeChecker diagnostics (getPreEmitDiagnostics via ts-morph), grouped by file.
Inputs: name (required), max_diagnostics.
unload_js_projectB
Unloads a project from memory.
Inputs: name (required).
variable_xrefA
Data-flow cross-reference of a variable: where it is defined, read and written (semantic DEFINITION/WRITE/READ classification via ts-morph).
Inputs: name (required), symbol (required).
vue_template_binding_analysisA
Analyzes which script variables are used in the of a .vue component.
Inputs: file (required), name (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 103 tools
Many tools have overlapping boundaries: find_any_usages and find_unsafe_type_casts both flag `as any`, find_event_emitter_leaks and find_event_listener_leaks sound nearly identical, and find_unused_varibles vs. find_dead_code cover adjacent territory. With 103 tools, an agent is likely to mis-select among the numerous find_* detectors despite their individual descriptions.
The dominant verb_noun pattern (list_*, find_*, analyze_*, inspect_*) is clear and predictable. A notable minority of noun-first tool names (program_summary, nuxt_config, module_dependency_graph, node_process_env) and framework-specific naming variants prevent a perfect score, but the overall convention is still readable and mostly consistent.
At 103 tools, this server is extremely over-scoped, far beyond the 50+ extreme-mismatch threshold. Even for a broad JS/TS analysis domain, a single MCP server of this size creates impractical selection overhead and should be split into multiple focused servers.
The server covers an unusually wide range of read-only static analysis needs: project lifecycle, symbols, types, call graphs, type-checking, framework-specific analysis, API detection, security heuristics, and technical-debt finders. Minor gaps exist (e.g., no general package.json/tsconfig reader, no direct import-list tool), but nothing critical blocks understanding a loaded project.
Related MCP Connectors
The official Svelte MCP server providing docs and autofixing tools for Svelte development
Repository knowledge graph MCP server for codebase understanding and debugging.
MCP server for static security analysis of Android source code
Self-hosted MCP server: 26 deterministic dev, security, and EVM tools.
Related MCP Servers
- AlicenseAqualityDmaintenanceA TypeScript-aware MCP server that provides coding agents with repository discovery, code intelligence, and web project context for local codebases. It enables deep symbol navigation, diagnostic reporting, and structural analysis of monorepos without requiring full IDE integration.711 npm1MIT
- AlicenseAqualityDmaintenanceMCP server for comprehensive code analysis, navigation, and quality assessment across 25+ programming languages.988MIT
- AlicenseNot gradedqualityDmaintenanceA local MCP server that provides Sonar-grade static analysis (bugs, vulnerabilities, code smells) for TypeScript/JS and C# repositories, with CLI and dashboard support.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server providing 29 tools across 5 layers for semantic TypeScript/JavaScript code intelligence, enabling AI agents to find references, trace impacts, guard APIs, and explain errors without text-search false positives.1MIT