Skip to main content

fsr-agentic-toolkit

Workflows and tools that make an AI agent competent on FortiSOAR. One registry and one safety gate, served three ways: an MCP server, a CLI, and a Python API.

Where it sits

pyfsr               SDK: typed REST client, auth, instances. No agent code.
fsr_playbooks       Domain: playbook YAML, validation, compile, run analysis.
fsr-agentic-toolkit Agent layer: verbs + seven workflows, MCP server, CLI.   <- this repo
products            SOC assistant connector, widgets, workshops.

Each layer depends only on the ones above it. The SOC assistant connector can register the workflows into its own dispatch with fsr_agentic_toolkit.workflow_tools.register_into_framework(). They stay hidden from its model until the host opts in.

The seven workflows

Workflow Tier What it returns
orient read Module fields and picklists, read access (and the fix if access is broken), matching connectors
debug_run read Why a run failed: the failing step, its error, and step args that don't render
repair_playbook read Mechanical fixes applied to a draft and re-validated; the rest listed
build_playbook read Facts to draft from, or a gated draft plus the next calls
verify_effect read What actually changed on a record versus what was expected
investigate_alert read Alert evidence, indicators, and the enrichment lookups available
provision_module write, confirm Create, publish, grant roles, then prove read and create work

Each one returns a WorkflowResult: findings with evidence ids, unknowns, next steps with their tier, and an id that a follow-up workflow can take. Use cases compose them. A custom module plus a playbook that acts on it is provision_module, then build_playbook, then verify_effect.

API only

The toolkit talks to FortiSOAR through its REST API and nothing else. It has no SSH, shell, log or database tools. Appliance shell tools are a human CLI: pyfsr appliance ....

Safety

Every call goes through one gate. Writes are tier 2. Destructive tools are tier 3 and need confirm: true. Environment policy:

  • FSR_MCP_READONLY=1 drops every write.
  • FSR_MCP_ALLOW_TOOLS / FSR_MCP_DENY_TOOLS take comma-separated names.

Install and use

pip install fsr-agentic-toolkit
fsr-agentic-toolkit init --url fortisoar.example.com --api-key <key>
fsr-agentic-toolkit tools
fsr-agentic-toolkit orient --modules alerts --json
fsr-agentic-toolkit debug-run --playbook-or-id "Close Alert"
fsr-agentic-toolkit call search_records '{"module": "alerts", "limit": 5}'
fsr-agentic-toolkit mcp        # MCP server on stdio

The box comes from FSR_* environment variables or --instance <alias> from ~/.pyfsr/instances.toml. An explicit FSR_BASE_URL wins over the default alias.

Development

One-command setup and the test loop CI runs (Python 3.11+):

make install    # editable install + test/lint deps into .venv
make test       # the full suite (what CI runs)
make lint       # ruff (also enforced in CI)

Or by hand, matching CI exactly:

pip install -e ".[test]"
python -m pytest -q

Note the [test] extra: pip install -e . alone does not pull in pytest.

Metadata

Release files for fsr-agentic-toolkit 0.1.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 fsr-agentic-toolkit 0.1.1
File Size Uploaded Provenance
fsr_agentic_toolkit-0.1.1.tar.gz 111.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for fsr-agentic-toolkit 0.1.1
File Interpreter ABI Platform
fsr_agentic_toolkit-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 205.1 kB

Release files / fsr_agentic_toolkit-0.1.1.tar.gz

Download URL fsr_agentic_toolkit-0.1.1.tar.gz
Size 111.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a70eda8fa253d7a43a5b5f4ee30077ca0b88688455aa5274c0b077294bebb073
BLAKE2b-256 checksum
How to use checksums
ad8289a6b0c48a2b243024d858fb66fbf25091000e1d3bde34a3485116b8a586
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 24, 2026.

Transparency log

Release files / fsr_agentic_toolkit-0.1.1-py3-none-any.whl

Download URL fsr_agentic_toolkit-0.1.1-py3-none-any.whl
Size 93.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b6374a4d85b13d5cc571df3b9d9a48edfec2984da40a8b454379d4b86f125af2
BLAKE2b-256 checksum
How to use checksums
d5f122629d22124d4c724801571919aa8eff4f1f869f03f8006cd14d1b62423d
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 24, 2026.

Transparency log

Security for fsr-agentic-toolkit 0.1.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for fsr_agentic_toolkit-0.1.1.tar.gz

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 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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