mirror of
https://gitea.com/gitea/gitea-mcp.git
synced 2025-08-24 06:43:05 +00:00
Update README.md
This commit is contained in:
12
README.md
12
README.md
@@ -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
|
||||||
|
Reference in New Issue
Block a user