<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: shivu k</title>
    <description>The latest articles on DEV Community by shivu k (@shivu_k_23def8e683da7e13a).</description>
    <link>https://dev.to/shivu_k_23def8e683da7e13a</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3324892%2Fed304083-148e-4883-9b51-a81053061c18.jpg</url>
      <title>DEV Community: shivu k</title>
      <link>https://dev.to/shivu_k_23def8e683da7e13a</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shivu_k_23def8e683da7e13a"/>
    <language>en</language>
    <item>
      <title>Angular CLI MCP Server Setup: VS Code &amp; Copilot CLI Guide</title>
      <dc:creator>shivu k</dc:creator>
      <pubDate>Thu, 24 Sep 2026 10:37:12 +0000</pubDate>
      <link>https://dev.to/shivu_k_23def8e683da7e13a/angular-cli-mcp-server-setup-vs-code-copilot-cli-guide-2eme</link>
      <guid>https://dev.to/shivu_k_23def8e683da7e13a/angular-cli-mcp-server-setup-vs-code-copilot-cli-guide-2eme</guid>
      <description>&lt;p&gt;AI coding assistants are brilliant until they confidently hallucinate an API from three versions ago or guess your project setup completely wrong. For Angular developers, the pain is familiar: asking an LLM to generate a component and watching it hand back legacy &lt;code&gt;*ngIf&lt;/code&gt;, &lt;code&gt;*ngFor&lt;/code&gt;, or module declarations from Angular 14.&lt;/p&gt;

&lt;p&gt;The core issue has always been twofold: &lt;strong&gt;stale training data&lt;/strong&gt; and &lt;strong&gt;zero runtime awareness of your local workspace&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;To bridge this gap, the Angular team rolled out support for the &lt;strong&gt;Model Context Protocol (MCP)&lt;/strong&gt; via the Angular CLI (&lt;code&gt;@angular/cli mcp&lt;/code&gt;). By wiring an MCP server directly into your AI workflow, your tools gain active eyes and hands—querying real-time workspace schemas and fetching up-to-date documentation straight from &lt;code&gt;angular.dev&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Here is how to set up the Angular CLI MCP server across both &lt;strong&gt;VS Code&lt;/strong&gt; and the &lt;strong&gt;standalone GitHub Copilot CLI&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Core Concept: Bye-Bye Static "AI Skills"
&lt;/h2&gt;

&lt;p&gt;Previously, developers used custom system prompts or static markdown "rules" to teach AI how to write modern Angular code. MCP makes that obsolete. Instead of reading a static text file, your AI now dynamically queries active tools:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;code&gt;list_projects&lt;/code&gt;&lt;/strong&gt;: Automatically reads your &lt;code&gt;angular.json&lt;/code&gt; so the AI knows your workspace structure, source roots, and application targets.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;code&gt;search_documentation&lt;/code&gt;&lt;/strong&gt;: Scans the live &lt;code&gt;angular.dev&lt;/code&gt; documentation site in real-time, ensuring the AI suggests modern syntax (like &lt;code&gt;@if&lt;/code&gt;, &lt;code&gt;@for&lt;/code&gt;, and &lt;code&gt;@defer&lt;/code&gt; control flows) instead of legacy directives.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;code&gt;get_best_practices&lt;/code&gt;&lt;/strong&gt;: Enforces official style guidelines and modern signals out of the box.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Architecture Flow: How MCP Powers the Agent
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr5futwmqti98kgs06wep.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr5futwmqti98kgs06wep.png" alt="Architecture diagram showing Angular CLI MCP server bridging developer intent from VS Code and GitHub Copilot CLI to local workspace configs and live angular.dev documentation" width="800" height="459"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Plaintext&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;┌─────────────────────────────────────────────────────────────────────────────┐
│                            DEVELOPER / IDE                                  │
│  "Add a user feed component with signals and zoneless change detection"    │
└──────────────────────────────────────┬──────────────────────────────────────┘
                                       │
                                       ▼
