From 88939869ff9c79aee46073a19f5d29c558857245 Mon Sep 17 00:00:00 2001 From: yangzhaohan Date: Mon, 6 Jul 2026 10:48:28 +0800 Subject: [PATCH] =?UTF-8?q?README:=20=E6=9B=B4=E6=96=B0=E7=AB=AF=E5=8F=A3?= =?UTF-8?q?=E4=B8=BA=209090=EF=BC=8C=E8=A1=A5=E5=85=85=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E7=AB=AF=E5=8F=A3=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 528ca39..1d19722 100644 --- a/README.md +++ b/README.md @@ -23,13 +23,17 @@ make build && ./ops-mcp ## Docker Compose 部署 ```bash +# 默认端口 9090 docker compose up -d --build + +# 自定义端口 +OPS_MCP_PORT=3000 docker compose up -d --build ``` -然后 Claude Desktop 通过 SSE 连接: +Claude Desktop SSE 连接(端口改成你设置的): ```json -{ "mcpServers": { "ops-mcp": { "url": "http://:8080/sse" } } } +{ "mcpServers": { "ops-mcp": { "url": "http://:9090/sse" } } } ``` ## MCP 工具