feat: add network mode with combined HTTP and SSE endpoints

- Add new 'network' transport mode that serves both HTTP and SSE endpoints simultaneously
- HTTP endpoint available on specified port (/mcp)
- SSE endpoint available on port+1 (/sse)
- Maintain backward compatibility with stdio, http, sse modes
- Update documentation and examples for new network mode
- Default to network mode for improved user experience

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
b3nw
2025-07-13 17:26:12 +00:00
parent da08718e24
commit e3f7405cd8
4 changed files with 64 additions and 23 deletions

View File

@@ -1,6 +1,6 @@
{
"mcpServers": {
"gitea": {
"gitea-stdio": {
"command": "gitea-mcp",
"args": {
"-t": "stdio",
@@ -11,6 +11,12 @@
"GITEA_HOST": "https://gitea.com",
"GITEA_ACCESS_TOKEN": "<your personal access token>"
}
},
"gitea-network-http": {
"url": "http://localhost:8080/mcp"
},
"gitea-network-sse": {
"url": "http://localhost:8081/sse"
}
}
}