Repository navigation
v0.2.1
prism-ai-mcp 0.2.1 — security fix
No breaking changes.
SECURITY: in 0.2.0 an async def gate was silently treated as consent.
The gate's verdict was never awaited; a coroutine is truthy, so a gate
that returned False let the tools/call through. The tool ran and its
result came back, and the only sign was "RuntimeWarning: coroutine was
never awaited". If you wrote an async gate against 0.2.0, upgrade.
- The gate's verdict is now awaited before anything is sent. Sync gates
keep working unchanged. - A gate that resolves to a further awaitable (an async gate that
forgets an inner await) is refused with TypeError instead of being read
as consent. - A ResultGuard filter that returns anything but str (e.g. an async
filter) now raises TypeError instead of framing "<coroutine ...>" as
the tool's answer.
Tracked as G-83.