Docs
Agents and integrations
Mikoshi is built to be driven by other tools: your coding agent, your own MCP servers, and anything that reads JSON or SARIF.
Coding agents
Install the Mikoshi skills and agents such as Claude Code, Cursor, Codex, Gemini CLI or OpenCode learn how to run scans, read results, fix findings and set up CI. They follow the open SKILL.md standard.
npx skills add usemikoshi/mikoshi # all skills
npx skills add usemikoshi/mikoshi --skill penetration-testing-with-mikoshi # just one| Skill | Teaches your agent to |
|---|---|
penetration-testing-with-mikoshi | Run headless scans with budget caps and read the results. |
fix-security-vulnerabilities-with-mikoshi | Fix findings at the root cause, then re-scan to verify. |
ci-security-scanning-with-mikoshi | Add pull-request scanning to your CI. |
find-security-vulnerabilities-in-code | Review a repository or working tree, white-box. |
web-app-penetration-testing | Test a live web app or staging site. |
api-security-testing | Test REST and GraphQL APIs against the OWASP API Top 10. |
owasp-top-10-testing | Run an OWASP Top 10 assessment with honest coverage. |
application-security-testing | Pick the right test per asset and rank the results. |
Then ask in plain language:
Pentest this repo with Mikoshi in quick mode with a $10 budget and summarise the findings.
Fix the critical and high findings from the last Mikoshi run, then re-scan to verify.
Add Mikoshi scanning to our GitHub Actions so every PR is tested.The interfaces agents rely on are stable: headless mode (-n), exit codes 0/1/2, --max-budget and --max-turns as hard limits, and the files described below.
Give Mikoshi your MCP servers
Mikoshi can connect to MCP servers you list and give their tools to its agents. Let them read how your system is really built instead of guessing from outside: a database server shows schemas and access policies, a hosting server shows what’s deployed, an issue tracker shows risks you have already accepted, and a logging server confirms whether an exploit landed.
[
{
"name": "staging_db",
"transport": "stdio",
"command": "npx",
"args": ["-y", "@your-org/postgres-mcp", "--read-only"],
"notes": "Staging database, read-only. Prefer aggregate queries."
},
{
"name": "github",
"transport": "http",
"url": "https://api.githubcopilot.com/mcp/",
"auth": { "kind": "bearer", "token": "your-token" },
"allowed_tools": ["list_issues"]
}
]allowed_toolslimits which tools agents may call. Mikoshi can’t tell which tools only read, so use each server’s read-only mode where it has one.- Choose per run with
--mcp-server NAMEor--mcp-exclude NAME, and use another file with--mcp-config PATHorMIKOSHI_MCP_CONFIG. - A server that fails to connect is skipped; the run continues without it.
Skills for your stack
Skills are Markdown knowledge packs agents load for specialised tasks. Mikoshi ships skills for vulnerability classes (idor, sql_injection, ssrf, business_logic and more), frameworks (nextjs, fastapi), platforms (supabase, firebase), protocols (graphql) and tools. Load some at the start of a run:
mikoshi -t https://api.example.com --skills idor,broken_function_level_authorization,graphqlAdd your own: internal frameworks, house auth patterns, known-sensitive endpoints. Use the built-in layout, <category>/<name>.md, and keep the directory in your repository:
---
name: acme_auth
description: How Acme's session tokens and tenant isolation work, and where they break
---
# Acme auth
Sessions are signed JWTs issued by /auth/token; the tenant id is in the "tid" claim.
## Where to look
- Endpoints that read tenant id from the request body instead of the token
- ...mikoshi -t ./ --skills-dir ./security/skills --skills custom/acme_authA skill at the same path as a built-in one replaces it. For a methodology every agent should follow, use an instruction file instead: agents only see a skill when it matches their task.
Use the output
Everything a run produces is a plain file in mikoshi_runs/<run-name>/, so it fits into dashboards, ticketing and reporting without an API.
vulnerabilities.json
A list of findings. Fields include id, title, severity (critical, high, medium, low, info), cvss, cwe, cve, target, endpoint, method, impact, technical_analysis, poc_description, poc_script_code, remediation_steps and confidence. Treat fields as optional: not every finding has every one.
RUN=mikoshi_runs/<run-name>
# Count findings by severity
jq -r 'group_by(.severity) | map("\(.[0].severity): \(length)") | .[]' $RUN/vulnerabilities.json
# One line per high or critical finding
jq -r '.[] | select(.severity == "critical" or .severity == "high") | "\(.severity)\t\(.title)\t\(.endpoint // "")"' $RUN/vulnerabilities.jsonfindings.sarif
SARIF 2.1.0, readable by GitHub code scanning, DefectDojo and most IDE SARIF viewers. Each result keeps Mikoshi’s full finding (proof of concept, CVSS, remediation) under properties.mikoshi. See uploading to code scanning.
run.json
The run’s status (check for stopped before trusting a clean result), targets, model cost under llm_usage, and the outcome of PR comments and the blue-team report.
detections/
Sigma and YARA rules plus Splunk, Elastic and Microsoft Sentinel queries for the techniques Mikoshi used, with a summary in blue_team.json. Review and tune them before loading them into your SIEM.