Angular CLI MCP server integration via Gemini CLI behaves inconsistently (requests have no discernible pattern)

Aperta
#32,130 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
angular, typescript

Direzione di ricerca

Inizia riproducendo il problema con ng mcp, il JSON MCP generato, settings.json di Gemini CLI e la richiesta list_projects. Confronta le esecuzioni in cui gli strumenti vengono individuati o invocati correttamente con l'errore ENOENT; il lavoro è completato quando il server MCP di Angular CLI si comporta in modo coerente con prompt e directory di progetto ripetuti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: @angular/cli needs: investigation
Command

other

Is this a regression?
  • Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was

No response

Description

MCP requests/invocations against the Angular CLI MCP server are inconsistent across runs, and no meaningful pattern can be identified. Because of this, best-practice requirements cannot be reliably met.

Minimal Reproduction
  • Generate mcp json with 'ng mcp'
  • Add Server to Gemini CLI settings.json
  • Start Gemini CLI and the Angular MCP server
  • In Gemini CLI, write a prompt such as: “Create an Angular 21 Form Signals component and use the Angular CLI MCP server.”
  • Observe that outcomes are inconsistent across runs (tools sometimes discovered, sometimes not; invocations sometimes succeed, sometimes fail) with no clear pattern
Exception or Error
Hallo! I will create an Angular component that uses Signals for form management. First, I need to inspect the existing Angular project to
  understand its structure and version.
╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ ✓  list_projects (angular-cli MCP Server) {}                                                                                                   │
│                                                                                                                                                │
│ ENOENT: no such file or directory, scandir '/home/user/some_system_drive/V:/XSD'                                                               │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ You are running Gemini CLI in your home directory. It is recommended to run in a project-specific directory.                                   │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯


 Using: 1 MCP server
╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ >   Type your message or @path/to/file



Note: The inconsistent behavior also occurs beyond this specific message and is not limited to a single command or error
Your Environment
Angular CLI       : 21.0.3
Node.js           : 22.18.0
Package Manager   : npm 10.9.3
Operating System  : linux x64
Anything else relevant?

No response

Lingua principale
TypeScript
Stelle
27k
Fork
11.8k
Merge medio
16h 21m
PR unite (30g)
170

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di angular/angular-cli

Tutte le issue di angular/angular-cli

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.