lotus-wisdom-mcp 0.1.1 → 0.2.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/README.md +215 -13
- package/dist/bundle.js +6922 -223
- package/dist/index.js +232 -84
- package/dist/server.js +493 -0
- package/package.json +6 -3
package/README.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
# Lotus Wisdom MCP Server
|
|
1
|
+
# 🪷 Lotus Wisdom MCP Server
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="assets/lotus-flower.png" alt="Lotus Flower" width="400"/>
|
|
5
|
+
</p>
|
|
2
6
|
|
|
3
7
|
An MCP server implementation that provides a tool for problem-solving using the Lotus Sutra's wisdom framework, combining analytical thinking with intuitive wisdom.
|
|
4
8
|
|
|
@@ -8,6 +12,7 @@ An MCP server implementation that provides a tool for problem-solving using the
|
|
|
8
12
|
* Step-by-step thought process with different thinking techniques
|
|
9
13
|
* Meditation pauses to allow insights to emerge naturally
|
|
10
14
|
* Beautifully formatted thought process visualization with colors and symbols
|
|
15
|
+
* Tracks both tag journey and wisdom domain movements
|
|
11
16
|
* Final integration of insights into a clear response
|
|
12
17
|
|
|
13
18
|
## Background
|
|
@@ -16,7 +21,52 @@ This MCP server was developed from the [Lotus OS prompt](https://github.com/linx
|
|
|
16
21
|
|
|
17
22
|
Note: The original prompt framework may work less effectively with newer Claude models, but this MCP server implementation provides consistent functionality across model versions.
|
|
18
23
|
|
|
19
|
-
##
|
|
24
|
+
## Implementation Details
|
|
25
|
+
|
|
26
|
+
The server implements a structured thinking process using wisdom domains inspired by the Lotus Sutra:
|
|
27
|
+
|
|
28
|
+
### Wisdom Domains and Tags
|
|
29
|
+
|
|
30
|
+
The server organizes thoughts using five wisdom domains (all valid values for the `tag` input parameter):
|
|
31
|
+
|
|
32
|
+
* **Skillful Means** (🔆): `upaya`, `expedient`, `direct`, `gradual`, `sudden`
|
|
33
|
+
- Different approaches to truth - sometimes direct pointing, sometimes gradual unfolding
|
|
34
|
+
|
|
35
|
+
* **Non-Dual Recognition** (☯️): `recognize`, `transform`, `integrate`, `transcend`, `embody`
|
|
36
|
+
- Aspects of awakening to what's already present - recognition IS transformation
|
|
37
|
+
|
|
38
|
+
* **Meta-Cognitive** (🧠): `examine`, `reflect`, `verify`, `refine`, `complete`
|
|
39
|
+
- The mind watching its own understanding unfold
|
|
40
|
+
|
|
41
|
+
* **Process Flow** (🌊): `open`, `engage`, `express`
|
|
42
|
+
- A natural arc that can contain any of the above approaches
|
|
43
|
+
|
|
44
|
+
* **Meditation** (🧘): `meditate`
|
|
45
|
+
- Pausing to let insights emerge from stillness
|
|
46
|
+
|
|
47
|
+
### Thought Visualization
|
|
48
|
+
|
|
49
|
+
Each thought is beautifully formatted with:
|
|
50
|
+
|
|
51
|
+
* Colorful output using the chalk library
|
|
52
|
+
* Domain-specific symbols and colors
|
|
53
|
+
* Box-drawing characters to create clear thought boundaries
|
|
54
|
+
* Special meditation formatting with pause indicators
|
|
55
|
+
* Journey tracking showing both tag path and domain movements
|
|
56
|
+
|
|
57
|
+
Note: The visualization appears in the server console output, helping developers track the thinking process.
|
|
58
|
+
|
|
59
|
+
### Process Flow
|
|
60
|
+
|
|
61
|
+
1. The user submits a problem to solve
|
|
62
|
+
2. The model works through a sequence of thoughts using different tags
|
|
63
|
+
3. Each thought builds on previous ones and may revise understanding
|
|
64
|
+
4. The tool tracks both the tag journey and wisdom domain movements
|
|
65
|
+
5. Meditation pauses can be included for clarity
|
|
66
|
+
6. When status='WISDOM_READY' is returned, the tool's work is complete
|
|
67
|
+
7. The model then expresses the final wisdom naturally in its own voice
|
|
68
|
+
|
|
69
|
+
## Available Tools
|
|
20
70
|
|
|
21
71
|
### lotuswisdom
|
|
22
72
|
|
|
@@ -24,13 +74,29 @@ A tool for problem-solving using the Lotus Sutra's wisdom framework, with variou
|
|
|
24
74
|
|
|
25
75
|
**Inputs:**
|
|
26
76
|
|
|
27
|
-
* `tag` (string): The current processing technique (must be one of the
|
|
28
|
-
* `content` (string): The content of the current processing step
|
|
29
|
-
* `stepNumber` (integer): Current number in sequence
|
|
30
|
-
* `totalSteps` (integer): Estimated total steps needed
|
|
31
|
-
* `nextStepNeeded` (boolean): Whether another step is needed
|
|
77
|
+
* `tag` (string, required): The current processing technique (must be one of the tags listed above)
|
|
78
|
+
* `content` (string, required): The content of the current processing step
|
|
79
|
+
* `stepNumber` (integer, required): Current number in sequence
|
|
80
|
+
* `totalSteps` (integer, required): Estimated total steps needed
|
|
81
|
+
* `nextStepNeeded` (boolean, required): Whether another step is needed
|
|
32
82
|
* `isMeditation` (boolean, optional): Whether this step is a meditative pause
|
|
33
|
-
* `meditationDuration` (integer, optional): Duration for meditation in seconds
|
|
83
|
+
* `meditationDuration` (integer, optional): Duration for meditation in seconds (1-10)
|
|
84
|
+
|
|
85
|
+
**Returns:**
|
|
86
|
+
- Processing status with current step information, wisdom domain, and journey tracking
|
|
87
|
+
- `MEDITATION_COMPLETE` status for meditation steps
|
|
88
|
+
- `WISDOM_READY` status when the contemplative process is complete
|
|
89
|
+
|
|
90
|
+
### lotuswisdom_summary
|
|
91
|
+
|
|
92
|
+
Get a summary of the current contemplative journey.
|
|
93
|
+
|
|
94
|
+
**Inputs:** None
|
|
95
|
+
|
|
96
|
+
**Returns:**
|
|
97
|
+
- Journey length
|
|
98
|
+
- Domain journey showing movement between wisdom domains
|
|
99
|
+
- Summary of all steps with their tags, domains, and brief content
|
|
34
100
|
|
|
35
101
|
## Usage
|
|
36
102
|
|
|
@@ -43,13 +109,97 @@ The Lotus Wisdom tool is designed for:
|
|
|
43
109
|
* Tasks that benefit from meditative pauses to allow insight
|
|
44
110
|
* Questions containing their own inherent wisdom
|
|
45
111
|
|
|
112
|
+
## Example Usage
|
|
113
|
+
|
|
114
|
+
Here's how a conversation with Claude might flow when using the Lotus Wisdom MCP server:
|
|
115
|
+
|
|
116
|
+
**User**: "Help me understand the relationship between freedom and responsibility."
|
|
117
|
+
|
|
118
|
+
**Claude** would then use the lotuswisdom tool through multiple steps:
|
|
119
|
+
|
|
120
|
+
1. First, establish an opening thought:
|
|
121
|
+
```json
|
|
122
|
+
{
|
|
123
|
+
"tag": "open",
|
|
124
|
+
"content": "The question explores the relationship between freedom and responsibility, which contain an apparent tension but also deep connection.",
|
|
125
|
+
"stepNumber": 1,
|
|
126
|
+
"totalSteps": 5,
|
|
127
|
+
"nextStepNeeded": true
|
|
128
|
+
}
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
2. Then engage with different perspectives:
|
|
132
|
+
```json
|
|
133
|
+
{
|
|
134
|
+
"tag": "direct",
|
|
135
|
+
"content": "Freedom and responsibility are two sides of the same coin. True freedom isn't absence of constraints but the capacity to choose our response within constraints.",
|
|
136
|
+
"stepNumber": 2,
|
|
137
|
+
"totalSteps": 5,
|
|
138
|
+
"nextStepNeeded": true
|
|
139
|
+
}
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
3. Perhaps take a meditation pause:
|
|
143
|
+
```json
|
|
144
|
+
{
|
|
145
|
+
"tag": "meditate",
|
|
146
|
+
"content": "Contemplating how freedom without responsibility becomes chaos, and responsibility without freedom becomes oppression.",
|
|
147
|
+
"stepNumber": 3,
|
|
148
|
+
"totalSteps": 5,
|
|
149
|
+
"nextStepNeeded": true,
|
|
150
|
+
"isMeditation": true
|
|
151
|
+
}
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
4. Integrate the understanding:
|
|
155
|
+
```json
|
|
156
|
+
{
|
|
157
|
+
"tag": "integrate",
|
|
158
|
+
"content": "Freedom and responsibility mutually enable each other. Our freedom to choose gives rise to our responsibility for what we choose, and our willingness to take responsibility expands our freedom.",
|
|
159
|
+
"stepNumber": 4,
|
|
160
|
+
"totalSteps": 5,
|
|
161
|
+
"nextStepNeeded": true
|
|
162
|
+
}
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
5. Express the final understanding:
|
|
166
|
+
```json
|
|
167
|
+
{
|
|
168
|
+
"tag": "express",
|
|
169
|
+
"content": "The paradox resolves when we see that authentic freedom includes responsibility as its natural expression.",
|
|
170
|
+
"stepNumber": 5,
|
|
171
|
+
"totalSteps": 5,
|
|
172
|
+
"nextStepNeeded": false
|
|
173
|
+
}
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
When the tool returns `status: 'WISDOM_READY'`, Claude then speaks the final wisdom naturally, integrating all the insights from the contemplative journey.
|
|
177
|
+
|
|
46
178
|
## Configuration
|
|
47
179
|
|
|
48
180
|
### Usage with Claude Desktop
|
|
49
181
|
|
|
50
182
|
Add this to your `claude_desktop_config.json`:
|
|
51
183
|
|
|
52
|
-
#### From
|
|
184
|
+
#### From Smithery (recommended for easy installation)
|
|
185
|
+
|
|
186
|
+
```json
|
|
187
|
+
{
|
|
188
|
+
"mcpServers": {
|
|
189
|
+
"lotus-wisdom": {
|
|
190
|
+
"command": "npx",
|
|
191
|
+
"args": [
|
|
192
|
+
"-y",
|
|
193
|
+
"@smithery/server-linxule-lotus-wisdom-mcp"
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
Or install directly via [Smithery.ai](https://smithery.ai/server/@linxule/lotus-wisdom-mcp)
|
|
201
|
+
|
|
202
|
+
#### From npm
|
|
53
203
|
|
|
54
204
|
```json
|
|
55
205
|
{
|
|
@@ -81,7 +231,7 @@ Add this to your `claude_desktop_config.json`:
|
|
|
81
231
|
}
|
|
82
232
|
```
|
|
83
233
|
|
|
84
|
-
####
|
|
234
|
+
#### Docker
|
|
85
235
|
|
|
86
236
|
```json
|
|
87
237
|
{
|
|
@@ -99,14 +249,66 @@ Add this to your `claude_desktop_config.json`:
|
|
|
99
249
|
}
|
|
100
250
|
```
|
|
101
251
|
|
|
102
|
-
|
|
252
|
+
### Building
|
|
103
253
|
|
|
104
|
-
|
|
254
|
+
To build the project locally:
|
|
105
255
|
|
|
256
|
+
```bash
|
|
257
|
+
npm install
|
|
258
|
+
npm run build
|
|
106
259
|
```
|
|
260
|
+
|
|
261
|
+
To build the Docker image:
|
|
262
|
+
|
|
263
|
+
```bash
|
|
107
264
|
docker build -t lotus-wisdom-mcp -f Dockerfile .
|
|
108
265
|
```
|
|
109
266
|
|
|
267
|
+
### Development
|
|
268
|
+
|
|
269
|
+
For local development:
|
|
270
|
+
|
|
271
|
+
```bash
|
|
272
|
+
npm install
|
|
273
|
+
npm run dev
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
Enable debug mode by setting the environment variable:
|
|
277
|
+
|
|
278
|
+
```bash
|
|
279
|
+
LOTUS_DEBUG=true npm start
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
## How It Works
|
|
283
|
+
|
|
284
|
+
The Lotus Wisdom framework recognizes that wisdom often emerges not through linear thinking but through a dance between different modes of understanding. The tool facilitates this by:
|
|
285
|
+
|
|
286
|
+
1. **Tracking Wisdom Domains**: As you move through different tags, the tool tracks which wisdom domains you're engaging, helping you see the shape of your inquiry.
|
|
287
|
+
|
|
288
|
+
2. **Journey Consciousness**: The tool maintains awareness of your complete journey, showing both the sequence of tags used and the movement between wisdom domains.
|
|
289
|
+
|
|
290
|
+
3. **Non-Linear Progress**: While steps are numbered, the process isn't strictly linear. You can revisit, revise, and branch as understanding deepens.
|
|
291
|
+
|
|
292
|
+
4. **Integration Points**: Tags like `integrate`, `transcend`, and `embody` help weave insights together rather than keeping them separate.
|
|
293
|
+
|
|
294
|
+
5. **Natural Expression**: The tool handles the contemplative process, but the final wisdom is always expressed naturally by the AI, not as formatted output.
|
|
295
|
+
|
|
110
296
|
## License
|
|
111
297
|
|
|
112
|
-
This MCP server is licensed under the MIT License. For more details, please see the LICENSE file in the project repository.
|
|
298
|
+
This MCP server is licensed under the MIT License. For more details, please see the LICENSE file in the project repository.
|
|
299
|
+
|
|
300
|
+
## Contributing
|
|
301
|
+
|
|
302
|
+
Contributions are welcome! Please feel free to submit issues or pull requests on the [GitHub repository](https://github.com/linxule/lotus-wisdom-mcp).
|
|
303
|
+
|
|
304
|
+
## Version
|
|
305
|
+
|
|
306
|
+
Current version: 0.2.0
|
|
307
|
+
|
|
308
|
+
### What's New in 0.2.0
|
|
309
|
+
|
|
310
|
+
- 🌐 **HTTP Transport Support**: Now deployable on smithery.ai and other HTTP-based platforms
|
|
311
|
+
- 🔄 **Dual Transport**: Maintains stdio support for npm/CLI users while adding HTTP for remote deployment
|
|
312
|
+
- 📦 **Updated SDK**: Upgraded to @modelcontextprotocol/sdk 1.20.1 with Streamable HTTP support
|
|
313
|
+
- 🪷 **New Logo**: Terminal-aesthetic lotus logo perfect for developer tools
|
|
314
|
+
- ⚡ **Session Management**: HTTP version includes full session management for stateful wisdom journeys
|