From 1f7392305fe5b7aeaf84f245472b3b80f4593488 Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 6 Feb 2026 03:16:37 +0000 Subject: [PATCH] docs: add `--scope user` to Claude Code examples in READMEs (#118) Small followup to https://gitea.com/gitea/gitea-mcp/pulls/117. By using the user scope, the MCP server connection will be saved into the user's home directory, making it available for all repos, which is more useful than having to do this per-repo. Co-Authored-By: Claude Opus 4.5 --------- Co-authored-by: hiifong Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/118 Reviewed-by: Lunny Xiao Reviewed-by: hiifong Co-authored-by: silverwind Co-committed-by: silverwind --- README.md | 2 +- README.zh-cn.md | 2 +- README.zh-tw.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 37e8d40..dcea00d 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Model Context Protocol (MCP) is a protocol that allows for the integration of va This method uses `go run` and requires [Go](https://go.dev) to be installed. ```bash -claude mcp add --transport stdio gitea \ +claude mcp add --transport stdio --scope user gitea \ --env GITEA_ACCESS_TOKEN=token \ --env GITEA_HOST=https://gitea.com \ -- go run gitea.com/gitea/gitea-mcp@latest -t stdio diff --git a/README.zh-cn.md b/README.zh-cn.md index 5aa705d..27af10b 100644 --- a/README.zh-cn.md +++ b/README.zh-cn.md @@ -38,7 +38,7 @@ Model Context Protocol (MCP) 是一种协议,允许通过聊天界面整合各 此方式使用 `go run`,需要安装 [Go](https://go.dev)。 ```bash -claude mcp add --transport stdio gitea \ +claude mcp add --transport stdio --scope user gitea \ --env GITEA_ACCESS_TOKEN=token \ --env GITEA_HOST=https://gitea.com \ -- go run gitea.com/gitea/gitea-mcp@latest -t stdio diff --git a/README.zh-tw.md b/README.zh-tw.md index 6da2368..abed1a6 100644 --- a/README.zh-tw.md +++ b/README.zh-tw.md @@ -38,7 +38,7 @@ Model Context Protocol (MCP) 是一種協議,允許透過聊天介面整合各 此方式使用 `go run`,需要安裝 [Go](https://go.dev)。 ```bash -claude mcp add --transport stdio gitea \ +claude mcp add --transport stdio --scope user gitea \ --env GITEA_ACCESS_TOKEN=token \ --env GITEA_HOST=https://gitea.com \ -- go run gitea.com/gitea/gitea-mcp@latest -t stdio