# 安装 AgentSecurityLens MCP Security Trust Check

- 类型: MCP 工具
- 说明: 帮助用户在安装前审查 MCP、技能与工具的安全风险与情报信息。
- 仓库: https://github.com/professor2k8/agent-security-lens

## 方式一 · 一键代装（复制提示词让 AI 代劳）

### Claude Code
```
请帮我安装 askskill 上的 "AgentSecurityLens MCP Security Trust Check" MCP 服务：
执行：claude mcp add 'io-github-professor2k8-agent-security-lens' -- npx -y agent-security-lens
```

### Codex
```
请帮我安装 askskill 上的 "AgentSecurityLens MCP Security Trust Check" MCP 服务：
在 ~/.codex/config.toml 中添加：
[mcp_servers.io-github-professor2k8-agent-security-lens]
command = "npx"
args = ["-y","agent-security-lens"]
然后重启 Codex 生效
```

### Cursor
```
请帮我安装 askskill 上的 "AgentSecurityLens MCP Security Trust Check" MCP 服务：
在 .cursor/mcp.json 的 "mcpServers" 中添加：
"io-github-professor2k8-agent-security-lens": { "command": "npx", "args": ["-y","agent-security-lens"] }
然后在 Cursor 设置 > MCP 中启用
```

## 方式二 · 命令行安装（原生命令与配置）

### Claude Code
```bash
claude mcp add --env ASL_API_URL=YOUR_VALUE --env ASL_API_KEY=YOUR_VALUE --env ASL_MODE=YOUR_VALUE --transport stdio io-github-professor2k8-agent-security-lens -- npx -y agent-security-lens
```
需要环境变量：ASL_API_URL, ASL_API_KEY, ASL_MODE

### Codex
```bash
codex mcp add --env ASL_API_URL=YOUR_VALUE --env ASL_API_KEY=YOUR_VALUE --env ASL_MODE=YOUR_VALUE io-github-professor2k8-agent-security-lens -- npx -y agent-security-lens
```
配置文件 ~/.codex/config.toml：
```toml
[mcp_servers.io-github-professor2k8-agent-security-lens]
command = "npx"
args = ["-y","agent-security-lens"]

[mcp_servers.io-github-professor2k8-agent-security-lens.env]
ASL_API_URL = "YOUR_VALUE"
ASL_API_KEY = "YOUR_VALUE"
ASL_MODE = "YOUR_VALUE"
```
需要环境变量：ASL_API_URL, ASL_API_KEY, ASL_MODE

### Cursor
配置文件 .cursor/mcp.json：
```json
{
  "mcpServers": {
    "io-github-professor2k8-agent-security-lens": {
      "command": "npx",
      "args": [
        "-y",
        "agent-security-lens"
      ],
      "env": {
        "ASL_API_URL": "YOUR_VALUE",
        "ASL_API_KEY": "YOUR_VALUE",
        "ASL_MODE": "YOUR_VALUE"
      }
    }
  }
}
```
一键安装：cursor://anysphere.cursor-deeplink/mcp/install?name=io-github-professor2k8-agent-security-lens&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImFnZW50LXNlY3VyaXR5LWxlbnMiXSwiZW52Ijp7IkFTTF9BUElfVVJMIjoiWU9VUl9WQUxVRSIsIkFTTF9BUElfS0VZIjoiWU9VUl9WQUxVRSIsIkFTTF9NT0RFIjoiWU9VUl9WQUxVRSJ9fQ
需要环境变量：ASL_API_URL, ASL_API_KEY, ASL_MODE
