基于容器的MCP服务器
一个运行在Podman中的Ubuntu 24.04容器,提供MCP协议服务,支持文件操作、代码执行等功能。
快速入门
-
克隆仓库: git clone https://github.com/54rt1n/container-mcp.git cd container-mcp
-
使用一键脚本启动: chmod +x bin/00-all-in-one.sh ./bin/00-all-in-one.sh
-
或分步安装:
- 初始化项目:./bin/01-init.sh
- 构建容器:./bin/02-build-container.sh
- 设置环境:./bin/03-setup-environment.sh
- 启动容器:./bin/04-run-container.sh
-
使用MCP客户端连接
http://127.0.0.1:8000/sse
。
配置
编辑 volume/config/custom.env
文件以修改参数,例如端口、超时时间等。
测试
运行测试: pytest
更多详情参考README文档。