安全代码生成工具

Endor Labs MCP Vibe Template是一个用于安全、AI辅助开发的工具,提供代码扫描、依赖检查和安全问题标记功能,适用于开发React前端和Python后端的项目。

  • by endorlabs
  • Python
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 endorlabs/mcp-server-demo

使用说明

🧬 Endor Labs MCP Vibe模板

此仓库是使用Cursor、GitHub和Endor Labs MCP启动安全、人工智能辅助开发的最低设置。

它包括:

✅ .cursor/--游标代理策略规则(MCP规则)

✅ .github/--基线github配置

✅ .vscode/--VS代码项目设置

🧪 预配置的MCP服务器设置和Copilot说明

代表:github/endorlabs/mcp-server-demo

🚨 先决条件

安装endorctl

向您的Endor Labs租户进行身份验证:

endorctl init --auth-mode=<insert_your_auth_mode_here>

完整文档请点击此处👉 Endor Labs IDE集成指南

🛠️ 设置

  1. 克隆此仓库
git clone https://github.com/endorlabs/mcp-server-demo.git
cd mcp-server-demo
  1. 在游标中打开它

启动Cursor并打开此repo文件夹。确保已启用代理模式。

不需要额外的配置——MCP服务器和策略文件已经设置好了。

🧠 尝试此演示提示

在Cursor中,将以下内容粘贴到代理中:

“Create a TODO list app with a React frontend and Python backend. The app must support creating Todo items with an expiration date and have the ability to delete items from the Todo list. Please do not create a readme and just do the code.”

MCP将:

扫描生成的代码

检查是否存在风险依赖关系

标记安全问题

帮助你负责任地感受

⚙️ 运作原理

增加依赖?MCP扫描它。

代码生成?MCP也会对此进行扫描。

调查结果?你修复或迭代。

还在困惑吗?阅读完整文档。

🤝 贡献

这是一个演示仓库。欢迎公关人员改进规则、示例或氛围。