Skip to content

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

In the console, create a read-only or read-and-write key, with an expiry. It is shown once and stored as a hash.

2. Add the server

Paste the configuration for your client. The console gives it for Claude Code, Claude Desktop, Cursor, VS Code and Windsurf.

3. Ask in plain words

The agent calls Brunel's tools. Every analysis also appears in Brunel with its findings and their evidence.
Connection
URL:    https://brunel.cloud/api/mcp
Header: Authorization: Bearer $BRUNEL_KEY

MCP tools

6 tools, one flow

Identify, list, analyze, read and watch. Read-only keys can only call the read tools.

  • whoamiread only

    The Brunel account behind this key: login, plan and the key's scope.

  • list_projectsread only

    The account's analyses (one per repository conversation), most recent first.

  • analyze_repositoryread and write

    Read 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 only

    The 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 write

    Turn 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 only

    Whether 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
Full reference in the console
shell
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.

MCP server and REST API for AI agents · Brunel