✨ 特性 | 🚀 快速开始 | 🎥 演示 | ⚙️ 配置 | 🧑💻 开发
一个强大且灵活的容器运行时MCP服务器,支持Podman和Docker。
如果你已经安装了npm,这是在Claude Desktop上快速开始使用podman-mcp-server的方法。
打开你的claude_desktop_config.json文件,并向mcpServers列表中添加mcp服务器:
{
"mcpServers": {
"podman": {
"command": "npx",
"args": [
"-y",
"podman-mcp-server@latest"
]
}
}
}
通过点击以下链接,在VS Code Insiders中安装Podman MCP服务器扩展:
<img src="https://img.shields.io/badge/VS_Code-VS_Code?style=flat-square&label=安装服务器&color=0098FF" alt="在VS Code中安装"> <img alt="在VS Code Insiders中安装" src="https://img.shields.io/badge/VS_Code_Insiders-VS_Code_Insiders?style=flat-square&label=安装服务器&color=24bfa5">
或者,你可以通过运行以下命令手动安装扩展:
# 对于VS Code
code --add-mcp '{"name":"podman","command":"npx","args":["podman-mcp-server@latest"]}'
# 对于VS Code Insiders
code-insiders --add-mcp '{"name":"podman","command":"npx","args":["podman-mcp-server@latest"]}'
Goose CLI 是开始使用人工智能(AI)代理最简单(也是最经济)的方式。
如果你已经安装了npm,这是快速开始使用podman-mcp-server的方法。
打开你的goose config.yaml文件,并向mcpServers列表中添加mcp服务器:
extensions:
podman:
command: npx
args:
- -y
- podman-mcp-server@latest
Podman MCP服务器可以通过命令行(CLI)参数进行配置。
你可以通过使用npx或下载最新发布的二进制文件来运行CLI可执行文件。
# 使用npx运行Podman MCP服务器(如果你已安装npm)
npx podman-mcp-server@latest --help
# 使用最新发布的二进制文件运行Podman MCP服务器
./podman-mcp-server --help
| 选项 | 描述 |
|---|---|
--sse-port | 在服务器发送事件(SSE)模式下启动MCP服务器,并监听指定端口。 |
编译项目并使用mcp-inspector运行Podman MCP服务器以检查MCP服务器。
# 编译项目
make build
# 使用mcp-inspector运行Podman MCP服务器
npx @modelcontextprotocol/inspector@latest $(pwd)/podman-mcp-server