如何在 VSCode 中为 PrimeNG 和 Angular 配置 MCP 服务器
从 PrimeNG 和 Angular 的第 21 版开始,你可以使用内置的 MCP 服务器来帮助 VSCode 中的 AI 工具更好地理解你的项目结构和依赖关系。
为此,请在 Angular 项目根目录下创建 .vscode/mcp.json 文件,内容如下:
.vscode/mcp.json
{
"servers": {
"primeng": {
"command": "npx",
"args": ["-y", "@primeng/mcp"]
},
"angular-cli": {
"command": "npx",
"args": ["-y", "@angular/cli", "mcp"]
}
}
}Check out similar posts by category:
AI
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow