@g99/lightrag-mcp-server 1.0.0 → 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/README.md +13 -17
- package/package.json +3 -4
- package/wrapper.js +48 -59
package/README.md
CHANGED
|
@@ -19,28 +19,24 @@ LightRAG MCP Server provides complete integration with LightRAG's API, offering
|
|
|
19
19
|
|
|
20
20
|
## Installation
|
|
21
21
|
|
|
22
|
-
###
|
|
23
|
-
|
|
24
|
-
```bash
|
|
25
|
-
uvx lightrag-mcp-server
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
### Using npx (Node.js)
|
|
22
|
+
### Quick Start (Recommended)
|
|
29
23
|
|
|
30
24
|
```bash
|
|
31
25
|
npx @g99/lightrag-mcp-server
|
|
32
26
|
```
|
|
33
27
|
|
|
34
|
-
###
|
|
28
|
+
### Global Installation
|
|
35
29
|
|
|
36
30
|
```bash
|
|
37
|
-
|
|
31
|
+
npm install -g @g99/lightrag-mcp-server
|
|
38
32
|
```
|
|
39
33
|
|
|
40
|
-
###
|
|
34
|
+
### From Source
|
|
41
35
|
|
|
42
36
|
```bash
|
|
43
|
-
|
|
37
|
+
git clone https://github.com/lalitsuryan/lightragmcp.git
|
|
38
|
+
cd lightragmcp
|
|
39
|
+
npm install
|
|
44
40
|
```
|
|
45
41
|
|
|
46
42
|
## Prerequisites
|
|
@@ -95,8 +91,8 @@ Add to your `claude_desktop_config.json`:
|
|
|
95
91
|
{
|
|
96
92
|
"mcpServers": {
|
|
97
93
|
"lightrag": {
|
|
98
|
-
"command": "
|
|
99
|
-
"args": ["lightrag-mcp-server"],
|
|
94
|
+
"command": "npx",
|
|
95
|
+
"args": ["@g99/lightrag-mcp-server"],
|
|
100
96
|
"env": {
|
|
101
97
|
"LIGHTRAG_SERVER_URL": "http://localhost:9621",
|
|
102
98
|
"LIGHTRAG_API_KEY": "your_api_key_here"
|
|
@@ -114,8 +110,8 @@ Add to your MCP settings:
|
|
|
114
110
|
{
|
|
115
111
|
"mcpServers": {
|
|
116
112
|
"lightrag": {
|
|
117
|
-
"command": "
|
|
118
|
-
"args": ["lightrag-mcp-server"],
|
|
113
|
+
"command": "npx",
|
|
114
|
+
"args": ["@g99/lightrag-mcp-server"],
|
|
119
115
|
"env": {
|
|
120
116
|
"LIGHTRAG_SERVER_URL": "http://localhost:9621",
|
|
121
117
|
"LIGHTRAG_API_KEY": "your_api_key_here"
|
|
@@ -588,8 +584,8 @@ LightRAG supports multiple query modes for different use cases:
|
|
|
588
584
|
|
|
589
585
|
```bash
|
|
590
586
|
# Clone the repository
|
|
591
|
-
git clone https://github.com/
|
|
592
|
-
cd
|
|
587
|
+
git clone https://github.com/lalitsuryan/lightragmcp.git
|
|
588
|
+
cd lightragmcp
|
|
593
589
|
|
|
594
590
|
# For Python development
|
|
595
591
|
pip install -e ".[dev]"
|
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"
|
|
@@ -42,4 +41,4 @@
|
|
|
42
41
|
"engines": {
|
|
43
42
|
"node": ">=18.0.0"
|
|
44
43
|
}
|
|
45
|
-
}
|
|
44
|
+
}
|
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);
|