Skip to main content
StrikeStrike
Overview

strike-ai package

Install strike-ai from PyPI, call strike-1, and run the MCP server.

The Python package is strike-ai (opens in a new tab).

Install

bash
pip install strike-ai

It needs Python 3.10 or later and depends only on httpx.

Decide

Python
from strike_ai import Client

client = Client()  # reads STRIKE_API_KEY and STRIKE_API_URL
result = client.decide(
    "Customer reports a duplicate charge on invoice 4411.",
    {
        "refund": {
            "type": "noul",
            "instructions": "Should we refund this charge?",
        }
    },
)
print(result["answers"]["refund"]["noul"])

decide returns the API JSON as a dict. See the Quickstart.

MCP

The same install includes a stdio MCP server. It exposes six tools (strike_decision, strike_classify, strike_score, strike_check, strike_gate, strike_decide), and each one calls POST /v1/systemone.

bash
export STRIKE_API_KEY="your_key_here"
python -m strike_ai.mcp

After install, strike-mcp is the same server. See MCP decision tool.

Configuration

VariableDefaultRead by
STRIKE_API_KEYemptyClient and the MCP server
STRIKE_API_URLhttps://strike-ai.euClient and the MCP server
STRIKE_MODELstrike-1the MCP server
STRIKE_TRACE1the MCP server. 0 skips the console trace
STRIKE_CAPTURE_CONTENT1the MCP server. 0 keeps the trace and drops the request text

Version

Python
import strike_ai

print(strike_ai.__version__)
Strike AI | strike-ai package