@aikidosec/mcp

中文文档
1.0.34发布于 2026/11/05AGPLCommonJS近 30 天下载 22.2万

Aikido MCP server

原始使用文档
文档目录9 节
  1. Prerequisites
  2. Authentication
  3. Browser sign-in (recommended)
  4. Environment variable (CI / headless / WSL)
  5. Add to your IDE or agent
  6. Cursor
  7. Windsurf
  8. VS Code
  9. Using AIKIDO_API_KEY

Aikido MCP Server

A lightweight Model Context Protocol (MCP) server that exposes Aikido’s Code and Secrets Scan as a tool for AI coding agents and IDEs. It lets your agent scan code and returns machine-readable findings you can triage, fix or ignore.

Prerequisites

  • Node.js 18.19.0 or newer
  • An Aikido account (sign up)

Authentication

The MCP authenticates in one of two ways. You don’t need to pick up front — just add the server to your IDE (see below) and run any Aikido tool.

If no token is configured, the first tool call returns a one-time set of sign-in links — one per Aikido region (EU / US / ME). Click the link that matches your account.

Environment variable (CI / headless / WSL)

For CI, containers, WSL, or any setup where opening a browser or using an OS keychain isn’t an option, generate a Personal Access Token in Settings → Integrations → IDE → MCP and pass it as AIKIDO_API_KEY — either in your MCP config’s env block (examples below) or as a system env var. When set, AIKIDO_API_KEY takes precedence over the cached browser token.

Add to your IDE or agent

Below are example configurations. They use the browser sign-in flow. To use AIKIDO_API_KEY instead, add an env block to any of them — see Using AIKIDO_API_KEY.

Cursor

Go to Settings > Cursor Settings > MCP & Integrations > New MCP server

Add the following configuration to your Cursor ~/.cursor/mcp.json file. See Cursor MCP docs for more info.

{
  "mcpServers": {
    "aikido": {
      "command": "npx",
      "args": ["-y", "@aikidosec/mcp"]
    }
  }
}

Windsurf

Add the following config to ~/.codeium/windsurf/mcp_config.json. See Windsurf MCP docs for more info.

{
  "mcpServers": {
    "aikido": {
      "command": "npx",
      "args": ["-y", "@aikidosec/mcp"]
    }
  }
}

VS Code

Open the VS Code Command Palette by using Ctrl+⇧Shift+P or ⌘Command+⇧Shift+P (macOS). Type MCP: Open User Configuration. Add the following config to the MCP config file. See VS Code MCP docs for more info.

{
  "servers": {
    "aikido": {
      "command": "npx",
      "args": ["-y", "@aikidosec/mcp"]
    }
  }
}

Using AIKIDO_API_KEY

To use a pre-generated token instead of the browser sign-in flow, add an env block to any of the configs above:

{
  "mcpServers": {
    "aikido": {
      "command": "npx",
      "args": ["-y", "@aikidosec/mcp"],
      "env": {
        "AIKIDO_API_KEY": "your-api-key-here"
      }
    }
  }
}

版本与发布记录

@aikidosec/mcp 共发布 37 个版本,首次发布于 2025/12/04;过去 12 个月发布了 37 个版本。

版本发布日期距今
1.0.34latest2026/11/05今天
1.0.332026/10/2314 天前
1.0.322026/10/1917 天前
1.0.312026/10/1620 天前
1.0.302026/10/1620 天前
1.0.292026/10/1521 天前

关于 @aikidosec/mcp 的常见问题

@aikidosec/mcp 是什么?

Aikido MCP server

如何安装 @aikidosec/mcp?

在项目目录运行 npm install @aikidosec/mcp,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 aikido-mcp,可以用 npx aikido-mcp 直接运行。

@aikidosec/mcp 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/aikidosec__mcp 是否存在。

@aikidosec/mcp 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@aikidosec/mcp 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@aikidosec/mcp 可以商用吗?

@aikidosec/mcp 使用 AGPL 许可。声明的许可为 AGPL,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@aikidosec/mcp 的下载量有多少?

根据 npm 官方下载统计,@aikidosec/mcp 在 2026/10/05 – 2026/11/03 这 30 天内被下载 221,522 次,日均约 7,384 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@aikidosec/mcp 还在维护吗?

最新版本 1.0.34 发布于 2026/11/05(今天);至今共发布 37 个版本,其中过去 12 个月发布了 37 个;首次发布于 2025/12/04。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。