cerebro

mcp
Security Audit
Warn
Health Pass
  • License — License: Apache-2.0
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 11 GitHub stars
Code Warn
  • network request — Outbound network request in .deepsec/pnpm-lock.yaml
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

Compliance superpowers for coding agents.

README.md

Cerebro

Compliance superpowers for coding agents.

Go Version
License

Cerebro turns security, identity, cloud, SaaS, workflow, policy, and compliance signals into evidence-backed context that coding agents can query through a Go CLI, JSON HTTP, Connect RPC, SDK helpers, and MCP.

Use it to help agents answer:

  • Can this change ship?
  • Which controls, policies, findings, or approvals apply?
  • What evidence already exists?
  • What remediation or next action is safe to propose?
  • Which systems, identities, and risks are connected?

Give Your Coding Agent Compliance Context

The fastest path is to run the local onboarding flow, then hand the receipt to your agent:

make secure-business-demo
Use Cerebro as compliance context for this change.
Read tmp/onboarding/e2e-receipt.json, then tell me which checks passed,
which evidence exists, which controls apply, and what must happen before
this can ship.

Do not commit provider credentials, customer names, tenant-specific hostnames,
account IDs, or live secret values.

For a live agent integration, connect your MCP client to POST /api/v1/mcp and expose Cerebro as the source for policy memory, compliance evidence, graph context, and safe action planning. See Agent onboarding, MCP native Droid setup, and Agent platform contract.

Start Here

git clone https://github.com/writer/cerebro.git
cd cerebro

make doctor
make serve-dev

By default, the local server listens on :8080.

curl -sS http://127.0.0.1:8080/health
curl -sS http://127.0.0.1:8080/sources

Run focused tests while iterating, then use CI-parity validation before broad PRs:

make test
make verify

For a durable local stack with NATS JetStream, Postgres, Neo4j, and the local bearer key local-dev-key:

docker compose up --build

What Is In This Repo

  • A Go bootstrap service built around net/http, Connect RPC, and cmd/cerebro.
  • Built-in source integrations for cloud, SaaS, identity, endpoint, vulnerability, compliance, and workflow signals.
  • Source runtime sync, append-log replay, claim/finding/report workflows, compliance control coverage, and optional graph projection, query, and action tooling.
  • Optional MCP, graph-agent, and device-authenticated telemetry surfaces for agent-readable evidence and control context.
  • Policy and FindingRule YAML DSL catalogs, generated detection catalogs, SDK helpers, OpenAPI/Connect contracts, release artifacts, and local validation tooling.

Choose A Path

Goal Start here
Get the shortest runnable path Quick reference
Walk through a local end-to-end flow Getting started
Hand setup to a coding agent Agent onboarding
Understand runtime shape and stores Architecture
Configure auth, tenancy, stores, MCP, or device auth Configuration variables and .env.example
Host or operate Cerebro Hosting, runtime profiles, deployment readiness, cloud deployment, deployment examples, and operations runbook
Explore JSON HTTP or Connect APIs API reference, api/openapi.yaml, and proto/cerebro/v1/bootstrap.proto
Use the CLI CLI reference
Browse built-in integrations Source catalog
Use SDK helpers Python SDK, TypeScript SDK, and sources/sdk
Persist and sync source runtimes Source runtime guide
Work on graph behavior Graph operations
Design persona-specific graph views Persona view lenses
Integrate MCP clients MCP native Droid setup
Integrate endpoint telemetry Endpoint security platform integration
Author policies, control mappings, or finding rules Policies, compliance controls, policies/, internal/findingdsl, and internal/findings
Contribute code or docs Development, non-goals, and the Makefile

Optional Docs Site

The Markdown docs work directly on GitHub. To browse them as a local site:

python3 -m pip install mkdocs
mkdocs serve

The site entry point is docs/index.md, and mkdocs.yml defines the navigation.

Runtime Boundaries

This public repository is authoritative for runtime behavior, CLI/API contracts, source catalogs, configuration semantics, and release artifacts. Environment-specific deployment details, stack configuration, account wiring, hostnames, and rollout procedures intentionally live outside this public repo.

The handoff to deployment repositories is the release payload: container images plus cerebro-runtime-contract.json. Treat that contract as the bridge between public runtime releases and environment-specific promotion/deploy automation.

Volatile details should stay in their source-of-truth files and be linked from here: configuration variables in docs/reference/config-env-vars.md, API shape in api/openapi.yaml, source capabilities in sources/*/catalog.yaml, and release/deploy handoff data in cerebro-runtime-contract.json.

See Non-goals before changing storage shape, Source CDK boundaries, graph/Cypher behavior, findings workflow contracts, action/runtime response semantics, platform/security namespace boundaries, or public product language.

Common Commands

make build          # compile ./bin/cerebro
make serve-dev      # run the local server with acknowledged dev-mode opt-out
make secure-business-demo  # run local security onboarding and write a receipt
make agent-onboard  # run an onboarding plan and write a redacted receipt
make agent-onboard-e2e  # run the Docker-backed local onboarding workflow
make test           # go test ./...
make check          # build, tests, lint, proto lint, structural checks, arch tests
make verify         # CI-parity local verification
make readme-check   # README and docs drift checks
make docs-drift-check
make oss-audit      # public repository hygiene scan
cerebro deploy preflight  # emit a redacted deployment readiness receipt

Top-level commands are serve, version, source, source-runtime, finding-rule, graph, orchestrator, vulndb, closeout, and deploy.

For policy or compliance-control work, run make finding-dsl-check, make policy-rule-check, make detection-catalog-check, and make control-index-check as applicable. Control extension packs are documented in Compliance controls and use --init-extension, --extension, --profile, --output, and --write workflows.

Stack

Component Technology
Language Go 1.26+ (go1.26.4 toolchain)
HTTP server Go net/http ServeMux
RPC Connect
CLI Standard Go CLI under cmd/cerebro
Append log NATS JetStream
State store Postgres
Graph store Neo4j/Aura
Validation go test, golangci-lint, Buf, Spectral, catalog checks, policy-rule checks, control-index checks, README drift checks, OSS audit, custom structural linters, arch tests

License

Apache 2.0; see LICENSE.

Reviews (0)

No results found