langflow-mcp-server 2.1.0 → 3.0.1
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/README.md +39 -3
- 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.map +1 -1
- package/dist/mcp/server.js +18 -2
- 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 +91 -4
- 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 +19 -3
- 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 +34 -7
- 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/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
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
|
|
|
@@ -12,7 +12,38 @@ A Model Context Protocol (MCP) server that provides AI assistants with comprehen
|
|
|
12
12
|
|
|
13
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
14
|
|
|
15
|
-
**API Compatibility**: This server is built on the [Langflow API documentation](https://docs.langflow.org/api) and supports Langflow API version **1.
|
|
15
|
+
**API Compatibility**: This server is built on the [Langflow API documentation](https://docs.langflow.org/api) and supports Langflow API version **1.7.2**.
|
|
16
|
+
|
|
17
|
+
### v3.0.0 - Consolidated Tools Mode
|
|
18
|
+
|
|
19
|
+
Version 3.0.0 introduces **Consolidated Tools Mode** - a new architecture that groups 93 individual tools into **15 action-based tools**. This significantly reduces token usage and improves AI assistant context management.
|
|
20
|
+
|
|
21
|
+
| Mode | Tools | Best For |
|
|
22
|
+
|------|-------|----------|
|
|
23
|
+
| Standard | 93 tools | Full granular control |
|
|
24
|
+
| Consolidated | 15 tools | Reduced token usage, better context |
|
|
25
|
+
|
|
26
|
+
To enable consolidated mode:
|
|
27
|
+
```bash
|
|
28
|
+
LANGFLOW_CONSOLIDATED_TOOLS=true
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
**Consolidated tools:**
|
|
32
|
+
- `flow` - All flow operations (list, get, create, update, delete, download, upload, etc.)
|
|
33
|
+
- `flow_execution` - Run flows (run, run_advanced, run_session, webhook, process, predict)
|
|
34
|
+
- `build` - Build operations (start, status, cancel, vertices)
|
|
35
|
+
- `folder` - Folder management (list, get, create, update, delete, download, upload)
|
|
36
|
+
- `project` - Project management (list, get, create, update, delete, download, upload)
|
|
37
|
+
- `variable` - Variable operations (list, create, update, delete)
|
|
38
|
+
- `knowledge_base` - Knowledge base management (list, get, delete, bulk_delete, upload)
|
|
39
|
+
- `file` - File operations (list, upload, download, delete, get_image)
|
|
40
|
+
- `monitor` - Monitoring (builds, messages, sessions, transactions)
|
|
41
|
+
- `user` - User management (list, get, get_current, update, reset_password)
|
|
42
|
+
- `auth` - Authentication (login, auto_login, logout, refresh, api keys)
|
|
43
|
+
- `store` - Component store (list, get, tags, likes)
|
|
44
|
+
- `registration` - User registration (get, register)
|
|
45
|
+
- `validation` - Code/prompt validation (code, prompt)
|
|
46
|
+
- `system` - System info (health, version, logs, pictures, voices)
|
|
16
47
|
|
|
17
48
|
It provides structured access to:
|
|
18
49
|
|
|
@@ -82,6 +113,7 @@ Add to your Claude Desktop config file:
|
|
|
82
113
|
"env": {
|
|
83
114
|
"LANGFLOW_BASE_URL": "http://localhost:7860",
|
|
84
115
|
"LANGFLOW_API_KEY": "your-api-key-here",
|
|
116
|
+
"LANGFLOW_CONSOLIDATED_TOOLS": "true",
|
|
85
117
|
"MCP_MODE": "stdio",
|
|
86
118
|
"LOG_LEVEL": "error"
|
|
87
119
|
}
|
|
@@ -191,7 +223,11 @@ ENABLE_DEPRECATED_TOOLS=false
|
|
|
191
223
|
|
|
192
224
|
## Available MCP Tools
|
|
193
225
|
|
|
194
|
-
Once connected, Claude can use
|
|
226
|
+
Once connected, Claude can use:
|
|
227
|
+
- **Standard mode**: 93 individual tools (97 with deprecated tools enabled)
|
|
228
|
+
- **Consolidated mode**: 15 action-based tools (recommended for reduced token usage)
|
|
229
|
+
|
|
230
|
+
### Standard Mode Tools (93 tools)
|
|
195
231
|
|
|
196
232
|
### Flow Management (6 tools)
|
|
197
233
|
- **`create_flow`** - Create a new Langflow flow
|
|
@@ -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,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AAE,IAAI;QACb,OAAO,EAAE,IAAI;KACd;CACF,CAAC;AAEW,QAAA,yBAAyB,GAA0B;IAC9D,WAAW,EAAE,oBAAoB;IACjC,UAAU,EAAE,MAAM;IAClB,WAAW,EAAE,MAAM;IACnB,gBAAgB,EAAE,gBAAgB;IAClC,MAAM,EAAE;QACN,eAAe,EAAE;YACf,WAAW,EAAE,GAAG;SACjB;KACF;IACD,UAAU,EAAE,wBAAwB;CACrC,CAAC;AAEW,QAAA,0BAA0B,GAAgB;IACrD,UAAU,EAAE,wBAAwB;IACpC,YAAY,EAAE,kBAAkB;IAChC,OAAO,EAAE;QACP;YACE,MAAM,EAAE,EAAE,KAAK,EAAE,oBAAoB,EAAE;YACvC,OAAO,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
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/mcp/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,qCAA6C;AAC7C,4CAAyC;AACzC,+CAAiC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,OAAO,CAAC,EAAE,CAAC,mBAAmB,EAAE,CAAC,KAAK,EAAE,EAAE;IACxC,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;QACrC,OAAO,CAAC,KAAK,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC;IAC9C,CAAC;IACD,eAAM,CAAC,KAAK,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC;IAC3C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,OAAO,CAAC,EAAE,CAAC,oBAAoB,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE;IACnD,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;QACrC,OAAO,CAAC,KAAK,CAAC,yBAAyB,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACvE,CA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AAC,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"}
|