This release includes 3 security fixes for security teams reviewing exposed deployments.
Topics
+4 more
Summary
AI summaryInitial public release of prolog-reasoner with MCP server, Python library, and security hardening.
Full changelog
Initial public release of prolog-reasoner — SWI-Prolog as a "logic calculator" for LLMs, available as both an MCP server and a Python library.
Added
- MCP server exposing a single tool,
execute_prolog, for use by connected LLMs (no API key required on the server side) - Python library with full NL→Prolog pipeline:
PrologReasoner.translate()+PrologReasoner.execute()with self-correction loop (requires OpenAI or Anthropic API key) - SWI-Prolog subprocess execution backend with CLP(FD) support, shared by both MCP and library
- OpenAI and Anthropic LLM provider support via optional dependencies (library only)
- Docker environment (Python 3.12 + SWI-Prolog 9.x)
- Benchmark suite: 10 logic problems comparing LLM-only vs LLM+Prolog reasoning
- Configuration via environment variables (
PROLOG_REASONER_*) - Lazy initialization in
server.pysofrom prolog_reasoner.server import mcpsucceeds even without SWI-Prolog at import time - Comprehensive test suite (81 tests)
Reliability
- Guaranteed tempfile cleanup via
try/finallyinPrologExecutor.execute()andvalidate_syntax()— no leak on unexpected exceptions
Security
- API key redaction in all log output
- Input validation via Pydantic models
- Execution timeout protection against infinite loops
Installation
# MCP server only (no LLM dependencies)
pip install prolog-reasoner
# Library with OpenAI
pip install prolog-reasoner[openai]
# Library with Anthropic
pip install prolog-reasoner[anthropic]
See README.md for full setup instructions.
Security Fixes
- API key redaction in all log output
- Input validation via Pydantic models
- Execution timeout protection against infinite loops
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
About rikarazome/prolog-reasoner
SWI-Prolog execution for LLMs with CLP(FD), negation-as-failure, and recursion. Benchmarked 90% vs 73% LLM-only accuracy on 30 logic problems.
Related context
Beta — feedback welcome: [email protected]