容器化MCP服务器

基于Docker的MCP(模型上下文协议)服务器,支持ShellCheck、Ruff等多种工具集成,用于代码 linting 和格式化。

  • by Ev3lynx727
  • Shell
  • 本地部署
  • 更新于
在 GitHub 查看 Ev3lynx727/Containerd-mcp-server

使用说明

集装箱MCP服务器

基于Docker的MCP(模型上下文协议)服务器设置,具有多种集成功能。

目录结构

.
├── scripts/           # Utility scripts
│   ├── setup/        # Setup and installation scripts
│   ├── utils/        # Utility and maintenance scripts
│   └── testing/      # Testing scripts
├── mcp-servers/      # MCP server implementations
│   ├── shellcheck/   # ShellCheck MCP server
│   ├── ruff/         # Ruff Python linter MCP server
│   └── start-mcp-servers.sh
├── config/           # Configuration files
│   └── .env
├── docs/             # Documentation
│   └── agent.md
├── logs/             # Log files
├── mcp-data/         # MCP data directory
├── mcp-proxy/        # MCP proxy directory
├── .github/          # GitHub configuration
├── Dockerfile
├── Dockerfile.stdio-proxy
└── docker-compose.yml

快速开始

设置

# Setup MCP Gateway
./scripts/setup/setup_mcp_gateway.sh

# Setup MCP servers
./scripts/setup/install-mcp-servers.sh

重新启动网关

./scripts/utils/restart-gateway.sh

脚本参考

设置脚本

  • setup_mcp_gateway.sh -设置MCP网关
  • setup-mcp-catalog.sh -设置MCP目录
  • setup-zsh-shell.sh -为opencode配置zsh shell
  • install-mcp-servers.sh -安装MCP服务器(ruff、shellcheck)

实用脚本

  • restart-gateway.sh -使用承载令牌更新重新启动MCP网关
  • restart-gateway.py -Python版本的重启脚本
  • rebuild-and-deploy.sh -重建和部署容器
  • run-container.sh -运行容器脚本

测试脚本

  • test-mcp-tools.sh -测试MCP工具(凸缘、外壳检查)

MCP服务器

包含的服务器

  • ShellCheck -Shell脚本linting(mcp-servers/shellcheck/)
  • 拉夫 -Python linting和格式化(mcp-servers/ruff/)
  • 标记下线 -Markdown跳转(mcp-servers/)
    • 端口:3005(HTTP模式)
  • 织物MCP -Microsoft Fabric集成(ms-fabric-mcp-server)
    • 端口:3011
    • 用于Microsoft Fabric操作的基于Python的MCP服务器

码头工人

跑

docker-compose up -d

许可证

有关详细信息,请参阅LICENSE文件。