@g99/lightrag-mcp-server 1.0.1 → 1.0.2
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/package.json +2 -3
- package/wrapper.js +48 -59
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@g99/lightrag-mcp-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Model Context Protocol (MCP) server for LightRAG - Complete RAG and Knowledge Graph integration with 30+ tools",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
@@ -28,8 +28,7 @@
|
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
|
-
"
|
|
32
|
-
"postinstall": "echo 'LightRAG MCP Server is a Python package. Please ensure Python 3.10+ is installed and run: pip install lightrag-mcp-server'"
|
|
31
|
+
"postinstall": "node wrapper.js"
|
|
33
32
|
},
|
|
34
33
|
"bin": {
|
|
35
34
|
"lightrag-mcp-server": "wrapper.js"
|
package/wrapper.js
CHANGED
|
@@ -1,68 +1,57 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* LightRAG MCP Server -
|
|
4
|
+
* LightRAG MCP Server - npm Package
|
|
5
5
|
*
|
|
6
|
-
* This
|
|
7
|
-
* The actual implementation
|
|
6
|
+
* This package provides easy installation via npm/npx for the LightRAG MCP Server.
|
|
7
|
+
* The actual implementation requires a running LightRAG server.
|
|
8
8
|
*
|
|
9
9
|
* Author: Lalit Suryan
|
|
10
10
|
* License: MIT
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
console.log('
|
|
17
|
-
console.log('
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
console.error('\nOr use uvx (recommended):');
|
|
59
|
-
console.error(' uvx lightrag-mcp-server');
|
|
60
|
-
process.exit(1);
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
server.on('close', (code) => {
|
|
64
|
-
process.exit(code);
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
main();
|
|
13
|
+
console.log('╔═══════════════════════════════════════════════════════╗');
|
|
14
|
+
console.log('║ LightRAG MCP Server - @g99/lightrag-mcp-server ║');
|
|
15
|
+
console.log('╚═══════════════════════════════════════════════════════╝');
|
|
16
|
+
console.log('');
|
|
17
|
+
console.log('📦 Package Information:');
|
|
18
|
+
console.log(' • Version: 1.0.1');
|
|
19
|
+
console.log(' • Author: Lalit Suryan');
|
|
20
|
+
console.log(' • Repository: https://github.com/lalitsuryan/lightragmcp');
|
|
21
|
+
console.log('');
|
|
22
|
+
console.log('⚠️ Installation Notice:');
|
|
23
|
+
console.log('');
|
|
24
|
+
console.log('This is an npm wrapper package for the LightRAG MCP Server.');
|
|
25
|
+
console.log('To use this server, you need:');
|
|
26
|
+
console.log('');
|
|
27
|
+
console.log('1. A running LightRAG server');
|
|
28
|
+
console.log(' Install: pip install "lightrag-hku[api]"');
|
|
29
|
+
console.log(' Run: lightrag-server');
|
|
30
|
+
console.log('');
|
|
31
|
+
console.log('2. Configure your MCP client (e.g., Claude Desktop):');
|
|
32
|
+
console.log('');
|
|
33
|
+
console.log(' {');
|
|
34
|
+
console.log(' "mcpServers": {');
|
|
35
|
+
console.log(' "lightrag": {');
|
|
36
|
+
console.log(' "command": "npx",');
|
|
37
|
+
console.log(' "args": ["@g99/lightrag-mcp-server"],');
|
|
38
|
+
console.log(' "env": {');
|
|
39
|
+
console.log(' "LIGHTRAG_SERVER_URL": "http://localhost:9621"');
|
|
40
|
+
console.log(' }');
|
|
41
|
+
console.log(' }');
|
|
42
|
+
console.log(' }');
|
|
43
|
+
console.log(' }');
|
|
44
|
+
console.log('');
|
|
45
|
+
console.log('📚 Documentation:');
|
|
46
|
+
console.log(' • https://github.com/lalitsuryan/lightragmcp#readme');
|
|
47
|
+
console.log('');
|
|
48
|
+
console.log('❓ Support:');
|
|
49
|
+
console.log(' • Issues: https://github.com/lalitsuryan/lightragmcp/issues');
|
|
50
|
+
console.log('');
|
|
51
|
+
console.log('════════════════════════════════════════════════════════');
|
|
52
|
+
console.log('');
|
|
53
|
+
console.log('⚠️ This package is currently in setup mode.');
|
|
54
|
+
console.log(' Please configure it in your MCP client to use it.');
|
|
55
|
+
console.log('');
|
|
56
|
+
|
|
57
|
+
process.exit(0);
|