Metadata-Version: 2.5
Name: strike-ai
Version: 0.1.3
Summary: Client for the Strike API: typed yes/no, choice, and score decisions.
Project-URL: Homepage, https://strike-ai.eu
Project-URL: Documentation, https://strike-ai.eu/docs
Project-URL: Playground, https://strike-ai.eu/playground
Project-URL: Repository, https://github.com/strikeai/strike
Author-email: Strike <hello@strike-ai.eu>
License: MIT
License-File: LICENSE
Keywords: decisions,strike
Classifier: Programming Language :: Python :: 3
Classifier: Typing :: Typed
Requires-Python: >=3.10
Requires-Dist: httpx>=0.25
Description-Content-Type: text/markdown

# strike-ai

Python client for the [Strike](https://strike-ai.eu) API. You send content and typed questions. You get one answer per question, with probabilities.

```bash
pip install strike-ai
```

```python
import os
from strike_ai import Client

client = Client(api_key=os.environ["STRIKE_API_KEY"])
result = client.decide(
    "My card was charged twice for the same order. Please fix this today.",
    {
        "is_urgent": {
            "type": "noul",
            "instructions": "Does the customer express time pressure?",
        },
        "team": {
            "type": "choice",
            "instructions": "Which team should handle this message?",
            "criteria": {
                "billing": "Payments, refunds, invoices",
                "technical": "Bugs, outages, integrations",
                "other": None,
            },
        },
    },
)
```

`STRIKE_API_URL` overrides the default base URL, `https://strike-ai.eu`.

## MCP server

The same install includes a stdio MCP server for Cursor, Claude Code, Claude Desktop, and any other MCP client:

```bash
python -m strike_ai.mcp
```

The console script is `strike-mcp`. Add it to Cursor in `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "strike": {
      "command": "strike-mcp",
      "env": { "STRIKE_API_KEY": "your_key_here" }
    }
  }
}
```

Each tool makes one `POST /v1/systemone` call to strike-1:

| Tool | Use it to |
| --- | --- |
| `strike_decision` | Ask one question as `yes_no`, `choice`, or `score` |
| `strike_classify` | Pick one of up to 255 labelled options |
| `strike_score` | Place the input on an ordered scale of 2-10 levels |
| `strike_check` | Get a yes/no probability |
| `strike_gate` | Screen a shell command or other action before the agent runs it: `allow`, `confirm`, or `block` |
| `strike_decide` | Ask up to 32 typed questions about one input in a single call |

Tool errors come back as `isError` results, so the agent keeps going. A rate-limited call is retried once after the `retry_after` the API sends. `STRIKE_MODEL` picks the model (default `strike-1`).

Strike is in beta. `strike-1` returns real model probabilities. They are not calibrated for production routing yet.

This directory is the source for the [PyPI package](https://pypi.org/project/strike-ai/). Model weights, training, and the API server are not in this package.

Docs: [strike-ai.eu/docs](https://strike-ai.eu/docs).
