Skip to content

Commit 288f736

Browse files
committed
docs: 更新README.md以添加MCP Server的启动和集成说明
更新了README.md文件,添加了MCP Server的启动和集成说明,包括源码启动、编译后启动以及集成到MCP工具中的详细步骤。这些修改有助于用户更清晰地了解如何启动和集成MCP Server。
1 parent 9430b6e commit 288f736

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

README.md

+21-1
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,36 @@ func main() {
5959
6060
### 0. 多集群 k8s MCP 支持
6161
支持多个tools 支持。包括对任意资源的查询列表删除描述操作,以及POD日志读取操作。
62-
62+
#### 1.集成到代码中
6363
```go
6464
// 一行代码启动MCP Server
6565
mcp.RunMCPServer("kom mcp server", "0.0.1", 9096)
6666

6767
```
68+
#### 2. 直接源码启动
6869
```shell
70+
go run main.go
6971
# MCP Server 访问地址
7072
http://IP:9096/sse
7173
```
74+
#### 3. 编译后启动
75+
```shell
76+
go build main.go
77+
./main
78+
http://IP:9096/sse
79+
```
80+
#### 4. 集成到MCP工具中
81+
```json
82+
{
83+
"mcpServers": {
84+
"kom": {
85+
"type": "sse",
86+
"url": "http://IP:9096/sse"
87+
}
88+
}
89+
}
90+
```
91+
7292
#### MCP工具列表(49种)
7393
7494
| 类别 | 方法 | 描述 |

0 commit comments

Comments
 (0)