@aikidosec/mcp 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,20 +3,24 @@
3
3
  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.
4
4
 
5
5
  ## Prerequisites
6
- - **Node.js** 18 or newer
7
- - An **Aikido API key** (get yours from [Aikido Security](https://app.aikido.dev))
6
+ - **Node.js** 18.19.0 or newer
7
+ - An **Aikido account** ([sign up](https://app.aikido.dev))
8
8
 
9
- ## Configuration
9
+ ## Authentication
10
10
 
11
- ### API Key Setup
11
+ 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.
12
12
 
13
- The MCP server requires an Aikido API key to authenticate with the Aikido API. You can provide it in two ways:
13
+ ### Browser sign-in (recommended)
14
14
 
15
- 1. **Via MCP Configuration (Recommended)**: Set the `AIKIDO_API_KEY` environment variable in your MCP configuration file
16
- 2. **Via System Environment Variable**: Set `AIKIDO_API_KEY` as a system environment variable
15
+ 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.
16
+
17
+ ### Environment variable (CI / headless)
18
+
19
+ For CI, containers, or any setup where opening a browser/using keychain isn’t an option, generate a Personal Access Token in **Settings → Integrations → MCP Server** 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.
17
20
 
18
21
  ## Add to your IDE or agent
19
- Below are example configurations to add to your the Aikido MCP to your IDE.
22
+
23
+ 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](#using-aikido_api_key).
20
24
 
21
25
  ### Cursor
22
26
 
@@ -29,17 +33,12 @@ Add the following configuration to your Cursor `~/.cursor/mcp.json` file. See [C
29
33
  "mcpServers": {
30
34
  "aikido": {
31
35
  "command": "npx",
32
- "args": ["-y", "@aikidosec/mcp"],
33
- "env": {
34
- "AIKIDO_API_KEY": "your-api-key-here"
35
- }
36
+ "args": ["-y", "@aikidosec/mcp"]
36
37
  }
37
38
  }
38
39
  }
39
40
  ```
40
41
 
41
- **Note**: Replace `"your-api-key-here"` with your actual Aikido API key.
42
-
43
42
  ### Windsurf
44
43
 
45
44
  Add the following config to `~/.codeium/windsurf/mcp_config.json`. See [Windsurf MCP docs](https://docs.windsurf.com/windsurf/cascade/mcp) for more info.
@@ -49,17 +48,12 @@ Add the following config to `~/.codeium/windsurf/mcp_config.json`. See [Windsurf
49
48
  "mcpServers": {
50
49
  "aikido": {
51
50
  "command": "npx",
52
- "args": ["-y", "@aikidosec/mcp"],
53
- "env": {
54
- "AIKIDO_API_KEY": "your-api-key-here"
55
- }
51
+ "args": ["-y", "@aikidosec/mcp"]
56
52
  }
57
53
  }
58
54
  }
59
55
  ```
60
56
 
61
- **Note**: Replace `"your-api-key-here"` with your actual Aikido API key.
62
-
63
57
  ### VS Code
64
58
 
65
59
  Open the VS Code Command Palette by using Ctrl+⇧Shift+P or ⌘Command+⇧Shift+P (macOS). Type `MCP: Open User Configuration`.
@@ -68,6 +62,21 @@ Add the following config to the MCP config file. See [VS Code MCP docs](https://
68
62
  ```json
69
63
  {
70
64
  "servers": {
65
+ "aikido": {
66
+ "command": "npx",
67
+ "args": ["-y", "@aikidosec/mcp"]
68
+ }
69
+ }
70
+ }
71
+ ```
72
+
73
+ ## Using AIKIDO_API_KEY
74
+
75
+ To use a pre-generated token instead of the browser sign-in flow, add an `env` block to any of the configs above:
76
+
77
+ ```json
78
+ {
79
+ "mcpServers": {
71
80
  "aikido": {
72
81
  "command": "npx",
73
82
  "args": ["-y", "@aikidosec/mcp"],
@@ -78,5 +87,3 @@ Add the following config to the MCP config file. See [VS Code MCP docs](https://
78
87
  }
79
88
  }
80
89
  ```
81
-
82
- **Note**: Replace `"your-api-key-here"` with your actual Aikido API key.