┌─────────────────────────────────────────────────────────────────────────────┐
│                      AI AGENT (VS Code / Copilot CLI)                       │
│  Recognizes intent ➔ Queries Angular MCP tools instead of guessing         │
└───────────────────────┬───────────────────────────────┬─────────────────────┘
                        │                               │
       TOOL: list_projects &amp;amp; workspace                  │ TOOL: search_documentation &amp;amp;
       configuration                                    │       get_best_practices
                        ▼                               ▼
┌──────────────────────────────────────┐  ┌───────────────────────────────────┐
│     LOCAL WORKSPACE CONTEXT          │  │     LIVE ANGULAR.DEV DOCS         │
│ • Reads angular.json                 │  │ • Current Signals &amp;amp; Effects API  │
│ • Identifies project roots &amp;amp; targets │  │ • Modern built-in Control Flow    │
│ • Respects existing tsconfig/rules   │  │ • Zoneless &amp;amp; OnPush patterns      │
└───────────────────────┬──────────────┘  └─────────────┬─────────────────────┘
                        │                               │
                        └───────────────┬───────────────┘
                                        │
                                        ▼
┌─────────────────────────────────────────────────────────────────────────────┐
│                              THE DEVELOPER GAIN                             │
│  ✔ Zero Hallucinations: No deprecated `*ngIf`, `*ngFor`, or NgModules       │
│  ✔ Tailored Output: Code paths &amp;amp; imports match your exact repo structure     │
│  ✔ Zero Manual Prompts: No need to maintain static rulebooks or system docs │
└─────────────────────────────────────────────────────────────────────────────┘

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Part 1: Integrating with the VS Code GUI
&lt;/h2&gt;

&lt;p&gt;If you already use MCP servers (like the ESLint tool), you can easily append the Angular server alongside your existing ones.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Open your Angular project in VS Code.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In your project root, open or create &lt;code&gt;.vscode/mcp.json&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Add the &lt;code&gt;angular-cli&lt;/code&gt; entry to your &lt;code&gt;servers&lt;/code&gt; object:&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;JSON&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "servers": {
    "ESLint": {
      "type": "stdio",
      "command": "npx",
      "args": ["@eslint/mcp@latest"]
    },
    "angular-cli": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@angular/cli", "mcp"]
    }
  }
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Why &lt;code&gt;stdio&lt;/code&gt;?
&lt;/h3&gt;

&lt;p&gt;The &lt;code&gt;stdio&lt;/code&gt; (Standard Input/Output) transport tells VS Code to spawn the server process entirely on your local machine. Your code and workspace configuration never leave your computer for the cloud; communication happens locally and securely.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Open the VS Code Command Palette (&lt;code&gt;Cmd+Shift+P&lt;/code&gt; on macOS, &lt;code&gt;Ctrl+Shift+P&lt;/code&gt; on Windows/Linux) and run:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Plaintext&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;MCP: Restart All Servers

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Part 2: Integrating with the Standalone GitHub Copilot CLI
&lt;/h2&gt;

&lt;p&gt;If you use the interactive terminal wrapper for GitHub Copilot, you can connect the MCP server directly to the CLI's central environment.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Launch your interactive terminal chat session:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Bash&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;copilot-cli chat

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt; Inside the chat session, run the configuration wizard:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Plaintext&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/mcp add

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt; Complete the interactive prompts with these values:&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Name:&lt;/strong&gt; &lt;code&gt;angular-cli&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Type:&lt;/strong&gt; &lt;code&gt;1. STDIO&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Command:&lt;/strong&gt; &lt;code&gt;npx&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Arguments:&lt;/strong&gt; &lt;code&gt;-y @angular/cli mcp&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Environment Variables:&lt;/strong&gt; &lt;em&gt;(Leave blank / press Enter)&lt;/em&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Tools:&lt;/strong&gt; &lt;code&gt;*&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Defer Tools:&lt;/strong&gt; &lt;code&gt;1. Auto&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Note on Command vs. Arguments:&lt;/strong&gt; Keep &lt;code&gt;npx&lt;/code&gt; strictly in the &lt;strong&gt;Command&lt;/strong&gt; field, and put &lt;code&gt;-y @angular/cli mcp&lt;/code&gt; in the &lt;strong&gt;Arguments&lt;/strong&gt; field. Combining them into the command field will trigger a process spawn failure.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  Part 3: Waking Up and Testing the Connection
&lt;/h2&gt;

