Github Copilot
The Aikido MCP Plugin connects Aikido’s security engine to AI coding tools. It automatically scans AI generated code for vulnerabilities and hardcoded secrets as soon as it is created.
AI assistants can review their own output, but that review is not perfect. Aikido adds a reliable and consistent security layer that checks every generated snippet with proven scanning rules.
Why use Aikido MCP
Deterministic, independent security checks on every AI generated snippet before it is committed
Immediate detection and remediation of vulnerabilities and hardcoded secrets in AI assisted workflows
Real time feedback, making AI driven development safer by default
For the full list of tools the MCP server exposes, see Available tools.
Installation
IDE
The Aikido VSCode IDE plugin uses Expansion Packs to provide additional features. The Aikido MCP for Github Copilot is one of these Expansion Packs, making installation simple and fast without a separate setup process. See the linked page below for instructions on how to enable it.
Integration with Copilot IDE plugins
Add the MCP configuration in your IDE settings
Go to Github Copilot plugin settings and open the mcp.json file. Add the Aikido server:
{
"servers": {
"aikido": {
"command": "npx",
"args": ["-y", "@aikidosec/mcp@latest"]
}
}
}Authenticate
On first use, ask Copilot to run aikido_login. It will return a browser link. Follow it to log in to Aikido. Your token is stored securely once login is complete.
Add custom prompt instructions
Add an instruction to your AGENTS.md file or custom instructions to tell agent to use the new tooling.
Scan any new or modified code with `aikido_scan_paths` before finalizing changes. This security check is required.Integration with Copilot Cloud Agents
GitHub Copilot coding agent can call tools from MCP servers while it runs. Follow the steps below to set up Aikido MCP for your repository. Configuration is done per repository.
If you already use Aikido MCP in VS Code, you can reuse that configuration and only add the token in your repository settings.
Set-up Instructions
Add the MCP configuration in your repo settings
In your GitHub repository, go to Settings → Copilot → Coding agent and paste an MCP JSON config.
Example configuration for Aikido MCP (local/stdio via npx):
Add the token to your Copilot environment
Github Copilot only exposes secrets/variables to MCP config if their names start with COPILOT_MCP_
Create a secret like:
COPILOT_MCP_AIKIDO_API_KEY = your Aikido token
Add custom prompt instructions
To ensure GitHub Copilot uses the MCP server, configure repository instructions as described in the GitHub guide.
Add an instruction such as:
Validate
You can now verify your configuration by asking Copilot to security scan one of your files.
For ways to ask your agent to use Aikido, see Example prompts.
Last updated
Was this helpful?