MCP运行器

一个支持通过Node.js和Docker运行MCP服务器的工具,适用于开发环境部署和测试。

  • by JHSeo-git
  • TypeScript
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 jhseo-git/my-first-mcp

使用说明

我的第一个mcp

运行MCP

节点

{
  "mcpServers": {
    "my-first-mcp": {
      "command": "node",
      "args": ["/absolute/path/to/your/dist/index.js"]
    }
  }
}

码头工人

{
  "mcpServers": {
    "my-first-mcp": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "my-first-mcp"]
    }
  }
}

跑者

标准

docker build -t my-first-mcp-stdio .
# docker build --platform linux/amd64 -t aoaiaiplayground.azurecr.io/mcp/my-first-mcp-stdio .
# docker buildx build --platform linux/amd64,linux/arm64 -t aoaiaiplayground.azurecr.io/mcp/my-first-mcp-stdio --push .
docker run -i --rm  my-first-mcp-stdio

stdio -> sse

docker build -t my-first-mcp-gateway -f Dockerfile.sse .
docker run --rm -p 8181:8000 my-first-mcp-gateway