# Tạo CSP Header Từ Directive

> Hồ sơ MCP chính thức, sinh từ registry BOP.INK.

| Trường | Giá trị |
| --- | --- |
| Slug | `tao-csp-header-tu-directive` |
| Danh mục V2 | Web & Internet (`web-internet`) |
| Danh mục con V2 | HTTP (`web-internet.http`) |
| Route legacy tương thích | `lap-trinh-dev` |
| Taxonomy V2 | `web-internet` / `web-internet.http` |
| Phạm vi áp dụng | `global` |
| Trạng thái thực thi MCP | `remote_executable` |
| Nguồn giao diện/schema | `text/tao-csp-header-tu-directive` |
| Website | [Mở công cụ](https://bop.ink/lap-trinh-dev/tao-csp-header-tu-directive/) |

Chọn source cho default-src/script-src/style-src... để sinh Content-Security-Policy.

## Cách dùng qua MCP

### Tạo CSP Header Từ Directive

- Capability: `text.lap_trinh_dev.tao_csp_header_tu_directive`
- MCP availability: `remote-executable`
- MCP tool: `bop_execute_text_lap_trinh_dev_tao_csp_header_tu_directive`
- Mô tả: Chọn source cho default-src/script-src/style-src... để sinh Content-Security-Policy.

Các trường đầu vào:

- `text` (bắt buộc): Văn bản đầu vào cần xử lý
- `action`: Thao tác chuyển đổi (tùy chọn)
- `options`: Tùy chọn bổ sung

Ví dụ đầu vào:

```json
{}
```
