From 8a874769bdca2d4c9ef09f806a5559b00883cac8 Mon Sep 17 00:00:00 2001 From: Angiin Date: Sat, 28 Feb 2026 22:16:17 +0800 Subject: [PATCH] Update README.md add opencode tutorial --- README.md | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/README.md b/README.md index 9f23f2b..b85a864 100644 --- a/README.md +++ b/README.md @@ -507,6 +507,51 @@ claude mcp list +
+Open Code CLI + +使用交互式命令添加 MCP Server: + +```bash +opencode mcp add +``` + +以添加 `xiaohongshu-mcp` 为例: + +``` +┌ Add MCP server +│ +◇ Enter MCP server name +│ xiaohongshu-mcp +│ +◇ Select MCP server type +│ Remote +│ +◇ Enter MCP server URL +│ http://localhost:18060/mcp +│ +◇ Does this server require OAuth authentication? +│ No +│ +◆ MCP server "xiaohongshu-mcp" added to C:\Users\admin\.config\opencode\opencode.json +│ +└ MCP server added successfully +``` + +验证是否添加成功(确保 MCP 已启动的前提下): + +```bash +opencode mcp list +``` + +``` +┌ MCP Servers +│ +● ✓ xiaohongshu-mcp connected +``` + +
+
Cursor