MK

mpaape/keyholder-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

1 stars 0 forks 质量 58 趋势 8MIT

Keyholder MCP 是 OpenBao 上的 MCP 服务器。代理看到凭证并请求用它执行命令;只有在命令运行时(延迟绑定)才会填充该值,输出会返回......

概览

Keyholder MCP 是 OpenBao 上的 MCP 服务器。代理看到凭证并请求用它执行命令;该值只有在命令执行时(延迟绑定)才被填充,输出时会以遮蔽状态返回。访问是临时的:一个包裹的一次性令牌,带有 TTL。 状态:v0.3.0。与OpenBao 2.7.1进行端到端测试;每个教程都是真实且反复核查的运行。 从 Releases 下载 keyholder-mcp(以及 khcall 调试客户端)支持 Linux、macOS 或 Windows,并对照 SHA256SUMS,或者用 Go 1.25+ 构建。你还需要 OpenBao。 然后用 BAO_ADDR、BAO_WRAPPING_TOKEN、KEYHOLDER_SCOPE=我的项目和 KEYHOLDER_ALLOW=curl 添加到你的 MCP 客户端。完整攻略:入门。为 Claude 代码、光标和 Codex:MCP 客户端设置客户端。 使用 OpenBao 的 AWS 或 GCP secrets 插件,凭证:[“aws:aws/creds/deploy”] 给 AWS CLI 创建一个为该运行创建并结束时撤销的密钥;GCP:给 Google Cloud 一个访问令牌文件。

概述(AI 翻译)

让AI代理在你从未见过你的凭证的情况下使用。

葡萄牙语 ·文档 ·教程

密钥持有者MCP是基于OpenBao的MCP服务器。代理看到凭证names并请求用它们执行命令;该值只有在命令运行时(延迟绑定)才被填充,输出时会以掩码状态返回。访问是临时的:一个封装的一次性令牌,带有TTL。

状态:v0.4.1。与OpenBao 2.7.1进行端对端测试;每个教程都是真实且反复核查的运行。

工具

工具 Does 返回
keyholder_status 保险库和会话状态 是否封存,剩余TTL,策略;永远不要让令牌
keyholder_list 项目范围中的参考 vault:// 仅提及名称
keyholder_run 在 args、env 或 files 中运行允许的命令,并在为该运行创建的云 credentials退出代码、掩蔽的 stdout 和 stderr、使用的引用

快速开始

从 Releases 下载 Linux、macOS 或 Windows 的 keyholder-mcp(以及 khcall 调试客户端),并与 SHA256SUMS 对照,或者用 Go 1.25+ 构建。你还需要 OpenBao。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Keyholder MCP

Let AI agents use your credentials without ever seeing them.

Português · Documentation · Tutorials

Keyholder MCP is an MCP server over OpenBao. The agent sees credential names and asks to run commands with them; the value is filled in only when the command runs (late binding), and the output comes back with the value masked. Access is temporary: a wrapped, single-use token with a TTL.

agent asks:   curl -H "Authorization: Bearer {{vault://my-project/dev/API_TOKEN}}" https://api.example.com/health
agent reads:  api says: hello, caller with header Authorization: Bearer [hidden:vault://my-project/dev/API_TOKEN]

Status: v0.4.1. Tested end to end against OpenBao 2.7.1; every tutorial is a real, re-checked run.

Tools

Tool Does Returns
keyholder_status Vault and session status Sealed or not, remaining TTL, policies; never the token
keyholder_list References in the project scope vault:// names only
keyholder_run Runs an allowed command with {{vault://...}} in args, env or files, and cloud credentials made for the run Exit code, masked stdout and stderr, references used

Quick start

Download keyholder-mcp (and the khcall debugging client) for Linux, macOS or Windows from Releases and check it against SHA256SUMS, or build it with Go 1.25+. You also need OpenBao.

go build -o keyholder-mcp ./cmd/keyholder-mcp     # or use a release binary

bao server -dev -dev-root-token-id=root-dev        # in-memory, never with real secrets: see Persistent vault

export BAO_ADDR=http://127.0.0.1:8200 BAO_TOKEN=root-dev
bao kv put -mount=secret my-project/dev API_TOKEN=your-api-token
bao policy write my-project-read deploy/policy-project-read.hcl
bao token create -policy=my-project-read -ttl=8h -explicit-max-ttl=8h -wrap-ttl=5m -field=wrapping_token

Then add keyholder-mcp to your MCP client with BAO_ADDR, BAO_WRAPPING_TOKEN, KEYHOLDER_SCOPE=my-project and KEYHOLDER_ALLOW=curl. Full walkthrough: Getting started. Client setup for Claude Code, Cursor and Codex: MCP clients.

Cloud credentials

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →