feat: 添加获取 MCP 路由列表的接口

This commit is contained in:
pixelmaxQM
2026-04-16 10:08:21 +08:00
parent 60c1ec12b9
commit 51b4ea284e
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -160,6 +160,7 @@ func (i *initApi) InitializeData(ctx context.Context) (context.Context, error) {
{ApiGroup: "代码生成器", Method: "POST", Path: "/autoCode/mcpStatus", Description: "获取 MCP 独立服务状态"},
{ApiGroup: "代码生成器", Method: "POST", Path: "/autoCode/mcpStart", Description: "启动 MCP 独立服务"},
{ApiGroup: "代码生成器", Method: "POST", Path: "/autoCode/mcpStop", Description: "停用 MCP 独立服务"},
{ApiGroup: "代码生成器", Method: "POST", Path: "/autoCode/mcpRoutes", Description: "获取 MCP 路由列表"},
{ApiGroup: "代码生成器", Method: "POST", Path: "/autoCode/mcpTest", Description: "MCP Tool 管理"},
{ApiGroup: "代码生成器", Method: "POST", Path: "/autoCode/mcpList", Description: "获取 MCP ToolList"},
{ApiGroup: "代码生成器", Method: "POST", Path: "/autoCode/saveAIWorkflowSession", Description: "保存AI需求工作流会话"},
+2
View File
@@ -172,6 +172,7 @@ func (i *initCasbin) InitializeData(ctx context.Context) (context.Context, error
{Ptype: "p", V0: "888", V1: "/autoCode/mcpStatus", V2: "POST"},
{Ptype: "p", V0: "888", V1: "/autoCode/mcpStart", V2: "POST"},
{Ptype: "p", V0: "888", V1: "/autoCode/mcpStop", V2: "POST"},
{Ptype: "p", V0: "888", V1: "/autoCode/mcpRoutes", V2: "POST"},
{Ptype: "p", V0: "888", V1: "/autoCode/mcpTest", V2: "POST"},
{Ptype: "p", V0: "888", V1: "/autoCode/mcpList", V2: "POST"},
{Ptype: "p", V0: "888", V1: "/autoCode/saveAIWorkflowSession", V2: "POST"},
@@ -357,6 +358,7 @@ func (i *initCasbin) InitializeData(ctx context.Context) (context.Context, error
{Ptype: "p", V0: "9528", V1: "/autoCode/mcpStatus", V2: "POST"},
{Ptype: "p", V0: "9528", V1: "/autoCode/mcpStart", V2: "POST"},
{Ptype: "p", V0: "9528", V1: "/autoCode/mcpStop", V2: "POST"},
{Ptype: "p", V0: "9528", V1: "/autoCode/mcpRoutes", V2: "POST"},
{Ptype: "p", V0: "9528", V1: "/autoCode/saveAIWorkflowSession", V2: "POST"},
{Ptype: "p", V0: "9528", V1: "/autoCode/getAIWorkflowSessionList", V2: "POST"},
{Ptype: "p", V0: "9528", V1: "/autoCode/getAIWorkflowSessionDetail", V2: "POST"},