angular-signal-forms-migration-mcp
Assists with migrating Angular Reactive Forms to Angular Signal Forms by finding form constructs in the codebase, supplying verified before-to-after migration recipes, analyzing migration complexity, and checking migrated code for known issues.
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., "@angular-signal-forms-migration-mcp Find all FormBuilder usages in src/app/checkout and tell me which need judgment calls."
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.
angular-signal-forms-migration-mcp
An MCP server that helps an AI coding agent migrate Angular Reactive Forms to Angular Signal Forms.
It finds the Reactive Forms constructs in your codebase, separates the safe mechanical renames from the ones that need a human decision, and hands back before→after recipes that are verified against a real Angular release rather than written from memory.
Install
Requires Node.js 20+. Nothing to clone — npx fetches it on demand.
claude mcp add signal-forms-migration -- npx -y angular-signal-forms-migration-mcp@latestOr add it to any MCP client config:
{
"mcpServers": {
"signal-forms-migration": {
"command": "npx",
"args": ["-y", "angular-signal-forms-migration-mcp@latest"]
}
}
}@latest makes npx re-resolve on every launch, so restarting your editor picks up new
releases. Without it, npx keeps serving whichever version it cached first — repoint the
config at @latest, or clear the cache with npm cache clean --force.
The server also checks for a newer version once a day and writes a one-line notice to
stderr. It is throttled, times out after 2 seconds, never touches stdout, and stays
silent on any failure. To turn it off, add
"env": { "SIGNAL_FORMS_MCP_NO_UPDATE_CHECK": "1" } to the config block above. To see what
is actually running:
npx angular-signal-forms-migration-mcp@latest --versionDo not npm install this into your Angular app. It is a standalone process your
editor spawns, not a library your project depends on. npx keeps it in a cache outside
your project entirely.
It detects and advises. It never edits your code. There is no tool here that writes to your source files, and there never will be. The server returns findings and recipes; your agent decides what to change and makes the edits, so every change still goes through your normal review and version control.
Related MCP server: VA Form Generation MCP Server
What it looks like
> Migrate the forms in src/app/checkout to Signal Forms.
1. find_form_candidates { path: ".../src/app/checkout" }
→ 9 findings across 2 files: 6 mechanical, 3 judgment
(the FormArray of line items is judgment — its shape changes)
2. get_signalforms_recipe { construct: "FormBuilder.group" }
→ before/after + caveats
3. the agent applies the edits, you review the diff
4. verify_migration { path: ".../checkout.component.ts" }
→ traps that compile and are still wrongPrerequisites it checks before advising anything
A migration report leads with the things that make migration impossible, because a plan you cannot execute is worse than no plan:
Angular 21+.
@angular/forms/signalsdoes not exist before v21. Below that the server returns an upgrade plan instead of a migration plan.Declared and installed versions agree. An old branch checked out over newer
node_modulesstraddles the v21 line. Migrating against what is installed means the nextnpm cireverts you to a version where the target API is absent — so the server refuses to pick a side and says so.moduleResolutionis exports-aware (bundler,node16, ornodenext).@angular/forms/signalsis a package-exports subpath; legacynoderesolution cannot see it, and the import fails with an error that looks like a missing dependency.
Tools
Tool | What it answers |
| Where are the Reactive Forms constructs, and which need a person? |
| What is the verified before→after for this construct? |
| How big is this job, and which file should I start with? |
| Give me the whole thing as one markdown document. |
| I already migrated this — what compiles but is still wrong? |
| I am below v21. How do I get to a version that supports this? |
Full parameters, response shapes and scope limits: docs/TOOLS.md.
How the recipes are verified
Signal Forms is new and is not reliably present in any model's training data — recipes written from memory are wrong in ways that look right. So none of these are.
Recipes are verified against Angular v22 using the official Angular CLI MCP server,
cross-checked against angular.dev, and carry structured provenance
(verifiedAgainstVersion, retrievedISO, sources) that ships in the tool response so
your agent can judge how current the advice is. A recipe with an empty sources list
fails CI.
Where the docs do not answer the question, the recipe says so in its caveats rather
than inventing an answer — UNVERIFIED — confirm on <url>, or UNVERIFIED — tool-authored guidance where Angular documents no migration path at all (the RxJS stream tiers are the
main case: the primitives are documented and compile, but choosing between them is this
tool's judgement, not Angular's). 14 of 37 recipes currently carry such a marker. That
is the honest part of the output, not an oversight — and a test keeps this number true.
The recipes also compile. CI installs a real @angular/forms@22 and typechecks
fixtures exercising every API the recipes use, so a recipe naming a function that does not
exist — or calling it with the wrong argument shape — fails the build. That is what
established disabled(path, { when }) as the v22 signature; the docs demonstrate neither
it nor the nested schema() + apply() composition.
Two things this caught that memory gets wrong:
The binding directive is
[formField]/FormField— not[control]/Control, which appeared in pre-release v21 material and is what models reproduce.disabled()/hidden()gained an options-object form on v22 and marked the bare callback@deprecatedrather than removing it — so a v21-shaped rule still compiles, with a warning. Established by diffing the shipped overloads, not the guides.
Recipes whose behaviour genuinely differs across releases carry a VERSION-SENSITIVE
caveat naming the form each version takes, and the server resolves them against your
project's detected version. Read the caveats array — that is where the sharp edges
live.
The re-verification procedure for a new Angular release is REVERIFICATION.md.
It tells you when there is no clean answer
Not every Reactive Forms pattern has a Signal Forms equivalent, and a migration tool that
pretends otherwise is worse than none. Form streams are graded by the RxJS operators in
their .pipe() chain:
Tier | Operators | Answer |
trivial | none / bare |
|
moderate |
|
|
hard |
| no direct equivalent |
For the hard tier the recipe says so outright and offers three real strategies — async
validation rules, rxResource, or keeping RxJS behind toObservable/toSignal — rather
than inventing a one-liner that does not exist.
Likewise addControl() / removeControl() have no counterpart at all: the field tree is
derived from the model signal's type. The recipe explains the three actual answers instead
of implying an API that would not compile.
What it will not do
Edit your files. By design, permanently.
Prove your migration is correct.
verify_migrationproves the absence of known defects. Run it aftertsc, not instead of it.Migrate template-driven forms.
ngModelmigration is undocumented upstream; guessing it would be the exact failure mode this project exists to avoid.Read template literals with
${...}substitutions, because their text is not what the Angular compiler sees. Inlinetemplate:strings without substitutions are scanned.Scan CSS/SCSS, or resolve types across files — detection is a single-file syntactic pass, not a
ts.Program.
ROADMAP.md tracks these; the migration report repeats them in its own "Scope" section rather than letting the totals imply completeness.
Why not just the official Angular MCP server?
Use both. The official @angular/cli MCP server knows about Angular; this one knows
about migration — which constructs exist in your code, which are mechanical, which need
a decision, and what the verified replacement is. Your agent can pull findings and recipes
from here, then confirm anything current or project-specific there before it edits.
Status
Feature-complete through M16. Six tools ship, with doc-verified recipes covering basic
constructs, arrays, runtime shape mutation, async validators, custom controls, the three
RxJS stream tiers, reading and writing form state, submission, model-shape constraints,
CSS status classes, spec-file migration, and the .html template layer — bindings, state
reads, the <select multiple> blocker, and the silent error-key rename.
The transport is stdio, so stdout is reserved for the protocol and all logging goes to stderr.
Contributions and local development: CONTRIBUTING.md.
License
MIT
Available Tools
6 toolsanalyze_migration_complexitySummarise the size and shape of a Signal Forms migrationARead-only
Scans .ts and .html files (or a directory) and summarises the migration: total findings, counts per construct, the mechanical/judgment split, and a suggested file order (simplest first, so all-mechanical files land before the ones needing design decisions). Read-only: this tool never modifies your files.
Inputs: path (required). Returns: byConstruct, judgmentCount, totalFindings, angularVersion, +6 more
find_form_candidatesFind Angular Reactive Forms migration candidatesARead-only
Scans .ts and .html files (or a directory) for Angular Reactive Forms constructs and classifies each finding as "mechanical" (safe to transliterate) or "judgment" (a human must decide the target design). Read-only: this tool never modifies your files. Results are PAGED (default 200 findings) — check incomplete: non-null means there is more, and says how to get it. Filter with constructs / classification to work one decision at a time.
Inputs: path (required), limit, offset, constructs, +1 more. Returns: page, files, incomplete, totalFindings
get_angular_upgrade_planPlan the Angular upgrade that Signal Forms requiresARead-only
Signal Forms needs Angular 21+. When a project is older, this returns the upgrade plan as markdown, reproducing angular.dev/update-guide from Angular's own published step data — not written by this server. The current version is detected from the project; you choose application complexity (1 Basic, 2 Medium, 3 Advanced) and whether you use ngUpgrade, Angular Material or Windows, exactly as the official guide asks. Read-only: this tool never modifies your files.
Inputs: path (required), level, toMajor, windows, +3 more. Returns: markdown
get_migration_reportGenerate a Signal Forms migration reportARead-only
Scans .ts and .html files (or a directory) and returns a MARKDOWN REPORT combining findings, complexity, a suggested file order, the constructs present with their recipe names, and a warning for any version-sensitive recipe involved. Returns the report as a string — it does NOT write a file; you decide whether to save it. Read-only: this tool never modifies your files.
Inputs: path (required). Returns: markdown
get_signalforms_recipeGet an Angular Signal Forms migration recipeARead-only
Returns a verified before/after migration recipe for a single Reactive Forms construct (e.g. "FormControl", "FormBuilder.group", "Validators.required"). An unknown construct returns found:false plus the list of available constructs — it is never an error. Read-only: this tool never modifies your files.
Inputs: construct (required). Returns: after, found, before, caveats, +4 more
verify_migrationVerify an already-migrated Signal Forms fileARead-only
Reads code you have ALREADY migrated and reports Signal Forms traps that COMPILE and are still wrong — a missed signal call in a position TypeScript does not check, a deprecated-but-valid v21 rule shape, a pre-release API name, an AbstractControl left in a form() model, Reactive Forms imports left behind. Run it after tsc, not instead of it: anything the compiler already reports is deliberately not repeated here. Read-only. It proves the ABSENCE OF KNOWN DEFECTS, never correctness.
Inputs: path (required). Returns: files, checksRun, infoCount, disclaimer, +4 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Most tools are clearly distinct in purpose: discovery, complexity analysis, report generation, recipe lookup, upgrade planning, and verification. The only potential overlap is between find_form_candidates, analyze_migration_complexity, and get_migration_report, but their distinct output shape (raw findings vs. summary vs. combined report) keeps them distinguishable.
All tool names follow a consistent verb_noun snake_case pattern: get_*, find_*, analyze_*, verify_*. The verbs and nouns are explicit and predictable, so an agent can infer tool behavior from the name.
Six tools is well-scoped for a migration-assist server. Each tool covers a necessary part of the migration workflow—candidate discovery, recipe lookup, complexity analysis, report generation, upgrade planning, and post-migration verification—without redundancy or bloat.
The tool surface covers the full lifecycle of the migration assistance: analyzing the existing code, obtaining recipes, generating reports, planning version upgrades, and verifying the migrated result. It lacks a tool that applies the migration automatically, but the server explicitly positions itself as read-only and focuses on verification rather than execution.
Maintenance
Related MCP Connectors
Dated, verified API breakages for coding agents, plus a local scan for them in your existing code.
Scores your code across 12 areas, with findings, fix prompts, and re-assessment in your AI agent
Find retiring AI models and outdated API SDKs in your code, with dates, replacements and guides.
Code intelligence platform for AI agents. 20 tools for architecture, security & impact analysis.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables LLMs to apply Martin Fowler's 71+ refactoring patterns to codebases through a pluggable, language-agnostic architecture. Supports previewing and applying refactorings, analyzing code smells, and inspecting code structure with safe-by-default operations.523 PyPI5MIT
- AlicenseBqualityDmaintenanceProvides tools for auditing and fixing scaffolded VA forms to ensure they follow best practices and VA.gov content standards. Enables automated validation, agent prompt generation, and orchestration of form fixes across any vets-website workspace.51MIT
- AlicenseBqualityDmaintenanceEnables AI agents to safely upgrade JavaScript and TypeScript projects through dependency analysis, upgrade path detection, breaking change identification, codemod application, and PR summary generation.149 npmMIT
- AlicenseNot gradedqualityCmaintenanceProvides symbol-level dependency analysis and LLM-ready migration prompts for TypeScript/JavaScript projects, enabling AI editors to scan projects, analyze packages, and generate refactoring prompts.66 npm19MIT