Agents and API
Security checks for your AI agents
Brunel speaks the Model Context Protocol and has a REST API. Your coding agent or your CI can analyze a repository and get its security findings, each with its file, line and fix, with the same guarantees as the app.
- Claude Code
- Claude Desktop
- Cursor
- VS Code
- Windsurf
- Any MCP client
How it works
Three steps to connect
No SDK, no plugin to install: a URL and a key.
1. Create a key
2. Add the server
3. Ask in plain words
URL: https://brunel.cloud/api/mcp
Header: Authorization: Bearer $BRUNEL_KEYMCP tools
6 tools, one flow
Identify, list, analyze, read and watch. Read-only keys can only call the read tools.
whoamiread onlyThe Brunel account behind this key: login, plan and the key's scope.
list_projectsread onlyThe account's analyses (one per repository conversation), most recent first.
analyze_repositoryread and writeRead a GitHub repository without running it and return its security check (committed secrets, source code, vulnerable dependencies, Docker, CI and infrastructure as code) with file evidence, plus what it runs (languages, frameworks, datastores…). Takes 5 to 60 seconds.
get_analysisread onlyThe current state of an analysis: status, commit, detected stack with evidence, services and the security check: every finding it lists with its advisories (CVE where one exists), how many more it counts without listing, and what each check looked at.
watch_projectread and writeTurn the daily watch of an analysis's repository on or off. A watched repository is checked once a day: when its default branch has a new commit it is analyzed again (counted in the month's analyses), the findings are compared with the check before, and new findings are sent to the account's notifications. Turning the watch on analyzes nothing. Returns the state of the watch.
get_watchread onlyWhether the repository of an analysis is watched, when it was last checked and how that ended, and the latest changes: the findings that appeared and those no longer reported, with the analysis that showed them.
REST API
The same actions, over HTTPS
For scripts, CI jobs and your own products: JSON in, JSON out. An analysis call waits for the result, usually between a few seconds and a minute.
- POST/api/v1/projects· analyze a repository
- GET/api/v1/projects· list your analyses
- GET/api/v1/projects/:id· facts and security findings
- GET/api/v1/me· who the key belongs to
- POST/api/v1/projects/:id/watch· watch the repository, or stop
- GET/api/v1/projects/:id/watch· the state of the watch
curl -X POST https://brunel.cloud/api/v1/projects \
-H "Authorization: Bearer $BRUNEL_KEY" \
-H "Content-Type: application/json" \
-d '{"repoUrl":"example/web-app"}'
{ "data": {
"conversationId": "k3v9x2…",
"status": "ready",
"security": {
"counts": { "critical": 2, "high": 5, "medium": 2, "low": 3 },
"findings": [
{ "severity": "high",
"title": "The container runs as root",
"where": ["Dockerfile:8"], … },
…
] },
…
} }Guarantees
Agents get the same rules as people
Your plan, quotas, team IP allowlist and access checks apply to every call. Keys are hashed, can expire, and can never manage keys, your account, billing or your team's security.
Connect your first agent
Create a key and paste one line in Claude Code. The console fills in the configuration for you.