langflow-mcp-server 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +5 -0
- package/LICENSE +1 -1
- package/README.md +91 -8
- package/dist/__tests__/fixtures/advanced-execution.d.ts +5 -1
- package/dist/__tests__/fixtures/advanced-execution.d.ts.map +1 -1
- package/dist/__tests__/fixtures/advanced-execution.js +43 -1
- package/dist/__tests__/fixtures/advanced-execution.js.map +1 -1
- package/dist/mcp/index.js +8 -1
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/server-consolidated.d.ts +28 -0
- package/dist/mcp/server-consolidated.d.ts.map +1 -0
- package/dist/mcp/server-consolidated.js +740 -0
- package/dist/mcp/server-consolidated.js.map +1 -0
- package/dist/mcp/server.d.ts +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +105 -21
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tools-consolidated.d.ts +3 -0
- package/dist/mcp/tools-consolidated.d.ts.map +1 -0
- package/dist/mcp/tools-consolidated.js +600 -0
- package/dist/mcp/tools-consolidated.js.map +1 -0
- package/dist/mcp/tools.d.ts.map +1 -1
- package/dist/mcp/tools.js +95 -8
- package/dist/mcp/tools.js.map +1 -1
- package/dist/mcp/validation-consolidated.d.ts +404 -0
- package/dist/mcp/validation-consolidated.d.ts.map +1 -0
- package/dist/mcp/validation-consolidated.js +374 -0
- package/dist/mcp/validation-consolidated.js.map +1 -0
- package/dist/mcp/validation.d.ts +20 -1
- package/dist/mcp/validation.d.ts.map +1 -1
- package/dist/mcp/validation.js +21 -5
- package/dist/mcp/validation.js.map +1 -1
- package/dist/services/langflow-client.d.ts +5 -2
- package/dist/services/langflow-client.d.ts.map +1 -1
- package/dist/services/langflow-client.js +93 -62
- package/dist/services/langflow-client.js.map +1 -1
- package/dist/types/index.d.ts +14 -0
- package/dist/types/index.d.ts.map +1 -1
- package/healthcheck.js +41 -0
- package/package.json +7 -6
package/.env.example
CHANGED
|
@@ -28,6 +28,11 @@ LOG_LEVEL=info
|
|
|
28
28
|
# Node Environment (development, production)
|
|
29
29
|
NODE_ENV=development
|
|
30
30
|
|
|
31
|
+
# Enable deprecated tools (true/false)
|
|
32
|
+
# Set to false to hide deprecated tools from the tool list
|
|
33
|
+
# Deprecated tools are marked with ⚠️ in their descriptions
|
|
34
|
+
ENABLE_DEPRECATED_TOOLS=true
|
|
35
|
+
|
|
31
36
|
# ====================
|
|
32
37
|
# HTTP MODE CONFIGURATION
|
|
33
38
|
# ====================
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -4,13 +4,17 @@
|
|
|
4
4
|
[](https://www.npmjs.com/package/langflow-mcp-server)
|
|
5
5
|
[](https://github.com/nobrainer-tech/langflow-mcp/releases)
|
|
6
6
|
[](https://opensource.org/licenses/MIT)
|
|
7
|
-
[](https://github.com/nobrainer-tech/langflow-mcp)
|
|
8
8
|
|
|
9
9
|
A Model Context Protocol (MCP) server that provides AI assistants with comprehensive access to Langflow workflow automation platform.
|
|
10
10
|
|
|
11
11
|
## Overview
|
|
12
12
|
|
|
13
|
-
langflow-mcp-server serves as a bridge between Langflow's workflow automation platform and AI models, enabling them to understand and work with Langflow flows effectively.
|
|
13
|
+
langflow-mcp-server serves as a bridge between Langflow's workflow automation platform and AI models, enabling them to understand and work with Langflow flows effectively.
|
|
14
|
+
|
|
15
|
+
**API Compatibility**: This server is built on the [Langflow API documentation](https://docs.langflow.org/api) and supports Langflow API version **1.6.4**.
|
|
16
|
+
|
|
17
|
+
It provides structured access to:
|
|
14
18
|
|
|
15
19
|
- **Flow Management** - Create, read, update, delete, and execute Langflow flows
|
|
16
20
|
- **Flow Execution** - Run flows with inputs and trigger webhooks
|
|
@@ -106,9 +110,88 @@ Add to your Claude Desktop config file:
|
|
|
106
110
|
|
|
107
111
|
Restart Claude Desktop after updating configuration.
|
|
108
112
|
|
|
113
|
+
### Docker Deployment
|
|
114
|
+
|
|
115
|
+
The MCP server can be run in a Docker container for easier deployment and isolation.
|
|
116
|
+
|
|
117
|
+
#### Quick Start with Docker
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
# Clone the repository
|
|
121
|
+
git clone https://github.com/nobrainer-tech/langflow-mcp.git
|
|
122
|
+
cd langflow-mcp
|
|
123
|
+
|
|
124
|
+
# Create .env file with your configuration
|
|
125
|
+
cp .env.example .env
|
|
126
|
+
# Edit .env with your Langflow instance URL and API key
|
|
127
|
+
|
|
128
|
+
# Build and run with docker-compose
|
|
129
|
+
docker-compose up -d
|
|
130
|
+
|
|
131
|
+
# View logs
|
|
132
|
+
docker-compose logs -f
|
|
133
|
+
|
|
134
|
+
# Stop the server
|
|
135
|
+
docker-compose down
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
#### Building Docker Image
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
# Build the image
|
|
142
|
+
docker build -t langflow-mcp-server:latest .
|
|
143
|
+
|
|
144
|
+
# Run in stdio mode (for Claude Desktop)
|
|
145
|
+
docker run -it --rm \
|
|
146
|
+
-e LANGFLOW_BASE_URL=http://localhost:7860 \
|
|
147
|
+
-e LANGFLOW_API_KEY=your-api-key \
|
|
148
|
+
langflow-mcp-server:latest
|
|
149
|
+
|
|
150
|
+
# Run in HTTP mode (for remote access)
|
|
151
|
+
docker run -d \
|
|
152
|
+
-p 3000:3000 \
|
|
153
|
+
-e MCP_MODE=http \
|
|
154
|
+
-e PORT=3000 \
|
|
155
|
+
-e AUTH_TOKEN=your-secure-token \
|
|
156
|
+
-e LANGFLOW_BASE_URL=http://langflow:7860 \
|
|
157
|
+
-e LANGFLOW_API_KEY=your-api-key \
|
|
158
|
+
langflow-mcp-server:latest
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
#### Docker Compose Configuration
|
|
162
|
+
|
|
163
|
+
The included `docker-compose.yml` supports both stdio and HTTP modes:
|
|
164
|
+
|
|
165
|
+
```yaml
|
|
166
|
+
# STDIO mode (default)
|
|
167
|
+
environment:
|
|
168
|
+
- MCP_MODE=stdio
|
|
169
|
+
- LANGFLOW_BASE_URL=http://localhost:7860
|
|
170
|
+
- LANGFLOW_API_KEY=your-key
|
|
171
|
+
|
|
172
|
+
# HTTP mode
|
|
173
|
+
environment:
|
|
174
|
+
- MCP_MODE=http
|
|
175
|
+
- PORT=3000
|
|
176
|
+
- AUTH_TOKEN=your-secure-token
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
## Deprecated Tools
|
|
180
|
+
|
|
181
|
+
⚠️ **Important**: This server includes 4 deprecated tools that match deprecated endpoints in Langflow API 1.6.4:
|
|
182
|
+
- `build_vertices` - Use `build_flow` instead
|
|
183
|
+
- `get_vertex` - Use `build_flow` or `get_flow` instead
|
|
184
|
+
- `stream_vertex_build` - Use `get_build_status` with streaming instead
|
|
185
|
+
- `get_task_status` - Use `get_build_status` instead
|
|
186
|
+
|
|
187
|
+
These tools are **enabled by default** but marked with ⚠️ warnings. To disable them, set:
|
|
188
|
+
```bash
|
|
189
|
+
ENABLE_DEPRECATED_TOOLS=false
|
|
190
|
+
```
|
|
191
|
+
|
|
109
192
|
## Available MCP Tools
|
|
110
193
|
|
|
111
|
-
Once connected, Claude can use
|
|
194
|
+
Once connected, Claude can use **90 tools** (94 with deprecated tools enabled):
|
|
112
195
|
|
|
113
196
|
### Flow Management (6 tools)
|
|
114
197
|
- **`create_flow`** - Create a new Langflow flow
|
|
@@ -181,10 +264,10 @@ Once connected, Claude can use these 90 tools:
|
|
|
181
264
|
- **`delete_monitor_builds`** - Delete build history for a flow
|
|
182
265
|
- **`delete_monitor_messages`** - Delete multiple messages by ID
|
|
183
266
|
|
|
184
|
-
### Vertex Operations (3 tools)
|
|
185
|
-
- **`build_vertices`** - Get vertex build order for a flow
|
|
186
|
-
- **`get_vertex`** - Get details of a specific vertex/component
|
|
187
|
-
- **`stream_vertex_build`** - Stream real-time build events for a vertex
|
|
267
|
+
### Vertex Operations ⚠️ *DEPRECATED* (3 tools)
|
|
268
|
+
- **`build_vertices`** ⚠️ *DEPRECATED* - Get vertex build order for a flow (use `build_flow` instead)
|
|
269
|
+
- **`get_vertex`** ⚠️ *DEPRECATED* - Get details of a specific vertex/component (use `build_flow` or `get_flow` instead)
|
|
270
|
+
- **`stream_vertex_build`** ⚠️ *DEPRECATED* - Stream real-time build events for a vertex (use `get_build_status` with streaming instead)
|
|
188
271
|
|
|
189
272
|
### User Management (5 tools)
|
|
190
273
|
- **`list_users`** - List all users (admin only)
|
|
@@ -228,7 +311,7 @@ Once connected, Claude can use these 90 tools:
|
|
|
228
311
|
### Batch & Public Operations (3 tools)
|
|
229
312
|
- **`get_public_flow`** - Get a public flow without authentication
|
|
230
313
|
- **`batch_create_flows`** - Create multiple flows in one operation
|
|
231
|
-
- **`get_task_status`** - Get status of an async task
|
|
314
|
+
- **`get_task_status`** ⚠️ *DEPRECATED* - Get status of an async task (use `get_build_status` instead)
|
|
232
315
|
|
|
233
316
|
### Folder Operations (2 tools)
|
|
234
317
|
- **`download_folder`** - Download entire folder as archive
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RunFlowAdvancedRequest, ProcessFlowRequest, PredictFlowRequest, RunResponse } from '../../types';
|
|
1
|
+
import { RunFlowAdvancedRequest, RunFlowSessionRequest, RegistrationResponse, ProcessFlowRequest, PredictFlowRequest, RunResponse } from '../../types';
|
|
2
2
|
export declare const mockRunFlowAdvancedRequest: RunFlowAdvancedRequest;
|
|
3
3
|
export declare const mockRunFlowAdvancedResponse: RunResponse;
|
|
4
4
|
export declare const mockProcessFlowRequest: ProcessFlowRequest;
|
|
@@ -19,4 +19,8 @@ export declare const mockPredictFlowResponse: {
|
|
|
19
19
|
class_C: number;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
+
export declare const mockRunFlowSessionRequest: RunFlowSessionRequest;
|
|
23
|
+
export declare const mockRunFlowSessionResponse: RunResponse;
|
|
24
|
+
export declare const mockRegistrationResponseRegistered: RegistrationResponse;
|
|
25
|
+
export declare const mockRegistrationResponseNotRegistered: RegistrationResponse;
|
|
22
26
|
//# sourceMappingURL=advanced-execution.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanced-execution.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/advanced-execution.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACZ,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,0BAA0B,EAAE,sBAYxC,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,WAsBzC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,kBAUpC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;CAMnC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,kBASpC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;CAQnC,CAAC"}
|
|
1
|
+
{"version":3,"file":"advanced-execution.d.ts","sourceRoot":"","sources":["../../../src/__tests__/fixtures/advanced-execution.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACZ,MAAM,aAAa,CAAC;AAErB,eAAO,MAAM,0BAA0B,EAAE,sBAYxC,CAAC;AAEF,eAAO,MAAM,2BAA2B,EAAE,WAsBzC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,kBAUpC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;CAMnC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,kBASpC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;CAQnC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,qBAWvC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,WAsBxC,CAAC;AAEF,eAAO,MAAM,kCAAkC,EAAE,oBAGhD,CAAC;AAEF,eAAO,MAAM,qCAAqC,EAAE,oBAEnD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mockPredictFlowResponse = exports.mockPredictFlowRequest = exports.mockProcessFlowResponse = exports.mockProcessFlowRequest = exports.mockRunFlowAdvancedResponse = exports.mockRunFlowAdvancedRequest = void 0;
|
|
3
|
+
exports.mockRegistrationResponseNotRegistered = exports.mockRegistrationResponseRegistered = exports.mockRunFlowSessionResponse = exports.mockRunFlowSessionRequest = exports.mockPredictFlowResponse = exports.mockPredictFlowRequest = exports.mockProcessFlowResponse = exports.mockProcessFlowRequest = exports.mockRunFlowAdvancedResponse = exports.mockRunFlowAdvancedRequest = void 0;
|
|
4
4
|
exports.mockRunFlowAdvancedRequest = {
|
|
5
5
|
input_value: 'advanced test input',
|
|
6
6
|
input_type: 'text',
|
|
@@ -74,4 +74,46 @@ exports.mockPredictFlowResponse = {
|
|
|
74
74
|
class_C: 0.02
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
|
+
exports.mockRunFlowSessionRequest = {
|
|
78
|
+
input_value: 'session test input',
|
|
79
|
+
input_type: 'text',
|
|
80
|
+
output_type: 'chat',
|
|
81
|
+
output_component: 'ChatOutput-456',
|
|
82
|
+
tweaks: {
|
|
83
|
+
'llm-component': {
|
|
84
|
+
temperature: 0.5
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
session_id: 'session-persistent-123'
|
|
88
|
+
};
|
|
89
|
+
exports.mockRunFlowSessionResponse = {
|
|
90
|
+
session_id: 'session-persistent-123',
|
|
91
|
+
execution_id: 'exec-session-123',
|
|
92
|
+
outputs: [
|
|
93
|
+
{
|
|
94
|
+
inputs: { input: 'session test input' },
|
|
95
|
+
outputs: [
|
|
96
|
+
{
|
|
97
|
+
results: {
|
|
98
|
+
message: {
|
|
99
|
+
text: 'Session response',
|
|
100
|
+
context_id: 'ctx-123'
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
artifacts: {},
|
|
104
|
+
messages: [],
|
|
105
|
+
component_display_name: 'ChatOutput',
|
|
106
|
+
component_id: 'ChatOutput-456'
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
};
|
|
112
|
+
exports.mockRegistrationResponseRegistered = {
|
|
113
|
+
email: 'test@example.com',
|
|
114
|
+
registered: true
|
|
115
|
+
};
|
|
116
|
+
exports.mockRegistrationResponseNotRegistered = {
|
|
117
|
+
registered: false
|
|
118
|
+
};
|
|
77
119
|
//# sourceMappingURL=advanced-execution.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"advanced-execution.js","sourceRoot":"","sources":["../../../src/__tests__/fixtures/advanced-execution.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"advanced-execution.js","sourceRoot":"","sources":["../../../src/__tests__/fixtures/advanced-execution.ts"],"names":[],"mappings":";;;AASa,QAAA,0BAA0B,GAA2B;IAChE,WAAW,EAAE,qBAAqB;IAClC,UAAU,EAAE,MAAM;IAClB,WAAW,EAAE,MAAM;IACnB,gBAAgB,EAAE,gBAAgB;IAClC,MAAM,EAAE;QACN,eAAe,EAAE;YACf,WAAW,EAAE,GAAG;YAChB,UAAU,EAAE,GAAG;SAChB;KACF;IACD,UAAU,EAAE,iBAAiB;CAC9B,CAAC;AAEW,QAAA,2BAA2B,GAAgB;IACtD,UAAU,EAAE,iBAAiB;IAC7B,YAAY,EAAE,cAAc;IAC5B,OAAO,EAAE;QACP;YACE,MAAM,EAAE,EAAE,KAAK,EAAE,qBAAqB,EAAE;YACxC,OAAO,EAAE;gBACP;oBACE,OAAO,EAAE;wBACP,OAAO,EAAE;4BACP,IAAI,EAAE,0BAA0B;4BAChC,QAAQ,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE;yBAC7B;qBACF;oBACD,SAAS,EAAE,EAAE,cAAc,EAAE,IAAI,EA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,EAAE;gBACP;oBACE,OAAO,EAAE;wBACP,OAAO,EAAE;4BACP,IAAI,EAAE,kBAAkB;4BACxB,UAAU,EAAE,SAAS;yBACtB;qBACF;oBACD,SAAS,EAAE,EAAE;oBACb,QAAQ,EAAE,EAAE;oBACZ,sBAAsB,EAAE,YAAY;oBACpC,YAAY,EAAE,gBAAgB;iBAC/B;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,kCAAkC,GAAyB;IACtE,KAAK,EAAE,kBAAkB;IACzB,UAAU,EAAE,IAAI;CACjB,CAAC;AAEW,QAAA,qCAAqC,GAAyB;IACzE,UAAU,EAAE,KAAK;CAClB,CAAC"}
|
package/dist/mcp/index.js
CHANGED
|
@@ -35,6 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
const server_1 = require("./server");
|
|
38
|
+
const server_consolidated_1 = require("./server-consolidated");
|
|
38
39
|
const logger_1 = require("../utils/logger");
|
|
39
40
|
const dotenv = __importStar(require("dotenv"));
|
|
40
41
|
dotenv.config();
|
|
@@ -59,7 +60,13 @@ async function main() {
|
|
|
59
60
|
logger_1.logger.error('HTTP mode not yet implemented. Use stdio mode.');
|
|
60
61
|
process.exit(1);
|
|
61
62
|
}
|
|
62
|
-
const
|
|
63
|
+
const useConsolidated = process.env.LANGFLOW_CONSOLIDATED_TOOLS === 'true';
|
|
64
|
+
const server = useConsolidated
|
|
65
|
+
? new server_consolidated_1.LangflowMCPServerConsolidated()
|
|
66
|
+
: new server_1.LangflowMCPServer();
|
|
67
|
+
if (useConsolidated) {
|
|
68
|
+
logger_1.logger.info('Using consolidated tools mode (15 grouped tools)');
|
|
69
|
+
}
|
|
63
70
|
let isShuttingDown = false;
|
|
64
71
|
const shutdown = async (signal = 'UNKNOWN') => {
|
|
65
72
|
if (isShuttingDown)
|
package/dist/mcp/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|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AAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC/C,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;QAE/C,IAAI,OAAO,CAAC,KAAK,CAAC,QAAQ,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;YACvD,IAAI,CAAC;gBACH,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC;gBACrD,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;YAC3D,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,eAAM,CAAC,KAAK,CAAC,oCAAoC,EAAE,KAAK,CAAC,CAAC;YAC5D,CAAC;QACH,CAAC;QAED,MAAM,MAAM,CAAC,GAAG,EAAE,CAAC;IACrB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,eAAM,CAAC,KAAK,CAAC,6BAA6B,EAAE,KAAK,CAAC,CAAC;QACnD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAED,IAAI,OAAO,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;IAC5B,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare class LangflowMCPServerConsolidated {
|
|
2
|
+
private server;
|
|
3
|
+
private client;
|
|
4
|
+
constructor();
|
|
5
|
+
private formatSuccessResponse;
|
|
6
|
+
private sanitizeSensitiveData;
|
|
7
|
+
private formatErrorResponse;
|
|
8
|
+
private validateFileSize;
|
|
9
|
+
private setupHandlers;
|
|
10
|
+
private handleFlowTool;
|
|
11
|
+
private handleFlowExecutionTool;
|
|
12
|
+
private handleBuildTool;
|
|
13
|
+
private handleFolderTool;
|
|
14
|
+
private handleProjectTool;
|
|
15
|
+
private handleVariableTool;
|
|
16
|
+
private handleKnowledgeBaseTool;
|
|
17
|
+
private handleFileTool;
|
|
18
|
+
private handleMonitorTool;
|
|
19
|
+
private handleUserTool;
|
|
20
|
+
private handleAuthTool;
|
|
21
|
+
private handleStoreTool;
|
|
22
|
+
private handleRegistrationTool;
|
|
23
|
+
private handleValidationTool;
|
|
24
|
+
private handleSystemTool;
|
|
25
|
+
run(): Promise<void>;
|
|
26
|
+
shutdown(): Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=server-consolidated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server-consolidated.d.ts","sourceRoot":"","sources":["../../src/mcp/server-consolidated.ts"],"names":[],"mappings":"AA6BA,qBAAa,6BAA6B;IACxC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,MAAM,CAA+B;;IA4D7C,OAAO,CAAC,qBAAqB;IAM7B,OAAO,CAAC,qBAAqB;IA8C7B,OAAO,CAAC,mBAAmB;IA+C3B,OAAO,CAAC,gBAAgB;IAmBxB,OAAO,CAAC,aAAa;YAiEP,cAAc;YA0Dd,uBAAuB;YAqCvB,eAAe;YAqCf,gBAAgB;YAyChB,iBAAiB;YAsCjB,kBAAkB;YAyBlB,uBAAuB;YA4BvB,cAAc;YA6Cd,iBAAiB;YAiDjB,cAAc;YAgCd,cAAc;YAsCd,eAAe;YA4Cf,sBAAsB;YAetB,oBAAoB;YAepB,gBAAgB;IAiCxB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IAMpB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAIhC"}
|