Agent-Safe Angular Components: Copy-Paste MCP + Skills Setup for Verified AI Development With Angular v22, the MCP server and Angular Skills stack enables deterministic, verifiable agent-assisted development. The setup requires configuring MCP servers for Angular CLI and Chrome DevTools, installing Angular skills packages, and implementing exhaustive `@switch` blocks with `assertNever` guards to prevent agents from shipping broken code. Signal Forms further reduce agent errors by providing type-safe, signal-driven form handling that fails compilation on unhandled cases. With Angular v22, the MCP Model Context Protocol server + Angular Skills stack transforms agent-assisted development from a risky proposition into a deterministic, verifiable workflow. This guide walks you through configuring your environment, setting up the right skills, and building agent-safe components. Ensure you have: node --version npm install -g @angular/cli@latest The Angular CLI ships with the MCP server built-in. Configure it in your agent's settings: For Gemini CLI / Cursor / Claude Code using .gemini/settings.json or equivalent : { "mcpServers": { "angular-cli": { "command": "npx", "args": "-y", "@angular/cli", "mcp" }, "chrome-devtools": { "command": "npx", "args": "chrome-devtools-mcp@latest" } } } For JetBrains IDEs Settings → Tools → MCP : angular-cli npx -y @angular/cli mcp chrome-devtools npx chrome-devtools-mcp@latest Test the connection: npx @angular/cli mcp --health-check You should see a list of available tools. Common ones: ng lint — runs the linter on your project get examples — fetches best-practice code examples get best practices — retrieves the Angular Best Practices Guide search documentation — queries angular.dev dev server.wait for build — blocks until build succeeds/fails critical for agents dev server.start — starts the dev server dev server.stop — stops the dev serverSkills are installed separately from MCP tools. They augment the agent's knowledge without adding token overhead to every request. Install the official Angular skills: Using npx skills package npx @anthropic-ai/skills add \ https://github.com/angular/skills/blob/main/angular-developer/SKILL.md \ --name angular-developer npx @anthropic-ai/skills add \ https://github.com/angular/skills/blob/main/angular-new-app/SKILL.md \ --name angular-new-app Or, if your agent supports URL-based skills, reference directly: /skills install https://github.com/angular/skills/blob/main/angular-developer/SKILL.md /skills install https://github.com/angular/skills/blob/main/angular-new-app/SKILL.md Verify installation: In your agent Gemini CLI, etc. /skills list You should see angular-developer and angular-new-app listed. This gives agents visibility into your running application: npx chrome-devtools-mcp@latest --install Test it: npx chrome-devtools-mcp@latest --health-check With MCP + Skills configured, your agent has access to build verification and browser visibility. Now write code that agents can safely modify. Always use exhaustive @switch https://dev.to/switch blocks. This prevents agents from introducing unhandled cases. // ✓ Good: Type-safe, exhaustive union export type VehicleStatus = 'idle' | 'transit' | 'maintenance' | 'critical'; export class FleetDetailComponent { status = signal