使用说明
🛠️ 步骤1:创建README.md文件
-
打开资源管理器视图: 单击VS Code中的文件图标(左上角边栏),或按
Ctrl + Shift + E. -
创建新文件: 在项目文件夹的根目录中(包含您的
.vscode文件夹),单击 新建文件图标 (或在资源管理器面板中单击鼠标右键)并准确命名文件:README.md
✍️ 第二步:写内容
README使用 Markdown(.md) 用于格式化(使用 # 对于标题, * 要点)。
这是一个模板,你可以粘贴到 README.md 文件开始。这专门针对您团队的MCP设置:
# 🤖 HTB CTF AI Agent Configuration
This repository contains the configuration template for connecting our team's individual AI agents (via GitHub Copilot/VS Code) to the Hack The Box CTF platform using the Model Context Protocol (MCP).
---
## 🔒 INDIVIDUAL SETUP (MANDATORY)
**EVERY TEAM MEMBER MUST FOLLOW THESE STEPS LOCALLY.**
### 1. Clone the Repository
Clone this repository to your local machine:
```bash
git clone [https://github.com/YJCor/MCP--CTF.git](https://github.com/YJCor/MCP--CTF.git)
2.获取您的个人代币
每个团队成员都必须生成他们的 拥有 从HTB配置文件设置中获取唯一的MCP访问令牌。
3.配置VS代码
所需的配置文件位于 .vscode/mcp.json.
你必须 替换占位符 使用您的个人HTB代币:
// Locate this line in .vscode/mcp.json:
"headers": { "Authorization": "Bearer <REPLACE_WITH_YOUR_PERSONAL_HTB_TOKEN>" }
⚠️ 重要安全警告
不要 在添加您的个人令牌后,将文件提交或推送回GitHub。你的个人令牌必须保密。
✅ 验证
配置后,重新启动VS Code,打开Copilot Chat并询问以下问题以测试连接:
“当前正在运行哪些CTF活动?”
### 🚀 Step 3: Add, Commit, and Push the New File
Now you treat the `README.md` file like any other code change.
1. **Stage the File:**
```bash
git add README.md
```
2. **Commit the Change:**
```bash
git commit -m "Add README.md with team setup instructions"
```
3. **Push to GitHub:**
```bash
git push
```
*(Since you ran `git push -u origin main` before, you don't need the `-u origin main` part again.)*
After the push, the beautiful, formatted instructions will appear on your repository's homepage, and your teammates will know exactly what to do!