mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-06 13:33:11 +00:00
53 lines
1.6 KiB
JavaScript
53 lines
1.6 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.MCPApi = void 0;
|
|
class MCPApi {
|
|
constructor() {
|
|
this.name = 'mcpApi';
|
|
this.displayName = 'MCP API';
|
|
this.documentationUrl = 'mcp';
|
|
this.properties = [
|
|
{
|
|
displayName: 'Server URL',
|
|
name: 'serverUrl',
|
|
type: 'string',
|
|
default: 'http://localhost:3000',
|
|
placeholder: 'http://localhost:3000',
|
|
description: 'The URL of the MCP server',
|
|
},
|
|
{
|
|
displayName: 'Authentication Token',
|
|
name: 'authToken',
|
|
type: 'string',
|
|
typeOptions: {
|
|
password: true,
|
|
},
|
|
default: '',
|
|
description: 'Authentication token for the MCP server (if required)',
|
|
},
|
|
{
|
|
displayName: 'Connection Type',
|
|
name: 'connectionType',
|
|
type: 'options',
|
|
options: [
|
|
{
|
|
name: 'HTTP',
|
|
value: 'http',
|
|
},
|
|
{
|
|
name: 'WebSocket',
|
|
value: 'websocket',
|
|
},
|
|
{
|
|
name: 'STDIO',
|
|
value: 'stdio',
|
|
},
|
|
],
|
|
default: 'http',
|
|
description: 'How to connect to the MCP server',
|
|
},
|
|
];
|
|
}
|
|
}
|
|
exports.MCPApi = MCPApi;
|
|
//# sourceMappingURL=MCPApi.credentials.js.map
|