&lt;p&gt;MCP servers sit in an idle state until you ask a question that triggers their tools.&lt;/p&gt;

&lt;p&gt;To verify everything is working, check the status inside your Copilot CLI session:&lt;/p&gt;

&lt;p&gt;Plaintext&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/mcp show

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Select &lt;code&gt;angular-cli&lt;/code&gt; to inspect your registered tools.&lt;/p&gt;

&lt;p&gt;Now, enter a targeted prompt to test live workspace retrieval:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;"Use the angular-cli MCP server's &lt;code&gt;list_projects&lt;/code&gt; tool right now to show me the applications configured in this directory."&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The model will invoke the tool, inspect your local &lt;code&gt;angular.json&lt;/code&gt;, and return your exact app structure:&lt;/p&gt;

&lt;p&gt;Plaintext&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Projects in the Angular workspace:

┌───────────────────────┬─────────────┬─────────────────────┬─────────────┐
│ Name                  │ Type        │ Root                │ Source Root │
├───────────────────────┼─────────────┼─────────────────────┼─────────────┤
│ storefront-app        │ application │ "" (workspace root) │ src         │
└───────────────────────┴─────────────┴─────────────────────┴─────────────┘

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  How It Changes Your Daily Workflow
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Feature Mode&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;MCP Role&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Practical Benefit&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Interactive Chat / Inline Edit&lt;/strong&gt; (&lt;code&gt;Cmd/Ctrl + I&lt;/code&gt;)&lt;/p&gt;

&lt;p&gt;Active Reasoning Agent&lt;/p&gt;

&lt;p&gt;Inspects local configuration, queries current framework standards, and writes compliant modern syntax.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Inline Autocomplete&lt;/strong&gt; (Ghost Text)&lt;/p&gt;

&lt;p&gt;Passive Context Mirror&lt;/p&gt;

&lt;p&gt;Operates at ultra-low latency, naturally mirroring the modern patterns generated by your chat sessions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Official References &amp;amp; Further Reading
&lt;/h2&gt;

&lt;p&gt;Now that your local bridge is live in VS Code and the GitHub Copilot CLI, dive deeper into the official documentation and team announcements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://angular.dev/ai" rel="noopener noreferrer"&gt;Angular.dev AI &amp;amp; MCP Documentation&lt;/a&gt;:&lt;/strong&gt; The official reference page detailing every tool exposed by the CLI server (&lt;code&gt;devserver.start&lt;/code&gt;, &lt;code&gt;onpush_zoneless_migration&lt;/code&gt;, &lt;code&gt;ai_tutor&lt;/code&gt;, and &lt;code&gt;--read-only&lt;/code&gt; modes).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://blog.angular.dev/beyond-the-horizon-how-angular-is-embracing-ai-for-next-gen-apps-7a7ed706e1a3" rel="noopener noreferrer"&gt;Angular Official Blog — "Beyond the Horizon: Embracing AI for Next-Gen Apps"&lt;/a&gt;:&lt;/strong&gt; The core team's breakdown of why they integrated MCP directly into &lt;code&gt;@angular/cli&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&lt;a href="https://blog.angular.dev/announcing-angular-v21-57946c34f14b" rel="noopener noreferrer"&gt;Announcing Angular v21&lt;/a&gt;:&lt;/strong&gt; Overview of stabilized AI tooling and modernization schematics in current Angular releases.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>angular</category>
      <category>vscode</category>
      <category>githubcopilot</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
