mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
feat(MCP Server Trigger Node): Add MCP Server Trigger node to expose tools to MCP clients (#14403)
Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
@@ -4,6 +4,7 @@ import { useToast } from '@/composables/useToast';
|
||||
import {
|
||||
CHAT_TRIGGER_NODE_TYPE,
|
||||
FORM_TRIGGER_NODE_TYPE,
|
||||
MCP_TRIGGER_NODE_TYPE,
|
||||
OPEN_URL_PANEL_TRIGGER_NODE_TYPES,
|
||||
PRODUCTION_ONLY_TRIGGER_NODE_TYPES,
|
||||
} from '@/constants';
|
||||
@@ -31,7 +32,7 @@ const isMinimized = ref(
|
||||
props.nodeTypeDescription &&
|
||||
!OPEN_URL_PANEL_TRIGGER_NODE_TYPES.includes(props.nodeTypeDescription.name),
|
||||
);
|
||||
const showUrlFor = ref('test');
|
||||
const showUrlFor = ref<'test' | 'production'>('test');
|
||||
|
||||
const isProductionOnly = computed(() => {
|
||||
return (
|
||||
@@ -95,6 +96,18 @@ const baseText = computed(() => {
|
||||
copyMessage: i18n.baseText('nodeWebhooks.showMessage.message.formTrigger'),
|
||||
};
|
||||
|
||||
case MCP_TRIGGER_NODE_TYPE:
|
||||
return {
|
||||
toggleTitle: i18n.baseText('nodeWebhooks.webhookUrls.mcpTrigger'),
|
||||
clickToDisplay: i18n.baseText('nodeWebhooks.clickToDisplayWebhookUrls.mcpTrigger'),
|
||||
clickToHide: i18n.baseText('nodeWebhooks.clickToHideWebhookUrls.mcpTrigger'),
|
||||
clickToCopy: i18n.baseText('nodeWebhooks.clickToCopyWebhookUrls.mcpTrigger'),
|
||||
testUrl: i18n.baseText('nodeWebhooks.testUrl'),
|
||||
productionUrl: i18n.baseText('nodeWebhooks.productionUrl'),
|
||||
copyTitle: i18n.baseText('nodeWebhooks.showMessage.title.mcpTrigger'),
|
||||
copyMessage: undefined,
|
||||
};
|
||||
|
||||
default:
|
||||
return {
|
||||
toggleTitle: i18n.baseText('nodeWebhooks.webhookUrls'),
|
||||
|
||||
Reference in New Issue
Block a user