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 <xiaolunwen@gmail.com> Co-authored-by: Sandro Santilli <strk@kbt.io> Co-committed-by: Sandro Santilli <strk@kbt.io>
This commit is contained in:
committed by
Lunny Xiao
parent
a35fd26112
commit
3af6250589
@@ -34,6 +34,23 @@ Model Context Protocol (MCP) is a protocol that allows for the integration of va
|
|||||||
|
|
||||||
## 🚧 Installation
|
## 🚧 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", "<your personal access token>"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### Usage with Claude Code
|
### Usage with Claude Code
|
||||||
|
|
||||||
This method uses `go run` and requires [Go](https://go.dev) to be installed.
|
This method uses `go run` and requires [Go](https://go.dev) to be installed.
|
||||||
|
|||||||
Reference in New Issue
Block a user