Skip to main content

anysoar

One interface for AI agents to operate any SOAR platform, with guardrails built in.

Agents talk to anysoar; anysoar translates to whichever SOAR sits underneath through a per-vendor driver. Swapping SOARs means swapping a driver, not rewriting agents. Every action goes through a policy layer: reads run freely, writes wait for a person's approval, destructive actions are blocked, everything is audited, and a kill switch stops it all.

Status: pre-alpha. Expect breaking changes. Source, docs and a one-command demo: https://github.com/ag3ntsc4rn/anysoar

The anysoar console: an agent's action waiting for approval, and its reasoning as it works

Install

pip install anysoar                       # models, driver interface, policy layer, mock SOAR
pip install "anysoar[mcp]"                # + the MCP server (anysoar-mcp)
pip install "anysoar[shuffle]"            # + the Shuffle driver
pip install "anysoar[testing]"            # + the contract test suite for driver authors

Python 3.12 or newer.

What's in it

  • Drivers: a mock SOAR with a synthetic phishing scenario, and Shuffle. SwitchableDriver switches between SOARs while agents keep running.
  • OCSF data model: alerts are Detection Findings, cases are Incident Findings, indicators are observables (OCSF 1.9.0), whatever the SOAR.
  • Policy layer: GuardedDriver wraps any driver with approvals (from the MCP client or an approval service over HTTP), an audit log and a kill switch.
  • MCP server: anysoar-mcp offers each SOAR operation as a tool to any MCP client.
  • Driver contract tests: anysoar.testing.DriverContract, which every driver passes.

Use it from Python

The mock driver needs no SOAR:

import asyncio

from anysoar.drivers.mock import MockDriver
from anysoar.interface import CaseQuery
from anysoar.models import IncidentFindingStatusId, Observable, ObservableTypeId
from anysoar.policy import GuardedDriver


async def main() -> None:
    # GuardedDriver applies the policy: reads run, writes would need an approver.
    async with GuardedDriver(MockDriver()) as soar:
        open_cases = await soar.list_cases(
            CaseQuery(status_ids=frozenset({IncidentFindingStatusId.NEW}))
        )
        for case in open_cases.items:
            print(case.metadata.uid, case.message)

        sender = Observable(type_id=ObservableTypeId.EMAIL_ADDRESS, value="it-support@example.net")
        result = await soar.enrich_indicator(sender)
        print(result.observable.reputation)


asyncio.run(main())

Use ShuffleDriver(url, api_key) from anysoar.drivers.shuffle for Shuffle; the rest of the code stays the same.

Use it from an MCP client

{
  "mcpServers": {
    "anysoar": {
      "command": "uvx",
      "args": ["--from", "anysoar[mcp]", "anysoar-mcp"]
    }
  }
}

The agent gets one tool per operation the SOAR supports, plus describe_soar. Write actions ask you in your MCP client, or in a web console with anysoar-mcp --approver http. Run anysoar-mcp --help for the options, including --driver mock,shuffle and --policy.

Learn more

Licensed under Apache 2.0.

Metadata

Release files for anysoar 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for anysoar 0.2.1
File Size Uploaded
anysoar-0.2.1.tar.gz 55.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for anysoar 0.2.1
File Interpreter ABI Platform
anysoar-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 123.8 kB

Release files / anysoar-0.2.1.tar.gz

Download URL anysoar-0.2.1.tar.gz
Size 55.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d4c6b6c6f600c32ba67b13e21eacc8ed8a8905a3d4e77f48874207df99de9cfa
BLAKE2b-256 checksum
How to use checksums
089f5806d5c0bb2d903d5c9f4cacaf711a16907660299f4740d740517c18b01b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release files / anysoar-0.2.1-py3-none-any.whl

Download URL anysoar-0.2.1-py3-none-any.whl
Size 68.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
45742da732ef09cb28f1fb1c72e02f719a4bbb1f59c7de7b1d8096e348079176
BLAKE2b-256 checksum
How to use checksums
7f1d9aa4c60c2d135e01cb5efbfddca0355d13f30298ff1190efcef677ae7c11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 16, 2026.

Transparency log

Release history Release notifications | RSS feed

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page