Update README.md

This commit is contained in:
hiifong
2025-03-20 23:03:43 +08:00
parent 72d9b5a8dd
commit 3def51ffd1

View File

@@ -38,6 +38,7 @@ cp gitea-mcp /usr/local/bin/
This example is for Cursor, you can also use plugins in VSCode. This example is for Cursor, you can also use plugins in VSCode.
To configure the MCP server for Gitea, add the following to your MCP configuration file: To configure the MCP server for Gitea, add the following to your MCP configuration file:
- **stdio mode**
```json ```json
{ {
"mcpServers": { "mcpServers": {
@@ -57,6 +58,17 @@ To configure the MCP server for Gitea, add the following to your MCP configurati
} }
``` ```
- **sse mode**
```json
{
"mcpServers": {
"gitea": {
"url": "http://localhost:8080/sse"
}
}
}
```
> [!NOTE] > [!NOTE]
> You can provide your Gitea host and access token either as command-line arguments or environment variables. > You can provide your Gitea host and access token either as command-line arguments or environment variables.
> Command-line arguments have the highest priority > Command-line arguments have the highest priority