build
This commit is contained in:
@@ -342,9 +342,8 @@ function cleanToolName(name: string): string {
|
|||||||
.replace(/[^a-zA-Z0-9_]/g, "_")
|
.replace(/[^a-zA-Z0-9_]/g, "_")
|
||||||
.replace(/_+/g, "_")
|
.replace(/_+/g, "_")
|
||||||
.replace(/^_|_$/g, "")
|
.replace(/^_|_$/g, "")
|
||||||
.replace(/^(get|post|put|delete|patch|api)_/i, "")
|
// ❗️ METHOD PREFIX TIDAK DIHAPUS LAGI (agar tidak duplicate)
|
||||||
.replace(/^(get_|post_|put_|delete_|patch_|api_)+/gi, "")
|
.toLowerCase()
|
||||||
.replace(/(^_|_$)/g, "")
|
|
||||||
|| "unnamed_tool";
|
|| "unnamed_tool";
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error cleaning tool name:", error);
|
console.error("Error cleaning tool name:", error);
|
||||||
@@ -352,6 +351,7 @@ function cleanToolName(name: string): string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Ambil OpenAPI JSON dari endpoint dan konversi ke tools MCP
|
* Ambil OpenAPI JSON dari endpoint dan konversi ke tools MCP
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "n8n-nodes-openapi-mcp-server",
|
"name": "n8n-nodes-openapi-mcp-server",
|
||||||
"version": "1.1.23",
|
"version": "1.1.24",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"n8n",
|
"n8n",
|
||||||
"n8n-nodes"
|
"n8n-nodes"
|
||||||
|
|||||||
7
x.sh
7
x.sh
@@ -1,6 +1 @@
|
|||||||
FAHMI=628123833845
|
curl -X POST https://local-makuro-n8n.wibudev.com/webhook/f732dd1a-e391-4e76-8d2e-a2d67f234b10/mcp
|
||||||
JUNAIDIL=62811380873
|
|
||||||
curl --get \
|
|
||||||
--data-urlencode "nom=$JUNAIDIL" \
|
|
||||||
--data-urlencode "text=ngetes doang gak usah dibales" \
|
|
||||||
https://wa.wibudev.com/code
|
|
||||||
Reference in New Issue
Block a user