Keylime MCP
一种模型上下文协议(MCP)服务器 Keylime,云和边缘系统的远程认证框架。
需求
此MCP服务器是使用Keylime的辅助工具。您需要:
- 跑步 Keylime验证器 和 Keylime注册商
- Keylime试剂 监控
- 对Keylime API端点的网络访问
- MCP客户端 (克劳德桌面、克莱恩等)或 波德曼 用于集装箱
用法
有两种方法可以使用此MCP服务器:
选项1:使用MCP客户端(Claude Desktop、Cline等)
构建服务器:
make build-server您可以将二进制文件移动到任何您想要的地方(例如。, /usr/local/bin/server).
添加到您的MCP客户端配置中(例如。, ~/.config/Claude/claude_desktop_config.json):
{
"mcpServers": {
"keylime": {
"command": "/full/path/to/keylime-mcp/bin/server",
"env": {
"KEYLIME_CERT_DIR": "/full/path/to/keylime/certs/dir"
}
}
}
}替换 /full/path/to/keylime-mcp 与你的实际路径!
替换 /full/path/to/keylime/certs/dir 使用您的证书目录! 证书应该在 /var/lib/keylime/cv_ca 但需要读取权限。
重新启动MCP客户端。完成。
选项2:Web用户界面
make run访问地址:http://localhost:3000
命令
make install-完整设置(检查deps、env、certs、build)make check-deps-验证Go已安装且证书可读make setup-certs-授予Keylime证书的读取权限(需要sudo)make build-server-构建MCP服务器二进制文件make build-构建一切(服务器+客户端)make run-构建并运行make start-运行预构建的二进制文件(无需编译)
关于Keylime
Keylime 是一个开源的远程认证框架,提供:
- 测量引导 通过TPM进行验证
- 运行时完整性 IMA监控
- 安全注册 密钥管理
- 基于策略的认证 自动响应
贡献
欢迎投稿!这是一个探索MCP与Keylime集成的实验项目。
许可证
阿帕奇-2.0
