From 3af625058957c3092df0c78da4b45c84577d506b Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 28 May 2026 17:46:35 +0000 Subject: [PATCH] Add example configuration for OpenCode (#198) It took me some time so it's nice if the next person finds easier instructions here. Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/198 Reviewed-by: Lunny Xiao Co-authored-by: Sandro Santilli Co-committed-by: Sandro Santilli --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/README.md b/README.md index af6fc85..61baa6b 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,23 @@ Model Context Protocol (MCP) is a protocol that allows for the integration of va ## 🚧 Installation +### Usage with OpenCode (opencode.ai) + +Add a snippet like the following in the "mcp" top-level object (add one if you don't have any): + +```json + "gitea-mcp": { + "enabled": true, + "type": "local", + "command": [ + "gitea-mcp", + "-t", "stdio", + "-H", "https://git.your-domain.org", + "-T", "" + ] + } +``` + ### Usage with Claude Code This method uses `go run` and requires [Go](https://go.dev) to be installed.