SICurator · CI/CD and MCP setup
Beta SICurator v0.2.8 · checked against source commit 64e9ac7
CI/CD and MCP setup reference.
This page documents how the SICurator pull-request check and the local MCP server are configured in 0.2.8. It is a reference, not an installer.
Availability. The SICurator source repository is private and SICurator is not on PyPI. The desktop app is the public download. The GitHub Action and the Python package used by CI and MCP are shared on request: email hello@zeroform.dev.
Pull-request check (GitHub Actions)
A composite action named “SICurator checks” runs the checks you declare with python -m sicurator.ci, posts or updates one comment on the pull request, and fails the job when a verdict is FAIL (exit 1) or INSUFFICIENT (exit 2). It is not a merge block based on a guard severity flag.
Inputs:
checks-file: JSON file withproject_rootandchecks, relative to the repository root. Default.sicurator/pr-checks.json.install: optional pip requirement. Left empty, the action installs the checkout only when it is SICurator itself; otherwise it stops with “Pass the install input.”
The action uses Python 3.12 and writes sicurator-ci.json and sicurator-ci.md in the workspace. The workflow needs pull-requests: write to comment.
name: SICurator
on:
pull_request:
permissions:
contents: read
pull-requests: write
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Copy the SICurator composite action (shared on request) into
# .github/actions/sicurator in your repository, then:
- uses: ./.github/actions/sicurator
with:
checks-file: .sicurator/pr-checks.json
install: <pip requirement for the SICurator package you received>
Checks file
Each check names a tool and its arguments. In 0.2.8 the allowed tools are check_property, check_convergence, check_differential, run_adversarial_attack, get_certificate, verify_ode_convergence, and verify_tensor_symmetries. An unknown tool name or an empty list is an error. This is the sample file from the source:
{
"project_root": "examples/ci_sample",
"checks": [
{
"tool": "check_property",
"call_template": "sample.mod.negate({x})",
"invariants": ["odd"],
"domain": {
"variables": [
{"name": "x", "type": "float", "minimum": -2, "maximum": 2}
]
},
"file_path": "sample/mod.py",
"num_examples": 4,
"session_id": "ci-negate"
}
]
}
Run the same checks locally:
$ python -m sicurator.ci --checks .sicurator/pr-checks.json
Guard scan in CI
$ sicurator guard ./repo
# Reports findings; exits 0 by default.
# Exit 1 only with --fail-on high or --fail-on critical. There is no --strict flag.
Local MCP server
The server runs over stdio by default. The initialize handshake reports sicurator. Started with --mock, it reports sicurator_mock and prefixes its instructions with MOCK MODE. Example configs use the client key sicurator in both cases. Without --mock, real checks run inside --project-root. Those MCP checks run in a host subprocess; they do not use the Docker image that sicurator sandbox init builds. sicurator doctor prints whether this machine can run the checks. Model calls are refused unless the endpoint is localhost, 127.0.0.1, or ::1.
$ sicurator-mcp --project-root .
$ python -m sicurator.mcp_server --project-root .
$ python -m sicurator.mcp_server --mock # offline scaffold
$ sicurator sandbox init # build or verify sicurator-sandbox:py311
$ sicurator doctor # isolation backend and local readiness
sicurator sandbox init builds or verifies the local sicurator-sandbox:py311 image used by sicurator run --sandbox auto. It is not run by sicurator run, replay, doctor, or the MCP checks. A missing Docker install or a stopped daemon is printed, and the command exits 1.
Cursor, or any client with a local Ollama model (.cursor/mcp.json):
{
"mcpServers": {
"sicurator": {
"command": "python",
"args": ["-m", "sicurator.mcp_server", "--project-root", "."],
"env": {
"SICURATOR_PROVIDER": "ollama",
"SICURATOR_BASE_URL": "http://127.0.0.1:11434/v1",
"SICURATOR_MODEL": "qwen2.5-coder:14b",
"SICURATOR_API_KEY": "ollama"
}
}
}
}
Claude Code, real checks with a local model:
{
"mcpServers": {
"sicurator": {
"type": "stdio",
"command": "python",
"args": ["-m", "sicurator.mcp_server", "--project-root", "."],
"env": {
"SICURATOR_PROVIDER": "ollama",
"SICURATOR_BASE_URL": "http://127.0.0.1:11434/v1",
"SICURATOR_MODEL": "qwen2.5-coder:14b",
"SICURATOR_API_KEY": "ollama"
}
}
}
}
Claude Desktop, offline scaffold. The client key is sicurator. The handshake name for this --mock process is sicurator_mock:
{
"mcpServers": {
"sicurator": {
"command": "python",
"args": ["-m", "sicurator.mcp_server", "--mock"]
}
}
}
Windsurf is not documented.
Questions or access: hello@zeroform.dev. See also the security and execution model.