toolwrit
Toolwrit is a tool-call authorization and audit library for AI agents, and also provides a sidecar runtime. It uses policy files to establish allowlists, budget caps, and rate limits for tool calls, and writes every allow, deny, or ask decision to a verifiable hash-chain audit log. It does not act as a gateway; traffic does not leave your own infrastructure. You can wrap tool handler functions in three lines of code, or use the command line to apply policies in front of an existing MCP server. Supports Node.js 20+ and Python 3.10+, licensed under Apache-2.0.