JavaScript Support in Maguyva: AI Search for Mixed Runtime Repos
Useful when a repo mixes CommonJS, ESM, task scripts, tests, and older application code.
Extensions
.cjs, .js, .mjs, .spec.js, +2 more
Free tier available. See plans →
Maguyva supports TypeScript with AST parsing and symbol extraction so AI agents can trace interfaces, implementations, shared packages, and JSX-heavy application code across monorepos.
TypeScript is the language where many teams expect AI-assisted refactoring to finally feel safe. The type system helps, but it does not remove the real problem: shared packages, DTOs, generated clients, React components, tests, and app code all pulling on the same names across a large repo.
For TypeScript, the standard is higher than “it understands syntax.” The agent needs to follow the contract from definition to implementation to impact radius before it edits a shared type, hook, or client.
Maguyva extracts classes, methods, interfaces, and type aliases across .ts, .mts, .cts, and the common TypeScript file variants around tests and stories. Member prefixes are normalized, but class-qualified identifiers are preserved, which helps when a repo has both a bare helper name and a class-scoped method with the same final segment.
JSX is treated as a real structural signal rather than stray markup, and symbol expectations explicitly skip a lot of test, story, and config paths. That matters in monorepos because otherwise the agent spends too much time rediscovering scaffolding instead of the actual implementation surface.
Three starting patterns are usually enough:
find_symbol when you already know the interface, type alias, hook, or service name.dependency_search before changing shared types or clients that may fan out across packages.structural_search when you need a code shape, not a keyword match, for example repeated component or method patterns.For conceptual questions like “follow the checkout submission path,” get_task_context is often a better first hop than a raw search.
This page is strongest for web and platform monorepos where TypeScript is the coordination layer for multiple packages. If your repo still includes a lot of older JS, read the JavaScript guide. If your question is really “can the agent hold app code and infra context together?” pair this with Terraform.
Best fit
Agent workflows
Engine details
Useful MCP entry points
find_symbol
Start here when you know the shared interface, type alias, hook, or service you want to inspect.
dependency_search
Use it before changing a shared DTO or client to get a realistic impact radius across packages.
structural_search
Use AST-level search when you need a pattern, not a string match, for example repeated component or method shapes.
Related guides
Useful when a repo mixes CommonJS, ESM, task scripts, tests, and older application code.
Extensions
.cjs, .js, .mjs, .spec.js, +2 more
Useful when infrastructure code is part of the repo context and not something the agent should hand-wave past.
Extensions
.tf, .tfvars