This commit is contained in:
bipproduction
2025-11-11 10:22:58 +08:00
parent 9ff2aa0fec
commit 84d8794d85
5 changed files with 80 additions and 14 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "n8n-nodes-jenna-mcp",
"version": "1.0.41",
"version": "1.0.43",
"main": "dist/index.js",
"keywords": [
"n8n",

View File

@@ -520,12 +520,23 @@ class JennaMcp {
displayOptions: { show: { operation: ["mcp_postApiPengaduanUpload"] } },
},
{
displayName: "Body file",
name: "body_file",
displayName: "Body data",
name: "body_data",
type: "string",
default: "",
placeholder: "file",
description: "file",
placeholder: "data",
description: "data",
displayOptions: {
show: { operation: ["mcp_postApiPengaduanUpload_base64"] },
},
},
{
displayName: "Body mimetype",
name: "body_mimetype",
type: "string",
default: "",
placeholder: "mimetype",
description: "mimetype",
displayOptions: {
show: { operation: ["mcp_postApiPengaduanUpload_base64"] },
},
@@ -1160,8 +1171,9 @@ class JennaMcp {
break;
}
case "mcp_postApiPengaduanUpload_base64": {
const body_file = this.getNodeParameter("body_file", i, "");
const body = { file: body_file };
const body_data = this.getNodeParameter("body_data", i, "");
const body_mimetype = this.getNodeParameter("body_mimetype", i, "");
const body = { data: body_data, mimetype: body_mimetype };
url = baseUrl + "/api/pengaduan/upload-base64";
method = "post";
axiosConfig = {

View File

@@ -1,6 +1,6 @@
{
"name": "n8n-nodes-jenna-mcp",
"version": "1.0.41",
"version": "1.0.43",
"main": "dist/index.js",
"keywords": [
"n8n",

View File

@@ -542,12 +542,24 @@ export class JennaMcp implements INodeType {
},
{
displayName: "Body file",
name: "body_file",
displayName: "Body data",
name: "body_data",
type: "string",
default: "",
placeholder: "file",
description: "file",
placeholder: "data",
description: "data",
displayOptions: {
show: { operation: ["mcp_postApiPengaduanUpload_base64"] },
},
},
{
displayName: "Body mimetype",
name: "body_mimetype",
type: "string",
default: "",
placeholder: "mimetype",
description: "mimetype",
displayOptions: {
show: { operation: ["mcp_postApiPengaduanUpload_base64"] },
},
@@ -1290,8 +1302,13 @@ export class JennaMcp implements INodeType {
}
case "mcp_postApiPengaduanUpload_base64": {
const body_file = this.getNodeParameter("body_file", i, "") as any;
const body = { file: body_file };
const body_data = this.getNodeParameter("body_data", i, "") as any;
const body_mimetype = this.getNodeParameter(
"body_mimetype",
i,
"",
) as any;
const body = { data: body_data, mimetype: body_mimetype };
url = baseUrl + "/api/pengaduan/upload-base64";
method = "post";
axiosConfig = {

37
x.ts Normal file

File diff suppressed because one or more lines are too long