MCP decision tool
Run strike_decision over stdio MCP with python -m strikeflow.mcp.
strikeflow ships a stdio MCP server with no extra dependencies beyond the core package.
Run the server
bash
export STRIKE_API_KEY="your_key_here"
python -m strikeflow.mcpEquivalent console script after install: strike-mcp.
Configure in Cursor or Claude Desktop MCP settings with command python -m strikeflow.mcp and the same environment variables. Base URL defaults to https://strike-ai.eu.
Protocol
- JSON-RPC 2.0, one message per line
initialize,tools/list,tools/call,ping- Tool name:
strike_decision(schema matches other providers)
Call from Python (testing)
Python
import json
import strikeflow as strike
from strikeflow.mcp import handle
tool = strike.strike_decision_tool()
request = {
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "strike_decision",
"arguments": {
"question": "Escalate to a human?",
"kind": "yes_no",
},
},
}
response = handle(request, tool=tool)
print(response["result"]["structuredContent"]["answer"])Unknown tools return JSON-RPC error code -32602. Unknown methods return -32601.