mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-13 04:13:35 +08:00
feat(go-api): migrate MCP server detail and download API to Go (#16113)
### What problem does this PR solve? - Migrated MCP server detail and export (download) API from Python to Go. - Registered route: `GET /api/v1/mcp/servers/:mcp_id` (supporting `?mode=download` query parameter).
This commit is contained in:
@@ -351,8 +351,6 @@ func (r *Router) Setup(engine *gin.Engine) {
|
||||
commitDatasets.GET("/changes", r.fileCommitHandler.GetUncommittedChanges)
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Author routes
|
||||
authors := v1.Group("/authors")
|
||||
{
|
||||
@@ -500,6 +498,7 @@ func (r *Router) Setup(engine *gin.Engine) {
|
||||
{
|
||||
mcp.POST("/servers", r.mcpHandler.CreateMCPServer)
|
||||
mcp.GET("/servers", r.mcpHandler.ListMCPServers)
|
||||
mcp.GET("/servers/:mcp_id", r.mcpHandler.GetMCPServer)
|
||||
mcp.PUT("/servers/:mcp_id", r.mcpHandler.UpdateMCPServer)
|
||||
mcp.DELETE("/servers/:mcp_id", r.mcpHandler.DeleteMCPServer)
|
||||
mcp.POST("/servers/import", r.mcpHandler.ImportMCPServers)
|
||||
|
||||
Reference in New Issue
Block a user