Angular CLI MCP server integration via Gemini CLI behaves inconsistently (requests have no discernible pattern)
- 主要語言
- TypeScript
- 星號
- 27k
- 分支
- 11.8k
- 平均合併
- 14 小時 23 分鐘
- 30 天內合併 PR
- 162
描述
### 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
```text
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
```text
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_
貢獻指南
研究方向
首先使用 `ng mcp`、產生的 MCP JSON、Gemini CLI 的 `settings.json` 以及 `list_projects` 請求重現此問題。比較工具成功探索或呼叫的執行結果與 ENOENT 失敗;當 Angular CLI MCP 伺服器在重複的 prompt 和專案目錄中表現一致時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- angular, typescript
- 領域
- cli, developer-experience
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 冷清
- 描述清晰度
- 需要釐清
- 新手友好度
- 35/100