GitHits
Search public open-source code, documentation, metadata, vulnerabilities, changelogs, and examples.
AI governance & security gateway for MCP: approved tools, policy-checked calls, signed audit proofs
作者提供的原文
列表按使用分(满分 100)排序,由以下部分组成
| 热度 | 4/80 | GitHub 星标或每周下载量:较大的计 60,较小的计 20 |
|---|---|---|
| 新鲜度 | 12/12 | 30 天内有发布或代码更新得满分 |
| 仍在响应 | 0/8 | 上次检查时云端端点有响应 |
| 使用分 | 16/100 |
质量: 基础检查通过 3/3 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)
选择你使用的 AI 应用,然后复制设置。
用一句话让 AI 帮你安装
请帮我安装 Provenza。按照 https://mcp.popnx.com/i/kironovlaziz-del-provenza.md 操作,先把命令给我看,等我同意后再运行。粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月17日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要 Provenza 的密钥(在开发者网站创建) · 需要填写 1 项设置(PROVENZA_URL) · 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude 安装 MCP server Provenza,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "provenza": { "command": "uvx", "args": [ "provenza" ], "env": { "PROVENZA_URL": "your-value", "PROVENZA_TOKEN": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) PROVENZA_TOKEN, PROVENZA_URL 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Provenza 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
PROVENZA_URL 您自托管的 Provenza,例如 https://provenza.example.com 说明为自动翻译,变量名保持原样;不确定时请查看原文。
SettingsDeveloperEdit Config
{
"mcpServers": {
"provenza": {
"command": "uvx",
"args": [
"provenza"
],
"env": {
"PROVENZA_URL": "your-value",
"PROVENZA_TOKEN": "your-value"
}
}
}
}只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Provenza 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 Provenza,或回答中出现 Provenza 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
PROVENZA_AGENT_NAME 此计算机上的代理名称(默认:mcp) 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 Provenza
Provenza 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
A · 使用能连接 Provenza 的应用
B · 网络安全 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
可连接 Claude Code,但需要先准备
需要 Provenza 的密钥(在开发者网站创建) · 需要填写 1 项设置(PROVENZA_URL) · 需要先在电脑上安装 Python (uv)(只需一次)
把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude Code 安装 MCP server Provenza,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user provenza --env PROVENZA_URL=your-value --env PROVENZA_TOKEN=your-value -- uvx provenza 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) PROVENZA_TOKEN, PROVENZA_URL 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Provenza 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
PROVENZA_URL 您自托管的 Provenza,例如 https://provenza.example.com 说明为自动翻译,变量名保持原样;不确定时请查看原文。
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
claude mcp add --scope user provenza --env PROVENZA_URL=your-value --env PROVENZA_TOKEN=your-value -- uvx provenza按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
应能看到 Provenza 在列表中并显示已连接
用 Provenza 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 Provenza,或回答中出现 Provenza 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
PROVENZA_AGENT_NAME 此计算机上的代理名称(默认:mcp) 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 Provenza 的密钥(在开发者网站创建) · 需要填写 1 项设置(PROVENZA_URL) · 需要先在电脑上安装 Python (uv)(只需一次)
把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Cursor 安装 MCP server Provenza,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "provenza": { "command": "uvx", "args": [ "provenza" ], "env": { "PROVENZA_URL": "your-value", "PROVENZA_TOKEN": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) PROVENZA_TOKEN, PROVENZA_URL 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Provenza 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
PROVENZA_URL 您自托管的 Provenza,例如 https://provenza.example.com 说明为自动翻译,变量名保持原样;不确定时请查看原文。
在 Provenza 的设置中,PROVENZA_TOKEN, PROVENZA_URL 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Provenza 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 Provenza,或回答中出现 Provenza 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
PROVENZA_AGENT_NAME 此计算机上的代理名称(默认:mcp) 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 Provenza 的密钥(在开发者网站创建) · 需要填写 1 项设置(PROVENZA_URL) · 需要先在电脑上安装 Python (uv)(只需一次)
把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 VS Code 安装 MCP server Provenza,按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "provenza": { "type": "stdio", "command": "uvx", "args": [ "provenza" ], "env": { "PROVENZA_URL": "your-value", "PROVENZA_TOKEN": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) PROVENZA_TOKEN, PROVENZA_URL 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 Provenza 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
PROVENZA_URL 您自托管的 Provenza,例如 https://provenza.example.com 说明为自动翻译,变量名保持原样;不确定时请查看原文。
在 Provenza 的设置中,PROVENZA_TOKEN, PROVENZA_URL 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 Provenza 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 Provenza,或回答中出现 Provenza 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
PROVENZA_AGENT_NAME 此计算机上的代理名称(默认:mcp) 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
Claude Code
claude mcp add --scope user provenza --env PROVENZA_URL=your-value --env PROVENZA_TOKEN=your-value -- uvx provenzaClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"provenza": {
"command": "uvx",
"args": [
"provenza"
],
"env": {
"PROVENZA_URL": "your-value",
"PROVENZA_TOKEN": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"provenza": {
"command": "uvx",
"args": [
"provenza"
],
"env": {
"PROVENZA_URL": "your-value",
"PROVENZA_TOKEN": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"provenza": {
"type": "stdio",
"command": "uvx",
"args": [
"provenza"
],
"env": {
"PROVENZA_URL": "your-value",
"PROVENZA_TOKEN": "your-value"
}
}
}
}PROVENZA_URL 必填 envPROVENZA_TOKEN 机密 必填 envPROVENZA_AGENT_NAME env说明为自动翻译,变量名保持原样;不确定时请查看原文。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月20日
注册名称已通过 GitHub 账户 kironovlaziz-del 验证,该账户拥有此仓库
代码最后更新于前天
使用 Apache-2.0
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
尚未检查
如果你是作者,可把这段代码贴到 README。徽章会链接回本页。
[](https://mcp.popnx.com/en/servers/kironovlaziz-del-provenza)提问、分享技巧或报告无法使用。按“有帮助”数量排序。
还没有评价
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:PROVENZA_TOKEN
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于前天,最新版本(0.2.2)于3天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:GitHits, Dependency Management MCP Server, Snyk MCP, TokenSafe, Draugr
同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Search public open-source code, documentation, metadata, vulnerabilities, changelogs, and examples.
Sonatype component intelligence: versions, security analysis, and Trust Score recommendations
Easily find and fix security issues in your applications leveraging Snyk platform capabilities.
Your AI agent is smart enough to code all day. Local firewall & zero-loss runtime.
Security scanning for AI agents: SAST, SCA, secrets, IaC, DAST, ranked by real risk.
| 本项 Provenza | GitHits | Dependency Management MCP Server | Snyk MCP | TokenSafe | Draugr | |
|---|---|---|---|---|---|---|
| 运行位置 | 需要安装在电脑上 | 云端或安装在电脑上都可以 | 在云端运行,无需安装 | 需要安装在电脑上 | 云端或安装在电脑上都可以 | 需要安装在电脑上 |
| 需要密钥 | 是 | 否 | 否 | 否 | 否 | 否 |
| 可在 Claude 中按 + 添加 | 否 | 否 | 否 | 否 | 否 | 否 |
| 基础检查 | 3/3 | 5/5 | 3/4 | 3/3 | 5/5 | 3/3 |
| 许可证 | Apache-2.0 | Apache-2.0 | – | Apache-2.0 | MIT | Apache-2.0 |
| 价格 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 |
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Governed, signed and auditable actions for AI agents.
pip install provenza
from provenza import Agent
agent = Agent("support-bot") # reads PROVENZA_URL and PROVENZA_TOKEN
@agent.tool(name="zendesk.read") def open_tickets(status: str = "open") -> list: return zendesk.tickets.list(status=status)
open_tickets() # checked by Provenza, run, recorded and signed
In connected mode (when PROVENZA_URL is set):
ProvenzaDenied (a PermissionError);ProvenzaApprovalRequired.In both cases the attempt is recorded. Once a person approves the held call, make exactly the same call again: it runs once, within an hour.
try:
send_report(to="cfo@example.com") except ProvenzaApprovalRequired as held: if agent.wait_for_approval(held.action_id)["decision"] == "approved": send_report(to="cfo@example.com") # the same call: runs once
3. The result is recorded and signed with the agent's own key. Provenza
seals it into its signed audit log, so you can download a receipt for it that is verifiable offline.
The SDK fails closed: if the server cannot be reached, the tool does not run and the SDK raises ProvenzaUnavailable. Pass fail_open=True to run anyway and log the call locally as unchecked.
In standalone mode (no server), calls run and are written to a local, signed, hash-chained audit log. You can restrict them with allowed_tools=[...].
Only hashes of arguments and results are written to the local audit log, never the content.
An admin issues a one-time enrollment token in Provenza (Agents → New agent). The agent's keys are generated on its own machine, and only the public key goes to the server:
export PROVENZA_URL=https://provenza.example.com
export PROVENZA_TOKEN=pvz_enr_... # used once; afterwards the identity file is enough
The identity is stored in ~/.config/provenza/agents/ .json (mode 600). The SDK refuses to load it if other users can read it. It is the same file tools/provenza_sign.py enroll writes, so you can enroll with the CLI and run with the SDK.
To keep the private keys in the OS keychain instead:
pip install 'provenza[keychain]'
Agent("bot", key_store="keychain")
For post-quantum hybrid keys (Ed25519 + ML-DSA-65):
pip install 'provenza[pq]'
Agent("bot", hybrid=True)
agent.fingerprint is the value to give whoever verifies the agent's signatures.
with agent.chain(chain_id): # act inside a delegation chain
open_tickets()
task = agent.current_task() # the task a person gave this agent, signed if task: with agent.task(task["id"]): # each call names it; one outside it is refused open_tickets()
agent.delegate(other_agent_id, "summarize Q3", ["read"], tools=["db.read"], expires_in=600)
chk = agent.check("files.delete", {"path": p}) # ask for something that is not a decorated tool if chk.allowed: delete(p) agent.record(chk, {"deleted": True})
Async tools work the same way (async def). If a call ran but could not be recorded on the server (the server went down mid-call), the SDK does not hide the result. It writes a signed gap entry to the local audit log and emits a ProvenzaWarning.
A governed call costs the SDK's own work plus round-trips to the server. The SDK's own work was measured against an in-process server (no network) on 2026-10-11:
record_mode | round-trips before the tool returns | median | p95 |
|---|---|---|---|
"sync" (default) | 2 (check, record) | 0.42 ms | 0.59 ms |
"background" | 1 (check) | 0.15 ms | 0.33 ms |
Add your network round-trip (×2 or ×1) and the server's checks.
With "sync", the record is on the server when the tool returns.
With "background", records are sent from a queue, in order. A failure becomes a signed gap in the local audit log, the same as in sync mode. flush() / aflush() wait for the queue, and close() and interpreter exit drain it. A process that is killed loses whatever is still queued; that is the price of not waiting.
Refusals are always recorded before the exception is raised, so ProvenzaDenied.action_id is known at once.
import provenza.auto
provenza.auto.instrument(agent) # httpx (sync and async) and requests
Every direct call from this process to an AI provider becomes a governed action. That covers the OpenAI, Anthropic, Mistral, Cohere and Gemini SDKs, LangChain's provider clients, or plain HTTP. The provider hosts come from your organization's AI domain catalog (Shadow AI), and the server decides each call:
| catalog status | result |
|---|---|
blocked | refused; incident ai_domain_blocked |
allowed | sent, unless a policy refuses it |
| not classified | sent, unless a policy refuses it; recorded for an admin to classify |
Only the host, method, path (without the query string), and the hash and size of the body are recorded. The prompt is never recorded.
A refusal comes back as an HTTP answer: 403 with an OpenAI-style error body and x-should-retry: false. Provider SDKs therefore raise their usual permission error with Provenza's reason and do not retry. With the server unreachable, nothing is sent (503). Other hosts, and calls to Provenza itself, are untouched. provenza.auto.uninstrument() puts everything back.
Behind a Provenza egress proxy (proxy/ in the repository) the agent has two options. It can send its key and let the proxy check every request, or it can check a request itself and send the check id:
body = json.dumps({"amount": 1000}).encode()
chk = agent.proxy_check("stripe", "POST", "/v1/charges", body=body) if chk.allowed: httpx.post("http://127.0.0.1:8443/stripe/v1/charges", content=body, headers=chk.proxy_headers)
path, query and body must be exactly what goes on the wire. The proxy refuses any other request under that check. The proxy records the request, so it is not passed to record().
agent.proxy_request_headers(...) (same arguments) returns the headers to send: the check's, or, while Provenza is unreachable, only the agent's signed request. A proxy that enforces the signed policy then judges it by the signed release alone until its local kill switch stops it, and Provenza records the request when it is back (docs/pvp/edge.md, section 6).
An API registered in Provenza (Gateways → HTTP tools) is called through Provenza, and the agent never holds its key. The call is checked, made and recorded in one step. A tool that takes a credential is called through the egress proxy, which holds it - Provenza itself holds no credential:
agent = Agent("billing-bot", egress_proxy="http://127.0.0.1:8443") # or PROVENZA_EGRESS_PROXY
out = agent.invoke("crm.set_tier", {"id": "42", "tier": "gold"}) out["status"], out["body"] # a refusal raises ProvenzaDenied agent.http_tools() # names, descriptions and input schemas, for the model
Through a proxy the HTTP request itself is signed too (X-Provenza-Request), which a proxy in enforce mode requires on every path. For clients that cannot sign (a stock OpenAI or MCP client) run the proxy's agent mode next to the agent with this identity file (provenza-proxy -agent-identity …, proxy/README.md).
Is this host confined to the Provenza egress proxy, its only way out? Run the check at start-up and then periodically. With Require confined egress on, an agent acts only while its latest check is confined. See docs/egress-lockdown.md.
agent.egress_selfcheck() # {"verdict": "confined" | "open", ...}
An allowed check carries a permit signed by the organization. The agent sends it with the call:
chk = agent.check("crm.update", payload)
if chk.allowed: httpx.post("https://crm-tool.internal/update", json=payload, headers=chk.permit_headers) agent.record(chk, output)
The tool runs nothing without a valid permit for exactly this call:
from provenza.permit import PermitMiddleware, PermitVerifier, require_permit
verifier = PermitVerifier("https://provenza.example.com", org="provenza") app = PermitMiddleware(app, verifier, tool="crm.update") # any ASGI app: FastAPI, Starlette, ...
@require_permit(verifier, "db.read") # or a plain function def read(query: str): ...
The verifier checks the signature against the organization's JWKS, the tool, the hash of the JSON body (it must be the checked input) and the expiry. It then redeems the permit with Provenza, so it is used once across every replica of the tool. If Provenza cannot be reached, it refuses.
Each framework is an optional extra. The SDK never requires one: crewai and autogen-core even need conflicting protobuf versions.
Through Provenza's gateways. The call goes through the server, which holds the provider credentials, so it is enforced whatever the agent's code does.
# pip install 'provenza[openai]'
from provenza.integrations.openai import gateway_client, wrap client = gateway_client(agent) # an openai.OpenAI pointed at the LLM gateway, with the agent's key client = wrap(existing_client, agent) # or a copy of one you already configured
from provenza.integrations.mcp import connection, client_config conn = connection(agent) # {"url": ".../api/v1/mcp", "headers": {...}}
MCP clients that start a local command (Claude Desktop, Claude Code, Cursor, Windsurf, Gemini CLI, VS Code): provenza-mcp is the same gateway over stdio. Issue an enrollment token in Provenza (Agents → New agent) and add:
{"mcpServers": {"provenza": {
"command": "uvx", "args": ["--from", "provenza", "provenza-mcp"], "env": {"PROVENZA_URL": "https://provenza.example.com", "PROVENZA_TOKEN": "pvz_enr_..."}}}}
From version 0.2.2 "args": ["provenza"] is enough. On the first start the agent enrolls: its keys are made on that machine, and the token can then be removed. The client sees only the tools an administrator approved, and every call is checked against the organization's policies and recorded. Set PROVENZA_AGENT_NAME to run more than one agent on a machine.
Through the LLM gateway, the server checks allowed models and providers, policies and limits; it stores no prompt or answer. Every model the organization has routed (OpenAI, Anthropic, Azure, …) is reached through this one OpenAI-compatible endpoint. Streaming is not supported yet.
Tool wrappers. These keep the tool's name, description and argument schema, so the model sees no difference:
# pip install 'provenza[langchain]'
from provenza.integrations.langchain import govern_tools tools = govern_tools(agent, [search, read_file]) # a refusal reaches the model as the tool's answer
from provenza.integrations.autogen import govern_tools tools = govern_tools(agent, [FunctionTool(lookup, description="...")])
from provenza.integrations.crewai import govern_tools researcher = crewai.Agent(role="...", goal="...", tools=govern_tools(agent, [search_tool]))
prefix= namespaces the names policies see, so prefix="kb." turns