|
@@ -8,7 +8,7 @@ router.get("/", async (req, res) => {
|
|
const offset = (page - 1) * pageSize;
|
|
const offset = (page - 1) * pageSize;
|
|
|
|
|
|
const sql = `
|
|
const sql = `
|
|
- SELECT tools_id, tools_name, tools_function_name, tools_full_name,
|
|
|
|
|
|
+ SELECT tools_id, tools_name, tools_function_name, mcp_tools_name, tools_full_name,
|
|
tools_desc, tools_version, access_task_id, status, call_type,
|
|
tools_desc, tools_version, access_task_id, status, call_type,
|
|
api_provider, api_url_path, create_time, update_time
|
|
api_provider, api_url_path, create_time, update_time
|
|
FROM tools_library
|
|
FROM tools_library
|
|
@@ -40,7 +40,7 @@ router.get("/:id", async (req, res) => {
|
|
const { id } = req.params;
|
|
const { id } = req.params;
|
|
|
|
|
|
const sql = `
|
|
const sql = `
|
|
- SELECT tools_id, tools_name, tools_function_name, tools_full_name,
|
|
|
|
|
|
+ SELECT tools_id, tools_name, tools_function_name, mcp_tools_name, tools_full_name,
|
|
tools_desc, tools_version, access_task_id, status, call_type,
|
|
tools_desc, tools_version, access_task_id, status, call_type,
|
|
api_provider, api_url_path, operate_path_data, params_definition,
|
|
api_provider, api_url_path, operate_path_data, params_definition,
|
|
response_desc, create_time, update_time
|
|
response_desc, create_time, update_time
|
|
@@ -67,6 +67,7 @@ router.put("/:id", async (req, res) => {
|
|
const {
|
|
const {
|
|
tools_name,
|
|
tools_name,
|
|
tools_function_name,
|
|
tools_function_name,
|
|
|
|
+ mcp_tools_name,
|
|
tools_full_name,
|
|
tools_full_name,
|
|
tools_desc,
|
|
tools_desc,
|
|
tools_version,
|
|
tools_version,
|
|
@@ -82,7 +83,7 @@ router.put("/:id", async (req, res) => {
|
|
|
|
|
|
const sql = `
|
|
const sql = `
|
|
UPDATE tools_library
|
|
UPDATE tools_library
|
|
- SET tools_name = ?, tools_function_name = ?, tools_full_name = ?,
|
|
|
|
|
|
+ SET tools_name = ?, tools_function_name = ?, mcp_tools_name = ?, tools_full_name = ?,
|
|
tools_desc = ?, tools_version = ?, access_task_id = ?,
|
|
tools_desc = ?, tools_version = ?, access_task_id = ?,
|
|
status = ?, call_type = ?, api_provider = ?, api_url_path = ?,
|
|
status = ?, call_type = ?, api_provider = ?, api_url_path = ?,
|
|
operate_path_data = ?, params_definition = ?, response_desc = ?,
|
|
operate_path_data = ?, params_definition = ?, response_desc = ?,
|
|
@@ -94,6 +95,7 @@ router.put("/:id", async (req, res) => {
|
|
const params = [
|
|
const params = [
|
|
tools_name ?? null,
|
|
tools_name ?? null,
|
|
tools_function_name ?? null,
|
|
tools_function_name ?? null,
|
|
|
|
+ mcp_tools_name ?? null,
|
|
tools_full_name ?? null,
|
|
tools_full_name ?? null,
|
|
tools_desc ?? null,
|
|
tools_desc ?? null,
|
|
tools_version ?? null,
|
|
tools_version ?? null,
|