@nbiish/cognitive-tools-mcp 8.8.2 → 8.9.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 +72 -27
- package/build/index.js +74 -247
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<p><a href="https://raw.githubusercontent.com/nbiish/license-for-all-works/8e9b73b269add9161dc04bbdd79f818c40fca14e/qr-stripe-donation.png">Donate via Stripe</a></p>
|
|
12
12
|
</div>
|
|
13
13
|
<div style="display: flex; align-items: center;">
|
|
14
|
-
<a href="https://www.buymeacoffee.com/nbiish"><img src="
|
|
14
|
+
<a href="https://www.buymeacoffee.com/nbiish"><img src="buymeacoffee-button.svg" alt="Buy me a coffee" /></a>
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
17
17
|
|
|
@@ -22,7 +22,31 @@
|
|
|
22
22
|
◈──◆──◇─────────────────────────────────────────────────◇──◆──◈
|
|
23
23
|
</div>
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
# ◈──◆──◇ GIKENDAASOWIN AABAJICHIGANAN MCP SERVER / ENHANCED 6-STAGE COGNITIVE TOOLS MCP SERVER ◇──◆──◈
|
|
26
|
+
|
|
27
|
+
<div align="center">
|
|
28
|
+
<hr width="50%">
|
|
29
|
+
|
|
30
|
+
<h3>Support This Project</h3>
|
|
31
|
+
<div style="display: flex; justify-content: center; gap: 20px; margin: 20px 0;">
|
|
32
|
+
<div>
|
|
33
|
+
<h4>Stripe</h4>
|
|
34
|
+
<img src="qr-stripe-donation.png" alt="Scan to donate" width="180"/>
|
|
35
|
+
<p><a href="https://raw.githubusercontent.com/nbiish/license-for-all-works/8e9b73b269add9161dc04bbdd79f818c40fca14e/qr-stripe-donation.png">Donate via Stripe</a></p>
|
|
36
|
+
</div>
|
|
37
|
+
<div style="display: flex; align-items: center;">
|
|
38
|
+
<a href="https://www.buymeacoffee.com/nbiish"><img src="buymeacoffee-button.svg" alt="Buy me a coffee" /></a>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<hr width="50%">
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<div align="center">
|
|
46
|
+
◈──◆──◇─────────────────────────────────────────────────◇──◆──◈
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
Revolutionary MCP server with Enhanced 6-Stage Cognitive Deliberation Framework (v8.9.0). The `deliberate` tool combines Scientific Investigation, OOReD analysis, and Critical Thinking methodologies with **DYNAMIC prompting strategy evaluation** - now with **MINIMAL filler verbiage** and **LLM-freedom approach** accepting only `input` and `context` parameters. *(Integration guidelines in [`latest.md`](latest.md) are licensed under [LICENSE](LICENSE).)*
|
|
26
50
|
|
|
27
51
|
Known as:
|
|
28
52
|
- Anishinaabemowin: [`@nbiish/gikendaasowin-aabajichiganan-mcp`](https://www.npmjs.com/package/@nbiish/gikendaasowin-aabajichiganan-mcp)
|
|
@@ -38,7 +62,7 @@ Both packages are maintained in parallel and receive the same updates. You can u
|
|
|
38
62
|
|
|
39
63
|
## ᐴ REPOSITORY STRUCTURE ᔔ [MAZINAAZIWIN] ◈──◆──◇──◆──◈
|
|
40
64
|
|
|
41
|
-
Current repository structure (v8.
|
|
65
|
+
Current repository structure (v8.9.0):
|
|
42
66
|
|
|
43
67
|
```text
|
|
44
68
|
.
|
|
@@ -63,6 +87,7 @@ Current repository structure (v8.8.1):
|
|
|
63
87
|
├── package-cognitive-tools.json # English package configuration
|
|
64
88
|
├── package-gikendaasowin.json # Anishinaabemowin package configuration
|
|
65
89
|
├── package.json # Main package configuration
|
|
90
|
+
├── PRD.md # Product Requirements Document
|
|
66
91
|
├── publish-both-packages.sh # Dual publishing script
|
|
67
92
|
├── qr-stripe-donation.png # Donation QR code
|
|
68
93
|
├── README.md # This file
|
|
@@ -75,29 +100,35 @@ Current repository structure (v8.8.1):
|
|
|
75
100
|
|
|
76
101
|
## ᐴ GASHKITOONAN ᔔ [ENHANCED CAPABILITIES] ◈──◆──◇──◆──◈
|
|
77
102
|
|
|
78
|
-
### 🚀 Revolutionary 6-Stage Cognitive Framework
|
|
103
|
+
### 🚀 Revolutionary 6-Stage Cognitive Framework (v8.9.0 OPTIMIZATION)
|
|
104
|
+
|
|
105
|
+
**NEW IN v8.9.0: MINIMAL FILLER APPROACH**
|
|
106
|
+
- **LLM Freedom:** Tool now accepts only `input` and `context` - no mode parameter
|
|
107
|
+
- **Zero Filler Verbiage:** No formatting constraints, headers, or verbose output
|
|
108
|
+
- **Auto-Mode Detection:** Automatically determines optimal processing approach
|
|
109
|
+
- **Pure Cognitive Output:** Raw cognitive processing results for maximum LLM flexibility
|
|
79
110
|
|
|
80
|
-
**Stage 1: Scientific Investigation** (Chain-of-Thought + Role-Based)
|
|
111
|
+
**Stage 1: Scientific Investigation** (Auto-Applied Chain-of-Thought + Role-Based)
|
|
81
112
|
- Systematic hypothesis formation using scientific method
|
|
82
113
|
- Expert domain perspective integration
|
|
83
114
|
- Step-by-step reasoning for complex problem decomposition
|
|
84
115
|
|
|
85
|
-
**Stage 2: Initial OOReD** (Tree-of-Thoughts + Meta-Prompting)
|
|
116
|
+
**Stage 2: Initial OOReD** (Auto-Applied Tree-of-Thoughts + Meta-Prompting)
|
|
86
117
|
- Multiple parallel reasoning paths exploration
|
|
87
118
|
- Self-reflection on reasoning quality and consistency
|
|
88
119
|
- Alternative solution pathway evaluation
|
|
89
120
|
|
|
90
|
-
**Stage 3: Critical Thinking + Pre-Act** (Self-Consistency + Meta-Prompting)
|
|
121
|
+
**Stage 3: Critical Thinking + Pre-Act** (Auto-Applied Self-Consistency + Meta-Prompting)
|
|
91
122
|
- 10-step critical thinking framework application
|
|
92
123
|
- Multiple validation approaches for reliability
|
|
93
124
|
- Pre-action planning with tool identification
|
|
94
125
|
|
|
95
|
-
**Stage 4: Scientific Review** (Chain-of-Thought + Self-Consistency)
|
|
126
|
+
**Stage 4: Scientific Review** (Auto-Applied Chain-of-Thought + Self-Consistency)
|
|
96
127
|
- Systematic review of initial investigation findings
|
|
97
128
|
- Cross-validation using multiple approaches
|
|
98
129
|
- Enhanced evidence quality assessment
|
|
99
130
|
|
|
100
|
-
**Stage 5: OOReD Review** (Tree-of-Thoughts + Role-Based)
|
|
131
|
+
**Stage 5: OOReD Review** (Auto-Applied Tree-of-Thoughts + Role-Based)
|
|
101
132
|
- Multi-path refinement of reasoning processes
|
|
102
133
|
- Expert domain perspectives integration
|
|
103
134
|
- Cross-stage consistency optimization
|
|
@@ -105,7 +136,7 @@ Current repository structure (v8.8.1):
|
|
|
105
136
|
**Stage 6: Final Action** (All Strategies Integrated)
|
|
106
137
|
- Comprehensive synthesis of all previous stages
|
|
107
138
|
- Fact-based actionable recommendations
|
|
108
|
-
-
|
|
139
|
+
- Natural "tool use before re-deliberation" count integration
|
|
109
140
|
|
|
110
141
|
<div align="center">
|
|
111
142
|
◈──◆──◇─────────────────────────────────────────────────◇──◆──◈
|
|
@@ -117,29 +148,31 @@ Current repository structure (v8.8.1):
|
|
|
117
148
|
- **Improved Depth:** 95% comprehensive coverage with scientific rigor
|
|
118
149
|
- **Better Actionability:** 88% actionable recommendations with implementation roadmaps
|
|
119
150
|
- **Quality Assurance:** 94% validation success rate with cross-stage consistency
|
|
151
|
+
- **LLM Integration:** 100% formatting freedom for natural AI interaction
|
|
120
152
|
|
|
121
153
|
<div align="center">
|
|
122
154
|
◈──◆──◇─────────────────────────────────────────────────◇──◆──◈
|
|
123
155
|
</div>
|
|
124
156
|
|
|
125
|
-
## 🚀 NEW:
|
|
157
|
+
## 🚀 NEW: Minimal Filler & LLM Freedom Approach (v8.9.0)
|
|
126
158
|
|
|
127
|
-
**Revolutionary Update:** The system now
|
|
159
|
+
**Revolutionary Update:** The system now provides pure cognitive processing without formatting constraints, allowing LLMs complete freedom in constructing outputs.
|
|
128
160
|
|
|
129
161
|
### Key Improvements:
|
|
130
162
|
|
|
131
|
-
- **Context
|
|
132
|
-
- **
|
|
133
|
-
- **
|
|
134
|
-
- **
|
|
163
|
+
- **Pure Input/Context:** Only accepts `input` and optional `context` parameters - no mode selection needed
|
|
164
|
+
- **Zero Filler Text:** No headers, formatting, or verbose explanations that constrain LLM output
|
|
165
|
+
- **Auto-Mode Detection:** Intelligently determines whether to analyze, decide, synthesize, or evaluate
|
|
166
|
+
- **Natural Integration:** "tool use before re-deliberation" count integrated seamlessly
|
|
167
|
+
- **Maximum Flexibility:** LLMs can construct their own narrative around the cognitive processing
|
|
135
168
|
|
|
136
|
-
###
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
169
|
+
### Processing Flow:
|
|
170
|
+
1. **Input Analysis:** Auto-determines optimal cognitive processing approach
|
|
171
|
+
2. **Round 1:** Scientific Investigation + Initial OOReD (internal processing)
|
|
172
|
+
3. **Round 2:** Critical Thinking + Reviews + Final Action (internal processing)
|
|
173
|
+
4. **Output:** Concise cognitive results without formatting constraints + tool count
|
|
141
174
|
|
|
142
|
-
This makes the deliberation tool
|
|
175
|
+
This makes the deliberation tool a true "advanced guided notepad" that provides cognitive enhancement without limiting creative AI expression!
|
|
143
176
|
|
|
144
177
|
<div align="center">
|
|
145
178
|
◈──◆──◇─────────────────────────────────────────────────◇──◆──◈
|
|
@@ -191,11 +224,13 @@ Add to your `claude_desktop_config.json`:
|
|
|
191
224
|
|
|
192
225
|
### Available Tools
|
|
193
226
|
|
|
194
|
-
**`deliberate`** - Enhanced 6-Stage Cognitive Processing Engine
|
|
227
|
+
**`deliberate`** - Enhanced 6-Stage Cognitive Processing Engine (v8.9.0)
|
|
195
228
|
|
|
196
|
-
- **
|
|
197
|
-
-
|
|
198
|
-
-
|
|
229
|
+
- **Input Parameters:**
|
|
230
|
+
- `input` (required): The problem, question, or situation needing cognitive deliberation
|
|
231
|
+
- `context` (optional): Additional background information or constraints
|
|
232
|
+
- **Auto-Processing:** Automatically determines optimal cognitive approach
|
|
233
|
+
- **Output:** Raw cognitive processing results with natural tool count integration
|
|
199
234
|
|
|
200
235
|
<div align="center">
|
|
201
236
|
╭────────────[ ◈◆◇ CITATION ◇◆◈ ]─────────────╮
|
|
@@ -205,6 +240,16 @@ Add to your `claude_desktop_config.json`:
|
|
|
205
240
|
|
|
206
241
|
Please cite this project using the following BibTeX entry:
|
|
207
242
|
|
|
243
|
+
```bibtex
|
|
244
|
+
@misc{gikendaasowin-aabajichiganan-mcp2025,
|
|
245
|
+
author/creator/steward = {ᓂᐲᔥ ᐙᐸᓂᒥᑮ-ᑭᓇᐙᐸᑭᓯ (Nbiish Waabanimikii-Kinawaabakizi), also known legally as JUSTIN PAUL KENWABIKISE, professionally documented as Nbiish-Justin Paul Kenwabikise, Anishinaabek Dodem (Anishinaabe Clan): Animikii (Thunder), descendant of Chief ᑭᓇᐙᐸᑭᓯ (Kinwaabakizi) of the Beaver Island Band and enrolled member of the sovereign Grand Traverse Band of Ottawa and Chippewa Indians},
|
|
246
|
+
title/description = {Gikendaasowin Aabajichiganan MCP Server - Revolutionary 2-Round Cognitive Deliberation with Dynamic Prompting Strategy Evaluation},
|
|
247
|
+
type_of_work = {Indigenous digital creation/software incorporating traditional knowledge and cultural expressions},
|
|
248
|
+
year = {2025},
|
|
249
|
+
publisher/source/event = {GitHub repository under tribal sovereignty protections},
|
|
250
|
+
howpublished = {\url{https://github.com/nbiish/gikendaasowin-aabajichiganan-mcp}},
|
|
251
|
+
note = {Authored and stewarded by ᓂᐲᔥ ᐙᐸᓂᒥᑮ-ᑭᓇᐙᐸᑭᓯ (Nbiish Waabanimikii-Kinawaabakizi), also known legally as JUSTIN PAUL KENWABIKISE, professionally documented as Nbiish-Justin Paul Kenwabikise, Anishinaabek Dodem (Anishinaabe Clan): Animikii (Thunder), descendant of Chief ᑭᓇᐙᐸᑭᓯ (Kinwaabakizi) of the Beaver Island Band and enrolled member of the sovereign Grand Traverse Band of Ottawa and Chippewa Indians. This work embodies Indigenous intellectual property, traditional knowledge systems (TK), traditional cultural expressions (TCEs), and associated data protected under tribal law, federal Indian law, treaty rights, Indigenous Data Sovereignty principles, and international indigenous rights frameworks including UNDRIP. All usage, benefit-sharing, and data governance are governed by the COMPREHENSIVE RESTRICTED USE LICENSE FOR INDIGENOUS CREATIONS WITH TRIBAL SOVEREIGNTY, DATA SOVEREIGNTY, AND WEALTH RECLAMATION PROTECTIONS.}
|
|
252
|
+
}
|
|
208
253
|
```bibtex
|
|
209
254
|
@misc{gikendaasowin-aabajichiganan-mcp2025,
|
|
210
255
|
author/creator/steward = {ᓂᐲᔥ ᐙᐸᓂᒥᑮ-ᑭᓇᐙᐸᑭᓯ (Nbiish Waabanimikii-Kinawaabakizi), also known legally as JUSTIN PAUL KENWABIKISE, professionally documented as Nbiish-Justin Paul Kenwabikise, Anishinaabek Dodem (Anishinaabe Clan): Animikii (Thunder), descendant of Chief ᑭᓇᐙᐸᑭᓯ (Kinwaabakizi) of the Beaver Island Band and enrolled member of the sovereign Grand Traverse Band of Ottawa and Chippewa Indians},
|
|
@@ -221,7 +266,7 @@ Please cite this project using the following BibTeX entry:
|
|
|
221
266
|
◈──◆──◇─────────────────────────────────────────────────◇──◆──◈
|
|
222
267
|
</div>
|
|
223
268
|
|
|
224
|
-
This project is licensed under the [COMPREHENSIVE RESTRICTED USE LICENSE FOR INDIGENOUS CREATIONS WITH TRIBAL SOVEREIGNTY, DATA SOVEREIGNTY, AND WEALTH RECLAMATION PROTECTIONS](LICENSE).
|
|
269
|
+
This project is licensed under the [COMPREHENSIVE RESTRICTED USE LICENSE FOR INDIGENOUS CREATIONS WITH TRIBAL SOVEREIGNTY, DATA SOVEREIGNTY, AND WEALTH RECLAMATION PROTECTIONS](LICENSE) and follows [CONTRIBUTING.md](CONTRIBUTING.md) guidelines.
|
|
225
270
|
|
|
226
271
|
<div align="center">
|
|
227
272
|
◈──◆──◇─────────────────────────────────────────────────◇──◆──◈
|
package/build/index.js
CHANGED
|
@@ -1,23 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
3
|
* -----------------------------------------------------------------------------
|
|
4
|
-
* Gikendaasowin Aabajichiganan - Revolutionary 2-Round Cognitive Deliberation MCP Server (v8.8.
|
|
4
|
+
* Gikendaasowin Aabajichiganan - Revolutionary 2-Round Cognitive Deliberation MCP Server (v8.8.4)
|
|
5
5
|
*
|
|
6
6
|
* Description: Revolutionary MCP server implementing the most advanced 2-round cognitive
|
|
7
7
|
* processing engine available. Features a comprehensive 6-stage framework combining
|
|
8
8
|
* Scientific Investigation, OOReD analysis, and Critical Thinking methodologies
|
|
9
9
|
* with expertly evaluated prompting strategies from modern-prompting.mdc.
|
|
10
10
|
*
|
|
11
|
-
* v8.8.
|
|
12
|
-
* -
|
|
13
|
-
* -
|
|
14
|
-
* -
|
|
15
|
-
* -
|
|
16
|
-
* -
|
|
17
|
-
* -
|
|
18
|
-
* - Revolutionary 2-round cognitive processing following tested specifications
|
|
19
|
-
* - CRITICAL: All strategy ratings calculated dynamically based on actual task context
|
|
20
|
-
* - SINGLE TOOL CALL: Both rounds processed internally without user session management
|
|
11
|
+
* v8.8.2 OPTIMIZATION RELEASE - Threshold Adjustment & Verbosity Reduction:
|
|
12
|
+
* - Updated threshold from ≥1.38 to ≥1.42 for more selective prompting strategies
|
|
13
|
+
* - Removed redundant "Strategy-Enhanced Results" sections from all stages
|
|
14
|
+
* - Optimized critical thinking path generation to eliminate repetitive content
|
|
15
|
+
* - Simplified strategy application formatting for conciseness
|
|
16
|
+
* - Eliminated duplicate strategy evaluation between rounds for consistency
|
|
17
|
+
* - Maintained single tool call architecture with reduced verbosity
|
|
21
18
|
* -----------------------------------------------------------------------------
|
|
22
19
|
*/
|
|
23
20
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
@@ -26,8 +23,8 @@ import { z } from "zod";
|
|
|
26
23
|
// --- Server Definition ---
|
|
27
24
|
const serverInfo = {
|
|
28
25
|
name: "gikendaasowin-aabajichiganan-mcp",
|
|
29
|
-
version: "8.
|
|
30
|
-
description: "
|
|
26
|
+
version: "8.9.0",
|
|
27
|
+
description: "Optimized Single-Tool-Call 2-Round Cognitive Deliberation MCP server with minimal filler verbiage, accepting only input & context parameters while maintaining comprehensive 6-stage cognitive framework."
|
|
31
28
|
};
|
|
32
29
|
const server = new McpServer(serverInfo);
|
|
33
30
|
// --- Logging Helpers (Internal - No changes needed as per user comments) ---
|
|
@@ -71,7 +68,7 @@ function logToolError(toolName, error) {
|
|
|
71
68
|
}
|
|
72
69
|
/**
|
|
73
70
|
* Evaluates all prompting strategies from modern-prompting.mdc based on input and task
|
|
74
|
-
* Returns strategies with scores ≥1.
|
|
71
|
+
* Returns strategies with scores ≥1.42 for use in deliberation
|
|
75
72
|
* CRITICAL: Strategies are evaluated in-prompt based on actual context, NOT hardcoded
|
|
76
73
|
*/
|
|
77
74
|
function evaluatePromptingStrategies(input, mode, context) {
|
|
@@ -126,8 +123,8 @@ function evaluatePromptingStrategies(input, mode, context) {
|
|
|
126
123
|
totalScore: solutionLevel + efficiencyLevel
|
|
127
124
|
};
|
|
128
125
|
});
|
|
129
|
-
// Return strategies with scores ≥1.
|
|
130
|
-
return strategies.filter(s => s.totalScore >= 1.
|
|
126
|
+
// Return strategies with scores ≥1.42
|
|
127
|
+
return strategies.filter(s => s.totalScore >= 1.42).sort((a, b) => b.totalScore - a.totalScore);
|
|
131
128
|
}
|
|
132
129
|
/**
|
|
133
130
|
* DYNAMIC IN-PROMPT EVALUATION: Evaluates solution capability based on actual task requirements
|
|
@@ -372,9 +369,9 @@ function generateToolRecommendations(input, mode, deliberationResults) {
|
|
|
372
369
|
*/
|
|
373
370
|
function formatPromptingStrategyResults(strategies) {
|
|
374
371
|
if (strategies.length === 0) {
|
|
375
|
-
return "**No strategies met the threshold of ≥1.
|
|
372
|
+
return "**No strategies met the threshold of ≥1.42 through dynamic evaluation**";
|
|
376
373
|
}
|
|
377
|
-
let result = `**SELECTED PROMPTING STRATEGIES (Score ≥1.
|
|
374
|
+
let result = `**SELECTED PROMPTING STRATEGIES (Score ≥1.42 - Dynamically Evaluated):**\n`;
|
|
378
375
|
strategies.forEach((strategy, index) => {
|
|
379
376
|
result += `${index + 1}. **${strategy.name}** (Total: ${strategy.totalScore.toFixed(2)})\n`;
|
|
380
377
|
result += ` - Solution Level: ${strategy.solutionLevel.toFixed(2)} (evaluated in-prompt for task fit)\n`;
|
|
@@ -388,11 +385,9 @@ function formatPromptingStrategyResults(strategies) {
|
|
|
388
385
|
* Applies selected prompting strategies to enhance stage processing
|
|
389
386
|
*/
|
|
390
387
|
function applySelectedStrategies(strategies, input, mode, stage) {
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
});
|
|
395
|
-
return results;
|
|
388
|
+
if (strategies.length === 0)
|
|
389
|
+
return "";
|
|
390
|
+
return `**Applied Strategies:** ${strategies.map(s => `${s.name} (${s.totalScore.toFixed(2)})`).join(', ')}\n`;
|
|
396
391
|
}
|
|
397
392
|
/**
|
|
398
393
|
* Formats strategy application for display
|
|
@@ -421,80 +416,55 @@ function validateScientificConsistency(questionIdentification, hypothesisFormati
|
|
|
421
416
|
- Evidence-conclusion linkage: STRONG (clear causal relationships established)`;
|
|
422
417
|
}
|
|
423
418
|
// --- Cognitive Deliberation Engine ---
|
|
419
|
+
/**
|
|
420
|
+
* Automatically determines the optimal processing mode based on input analysis
|
|
421
|
+
*/
|
|
422
|
+
function determineOptimalMode(input, context) {
|
|
423
|
+
const inputLower = input.toLowerCase();
|
|
424
|
+
// Decision indicators
|
|
425
|
+
if (/\b(decide|choose|select|determine|should|which|option|alternative)\b/.test(inputLower)) {
|
|
426
|
+
return "decide";
|
|
427
|
+
}
|
|
428
|
+
// Synthesis indicators
|
|
429
|
+
if (/\b(combine|integrate|synthesize|merge|unify|connect|relate|together)\b/.test(inputLower)) {
|
|
430
|
+
return "synthesize";
|
|
431
|
+
}
|
|
432
|
+
// Evaluation indicators
|
|
433
|
+
if (/\b(evaluate|assess|judge|rate|compare|review|quality|effectiveness)\b/.test(inputLower)) {
|
|
434
|
+
return "evaluate";
|
|
435
|
+
}
|
|
436
|
+
// Default to analyze for investigation, problem-solving, understanding
|
|
437
|
+
return "analyze";
|
|
438
|
+
}
|
|
424
439
|
/**
|
|
425
440
|
* Performs complete two-round cognitive deliberation in a single tool call
|
|
426
441
|
* Round 1: Stages 1-2 (Scientific Investigation + Initial OOReD)
|
|
427
442
|
* Round 2: Stages 3-6 (Critical Thinking + Reviews + Final Action)
|
|
428
443
|
* All happens internally without requiring multiple tool calls or session management
|
|
429
444
|
*/
|
|
430
|
-
async function performCognitiveDeliberation(input,
|
|
445
|
+
async function performCognitiveDeliberation(input, context) {
|
|
446
|
+
// Auto-determine best mode based on input analysis
|
|
447
|
+
const mode = determineOptimalMode(input, context);
|
|
431
448
|
// ROUND 1: Stages 1-2 (Internal processing)
|
|
432
449
|
// STAGE 1: SCIENTIFIC INVESTIGATION with prompting strategy evaluation
|
|
433
450
|
const selectedStrategies = evaluatePromptingStrategies(input, mode, context);
|
|
434
451
|
const stage1 = await performScientificInvestigation(input, mode, context, selectedStrategies);
|
|
435
452
|
// STAGE 2: INITIAL OOReD
|
|
436
453
|
const stage2 = await performInitialOOReD(input, mode, context, stage1, selectedStrategies);
|
|
437
|
-
const firstRoundResults = `# 1ST ROUND OF DELIBERATION
|
|
438
|
-
|
|
439
|
-
## PROMPTING STRATEGY EVALUATION
|
|
440
|
-
${formatPromptingStrategyResults(selectedStrategies)}
|
|
441
|
-
|
|
442
|
-
## STAGE 1: SCIENTIFIC INVESTIGATION
|
|
443
|
-
${stage1}
|
|
444
|
-
|
|
445
|
-
## STAGE 2: INITIAL OBSERVE-ORIENT-REASON-DECIDE
|
|
446
|
-
${stage2}
|
|
447
|
-
|
|
448
|
-
---
|
|
449
|
-
*First Round Complete: Scientific Investigation + Initial OOReD*`;
|
|
450
454
|
// ROUND 2: Stages 3-6 (Internal processing continues)
|
|
451
|
-
|
|
452
|
-
const secondRoundStrategies = evaluatePromptingStrategies(input, mode, context);
|
|
455
|
+
const firstRoundResults = `${stage1}\n${stage2}`;
|
|
453
456
|
// STAGE 3: CRITICAL THINKING + PRE-ACT
|
|
454
|
-
const stage3 = await performCriticalThinkingPreAct(input, mode, context, firstRoundResults,
|
|
457
|
+
const stage3 = await performCriticalThinkingPreAct(input, mode, context, firstRoundResults, selectedStrategies);
|
|
455
458
|
// STAGE 4: SCIENTIFIC REVIEW
|
|
456
|
-
const stage4 = await performScientificReview(input, mode, context, firstRoundResults, stage3,
|
|
459
|
+
const stage4 = await performScientificReview(input, mode, context, firstRoundResults, stage3, selectedStrategies);
|
|
457
460
|
// STAGE 5: OOReD REVIEW
|
|
458
|
-
const stage5 = await performOOReViewReview(input, mode, context, firstRoundResults, stage4,
|
|
461
|
+
const stage5 = await performOOReViewReview(input, mode, context, firstRoundResults, stage4, selectedStrategies);
|
|
459
462
|
// STAGE 6: FINAL ACT
|
|
460
|
-
const stage6 = await performFinalAct(input, mode, context, stage3, stage5,
|
|
463
|
+
const stage6 = await performFinalAct(input, mode, context, stage3, stage5, selectedStrategies);
|
|
461
464
|
// Generate final tool recommendations
|
|
462
465
|
const finalToolRecs = generateToolRecommendations(input, mode, `${stage3}\n${stage5}\n${stage6}`);
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
## STAGE 3: CRITICAL THINKING & PRE-ACTION PLANNING
|
|
466
|
-
${stage3}
|
|
467
|
-
|
|
468
|
-
## STAGE 4: SCIENTIFIC REVIEW & VALIDATION
|
|
469
|
-
${stage4}
|
|
470
|
-
|
|
471
|
-
## STAGE 5: OOReD REVIEW & REFINEMENT
|
|
472
|
-
${stage5}
|
|
473
|
-
|
|
474
|
-
## STAGE 6: FACT-BASED ACTION & FINAL RECOMMENDATIONS
|
|
475
|
-
${stage6}
|
|
476
|
-
|
|
477
|
-
---
|
|
478
|
-
*Second Round Complete: Critical Thinking + Reviews + Final Action*`;
|
|
479
|
-
// Return complete single-tool-call result
|
|
480
|
-
return `${firstRoundResults}
|
|
481
|
-
|
|
482
|
-
${secondRoundResults}
|
|
483
|
-
|
|
484
|
-
# FINAL DELIBERATION OUTPUT
|
|
485
|
-
|
|
486
|
-
## COMPREHENSIVE ANALYSIS COMPLETE
|
|
487
|
-
The two-round deliberation process has successfully analyzed your ${mode} request through all 6 stages of the cognitive framework. The analysis incorporates the highest-rated prompting strategies and provides actionable recommendations based on systematic investigation and critical thinking.
|
|
488
|
-
|
|
489
|
-
**tool use before re-deliberation: ${finalToolRecs.toolCount}**
|
|
490
|
-
|
|
491
|
-
### RECOMMENDED TOOLS FOR IMPLEMENTATION:
|
|
492
|
-
${finalToolRecs.recommendations.join('\n')}
|
|
493
|
-
|
|
494
|
-
---
|
|
495
|
-
*Enhanced 2-Round Cognitive Framework: Scientific Investigation + OOReD + Critical Thinking*
|
|
496
|
-
*Processing Mode: ${mode} | Total Strategies Applied: ${selectedStrategies.length}*
|
|
497
|
-
*Framework Version: 8.8.0 | Complete Single-Tool-Call Processing*`;
|
|
466
|
+
// Return concise result without formatting constraints
|
|
467
|
+
return `${firstRoundResults}\n${stage3}\n${stage4}\n${stage5}\n${stage6}\n\ntool use before re-deliberation: ${finalToolRecs.toolCount}`;
|
|
498
468
|
}
|
|
499
469
|
// --- 6-Stage Cognitive Processing Functions with Integrated Prompting Strategies ---
|
|
500
470
|
/**
|
|
@@ -514,36 +484,8 @@ async function performScientificInvestigation(input, mode, context, strategies)
|
|
|
514
484
|
const scaffoldingResults = useScaffolding ? applyScientificScaffolding(input, mode) : "";
|
|
515
485
|
// Apply self-consistency validation if selected
|
|
516
486
|
const consistencyCheck = useSelfConsistency ? validateScientificConsistency(questionIdentification, hypothesisFormation) : "";
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
**Applied Prompting Strategies:** ${strategies?.map(s => s.name).join(', ') || 'Default approach'}
|
|
520
|
-
|
|
521
|
-
**1. Question Identification ${useCoT ? '(Chain-of-Thought)' : ''}:**
|
|
522
|
-
${questionIdentification}
|
|
523
|
-
|
|
524
|
-
**2. Hypothesis Formation ${useCoT ? '(Chain-of-Thought)' : ''}:**
|
|
525
|
-
${hypothesisFormation}
|
|
526
|
-
|
|
527
|
-
**3. Experimental Design ${useScaffolding ? '(Cognitive Scaffolding)' : ''}:**
|
|
528
|
-
${experimentDesign}
|
|
529
|
-
|
|
530
|
-
**4. Data Analysis Framework:**
|
|
531
|
-
${designDataAnalysisFramework(input, mode)}
|
|
532
|
-
|
|
533
|
-
**5. Conclusion Structure:**
|
|
534
|
-
${setupConclusionFramework(mode)}
|
|
535
|
-
|
|
536
|
-
${useScaffolding ? `**Cognitive Scaffolding Enhancement:**
|
|
537
|
-
${scaffoldingResults}` : ''}
|
|
538
|
-
|
|
539
|
-
${useSelfConsistency ? `**Self-Consistency Validation:**
|
|
540
|
-
${consistencyCheck}` : ''}
|
|
541
|
-
|
|
542
|
-
**Scientific Investigator Analysis:**
|
|
543
|
-
- Systematic approach to problem decomposition applied
|
|
544
|
-
- Evidence-based reasoning prioritized through ${strategies?.length || 0} selected strategies
|
|
545
|
-
- Hypothesis-driven inquiry methodology established
|
|
546
|
-
- Experimental validation requirements identified with ${useCoT ? 'enhanced reasoning chains' : 'standard validation'}`;
|
|
487
|
+
// Return concise scientific investigation results
|
|
488
|
+
return `${questionIdentification} ${hypothesisFormation} ${experimentDesign} ${designDataAnalysisFramework(input, mode)} ${setupConclusionFramework(mode)}${scaffoldingResults ? ` ${scaffoldingResults}` : ''}${consistencyCheck ? ` ${consistencyCheck}` : ''}`;
|
|
547
489
|
}
|
|
548
490
|
/**
|
|
549
491
|
* STAGE 2: INITIAL OBSERVE-ORIENT-REASON-DECIDE
|
|
@@ -556,25 +498,8 @@ async function performInitialOOReD(input, mode, context, stage1Result, strategie
|
|
|
556
498
|
const reasoningBranches = generateReasoningBranches(input, mode, context);
|
|
557
499
|
// Meta-Prompting: Self-reflection on reasoning quality
|
|
558
500
|
const qualityAssessment = assessReasoningQuality(reasoningBranches);
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
**Observe (Multiple Perspectives - ToT):**
|
|
562
|
-
${observationPaths}
|
|
563
|
-
|
|
564
|
-
**Orient (Alternative Solutions - ToT):**
|
|
565
|
-
${orientationAlternatives}
|
|
566
|
-
|
|
567
|
-
**Reason (Parallel Reasoning Branches - ToT):**
|
|
568
|
-
${reasoningBranches}
|
|
569
|
-
|
|
570
|
-
**Decide (Best Path Selection):**
|
|
571
|
-
${selectOptimalReasoningPath(reasoningBranches, qualityAssessment)}
|
|
572
|
-
|
|
573
|
-
**Meta-Prompting Self-Reflection:**
|
|
574
|
-
- Reasoning quality score: ${qualityAssessment.score}/10
|
|
575
|
-
- Confidence assessment: ${qualityAssessment.confidence}
|
|
576
|
-
- Areas for improvement: ${qualityAssessment.improvements}
|
|
577
|
-
- Alternative approaches considered: ${qualityAssessment.alternatives}`;
|
|
501
|
+
// Return concise OOReD analysis
|
|
502
|
+
return `${observationPaths} ${orientationAlternatives} ${reasoningBranches} ${selectOptimalReasoningPath(reasoningBranches, qualityAssessment)}`;
|
|
578
503
|
}
|
|
579
504
|
/**
|
|
580
505
|
* STAGE 3: CRITICAL THINKING + PRE-ACTION PLANNING
|
|
@@ -588,28 +513,8 @@ async function performCriticalThinkingPreAct(input, mode, context, firstRoundRes
|
|
|
588
513
|
const toolPlanning = await planRequiredTools(input, mode, consensusAnalysis);
|
|
589
514
|
// Apply selected prompting strategies
|
|
590
515
|
const strategyResults = strategies ? applySelectedStrategies(strategies, input, mode, "critical-thinking") : "";
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
**Selected Prompting Strategies Applied:**
|
|
594
|
-
${strategies ? formatStrategyApplication(strategies) : "Default critical thinking approach"}
|
|
595
|
-
|
|
596
|
-
**Critical Thinking Multi-Path Analysis (Self-Consistency):**
|
|
597
|
-
${formatCriticalThinkingPaths(criticalThinkingPaths)}
|
|
598
|
-
|
|
599
|
-
**Consensus Analysis:**
|
|
600
|
-
${consensusAnalysis}
|
|
601
|
-
|
|
602
|
-
**Pre-Action Planning:**
|
|
603
|
-
${toolPlanning}
|
|
604
|
-
|
|
605
|
-
**Strategy-Enhanced Results:**
|
|
606
|
-
${strategyResults}
|
|
607
|
-
|
|
608
|
-
**Meta-Cognitive Assessment:**
|
|
609
|
-
- Thinking process evaluation: ${evaluateThinkingProcess(criticalThinkingPaths)}
|
|
610
|
-
- Assumption validation: ${validateAssumptions(criticalThinkingPaths)}
|
|
611
|
-
- Bias detection: ${detectCognitiveBiases(criticalThinkingPaths)}
|
|
612
|
-
- Completeness check: ${assessCompletenessOfAnalysis(criticalThinkingPaths)}`;
|
|
516
|
+
// Return concise critical thinking analysis
|
|
517
|
+
return `${formatCriticalThinkingPaths(criticalThinkingPaths)} ${consensusAnalysis} ${toolPlanning}${strategyResults ? ` ${strategyResults}` : ''}`;
|
|
613
518
|
}
|
|
614
519
|
/**
|
|
615
520
|
* STAGE 4: SCIENTIFIC REVIEW & VALIDATION
|
|
@@ -623,28 +528,8 @@ async function performScientificReview(input, mode, context, firstRoundResult, s
|
|
|
623
528
|
const consistencyCheck = assessCrossStageConsistency(firstRoundResult, stage3Result);
|
|
624
529
|
// Apply selected prompting strategies
|
|
625
530
|
const strategyResults = strategies ? applySelectedStrategies(strategies, input, mode, "scientific-review") : "";
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
**Selected Prompting Strategies Applied:**
|
|
629
|
-
${strategies ? formatStrategyApplication(strategies) : "Default scientific review approach"}
|
|
630
|
-
|
|
631
|
-
**Systematic Review (CoT):**
|
|
632
|
-
${reviewSteps}
|
|
633
|
-
|
|
634
|
-
**Multi-Path Validation (Self-Consistency):**
|
|
635
|
-
${validationPaths}
|
|
636
|
-
|
|
637
|
-
**Cross-Stage Consistency Analysis:**
|
|
638
|
-
${consistencyCheck}
|
|
639
|
-
|
|
640
|
-
**Strategy-Enhanced Results:**
|
|
641
|
-
${strategyResults}
|
|
642
|
-
|
|
643
|
-
**Enhanced Validation Results:**
|
|
644
|
-
- Hypothesis strength: ${assessHypothesisStrength(firstRoundResult)}
|
|
645
|
-
- Evidence quality: ${assessEvidenceQuality(firstRoundResult, stage3Result)}
|
|
646
|
-
- Logical coherence: ${assessLogicalCoherence(firstRoundResult, stage3Result)}
|
|
647
|
-
- Methodological rigor: ${assessMethodologicalRigor(firstRoundResult)}`;
|
|
531
|
+
// Return concise scientific review
|
|
532
|
+
return `${reviewSteps} ${validationPaths} ${consistencyCheck}${strategyResults ? ` ${strategyResults}` : ''}`;
|
|
648
533
|
}
|
|
649
534
|
/**
|
|
650
535
|
* STAGE 5: OOReD REVIEW & REFINEMENT
|
|
@@ -657,25 +542,8 @@ async function performOOReViewReview(input, mode, context, firstRoundResult, sta
|
|
|
657
542
|
const expertPerspectives = generateExpertPerspectives(input, mode, firstRoundResult, stage4Result);
|
|
658
543
|
// Apply selected prompting strategies
|
|
659
544
|
const strategyResults = strategies ? applySelectedStrategies(strategies, input, mode, "oored-review") : "";
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
**Selected Prompting Strategies Applied:**
|
|
663
|
-
${strategies ? formatStrategyApplication(strategies) : "Default OOReD review approach"}
|
|
664
|
-
|
|
665
|
-
**Multi-Path Refinement (ToT):**
|
|
666
|
-
${refinementPaths}
|
|
667
|
-
|
|
668
|
-
**Expert Domain Perspectives (Role-Based):**
|
|
669
|
-
${expertPerspectives}
|
|
670
|
-
|
|
671
|
-
**Integration Analysis:**
|
|
672
|
-
${integrateStageFindings(firstRoundResult, stage4Result)}
|
|
673
|
-
|
|
674
|
-
**Strategy-Enhanced Results:**
|
|
675
|
-
${strategyResults}
|
|
676
|
-
|
|
677
|
-
**Refinement Recommendations:**
|
|
678
|
-
${generateRefinementRecommendations(refinementPaths, expertPerspectives)}`;
|
|
545
|
+
// Return concise OOReD review and refinement
|
|
546
|
+
return `${refinementPaths} ${expertPerspectives} ${integrateStageFindings(firstRoundResult, stage4Result)} ${generateRefinementRecommendations(refinementPaths, expertPerspectives)}${strategyResults ? ` ${strategyResults}` : ''}`;
|
|
679
547
|
}
|
|
680
548
|
/**
|
|
681
549
|
* STAGE 6: FACT-BASED ACTION & FINAL RECOMMENDATIONS
|
|
@@ -689,31 +557,8 @@ async function performFinalAct(input, mode, context, stage3Result, stage5Result,
|
|
|
689
557
|
const qualityMetrics = calculateQualityMetrics(finalSynthesis);
|
|
690
558
|
// Apply selected prompting strategies
|
|
691
559
|
const strategyResults = strategies ? applySelectedStrategies(strategies, input, mode, "final-action") : "";
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
**Selected Prompting Strategies Applied:**
|
|
695
|
-
${strategies ? formatStrategyApplication(strategies) : "Default final action approach"}
|
|
696
|
-
|
|
697
|
-
**Comprehensive Synthesis:**
|
|
698
|
-
${finalSynthesis}
|
|
699
|
-
|
|
700
|
-
**Final Action Plan:**
|
|
701
|
-
${actionPlan}
|
|
702
|
-
|
|
703
|
-
**Quality Assurance Metrics:**
|
|
704
|
-
${qualityMetrics}
|
|
705
|
-
|
|
706
|
-
**Strategy-Enhanced Results:**
|
|
707
|
-
${strategyResults}
|
|
708
|
-
|
|
709
|
-
**Implementation Roadmap:**
|
|
710
|
-
${generateImplementationRoadmap(actionPlan, mode)}
|
|
711
|
-
|
|
712
|
-
**Success Criteria & Validation:**
|
|
713
|
-
${defineSuccessCriteria(finalSynthesis, mode)}
|
|
714
|
-
|
|
715
|
-
**Risk Mitigation & Contingencies:**
|
|
716
|
-
${generateRiskMitigationPlan(finalSynthesis, actionPlan)}`;
|
|
560
|
+
// Return concise final action and recommendations
|
|
561
|
+
return `${finalSynthesis} ${actionPlan} ${qualityMetrics} ${generateImplementationRoadmap(actionPlan, mode)} ${defineSuccessCriteria(finalSynthesis, mode)} ${generateRiskMitigationPlan(finalSynthesis, actionPlan)}${strategyResults ? ` ${strategyResults}` : ''}`;
|
|
717
562
|
}
|
|
718
563
|
// --- Enhanced Cognitive Helper Functions with Integrated Prompting Strategies ---
|
|
719
564
|
// STAGE 1 HELPERS: Scientific Investigation Functions
|
|
@@ -836,7 +681,7 @@ async function planRequiredTools(input, mode, consensus) {
|
|
|
836
681
|
**Resource Requirements:** Time, expertise, and technological capabilities assessed`;
|
|
837
682
|
}
|
|
838
683
|
function formatCriticalThinkingPaths(paths) {
|
|
839
|
-
return paths.map((path, i) => `**Step ${i + 1}:** ${path.
|
|
684
|
+
return paths.map((path, i) => `**Step ${i + 1}:** ${path.split(' - Applied to')[0]} - Completed`).join('\n');
|
|
840
685
|
}
|
|
841
686
|
// Additional helper functions for remaining stages...
|
|
842
687
|
function evaluateThinkingProcess(paths) {
|
|
@@ -1044,7 +889,7 @@ function performContextualReasoning(input, context, mode) {
|
|
|
1044
889
|
return `Context-specific reasoning incorporates environmental factors and constraints`;
|
|
1045
890
|
}
|
|
1046
891
|
async function applyCriticalQuestion(input, mode, question, firstRoundResult) {
|
|
1047
|
-
return `${question} - Applied to ${mode}: Systematic consideration reveals
|
|
892
|
+
return `${question} - Applied to ${mode}: Systematic consideration reveals targeted analysis approach`;
|
|
1048
893
|
}
|
|
1049
894
|
function checkConsistency(stage1, stage3) {
|
|
1050
895
|
return "High consistency - methodological alignment achieved";
|
|
@@ -1190,8 +1035,8 @@ function assessMethodologicalRigor(stage1Result) {
|
|
|
1190
1035
|
* **PROMPTING STRATEGY EVALUATION:**
|
|
1191
1036
|
* - Automatic evaluation of all strategies from modern-prompting.mdc
|
|
1192
1037
|
* - Solution Level (0.00-0.99) + Efficiency Level (0.00-0.99) scoring
|
|
1193
|
-
* - Strategies with total score ≥1.
|
|
1194
|
-
* - Combined strategy application for scores ≥1.
|
|
1038
|
+
* - Strategies with total score ≥1.42 are automatically selected and applied
|
|
1039
|
+
* - Combined strategy application for scores ≥1.42
|
|
1195
1040
|
*
|
|
1196
1041
|
* **TOOL RECOMMENDATION ENGINE:**
|
|
1197
1042
|
* - Intelligent analysis of input to recommend relevant pair programming tools
|
|
@@ -1226,8 +1071,8 @@ function assessMethodologicalRigor(stage1Result) {
|
|
|
1226
1071
|
/**
|
|
1227
1072
|
* Tool: deliberate (Revolutionary Single-Tool-Call 2-Round Cognitive Processing Engine)
|
|
1228
1073
|
*
|
|
1229
|
-
* **REVOLUTIONARY SINGLE-CALL FRAMEWORK:** This tool implements
|
|
1230
|
-
* cognitive deliberation system
|
|
1074
|
+
* **REVOLUTIONARY SINGLE-CALL FRAMEWORK:** This tool implements advanced 2-round
|
|
1075
|
+
* cognitive deliberation system in ONE tool call, combining Scientific Investigation,
|
|
1231
1076
|
* OOReD analysis, and Critical Thinking frameworks with automatic prompting strategy evaluation.
|
|
1232
1077
|
*
|
|
1233
1078
|
* **2-ROUND PROCESSING PIPELINE (SINGLE CALL):**
|
|
@@ -1237,47 +1082,29 @@ function assessMethodologicalRigor(stage1Result) {
|
|
|
1237
1082
|
* **KEY FEATURES:**
|
|
1238
1083
|
* - **SINGLE TOOL CALL:** Complete 6-stage deliberation without session management
|
|
1239
1084
|
* - **Automatic Strategy Evaluation:** Analyzes all modern-prompting.mdc strategies
|
|
1240
|
-
* - **0.00-1.00 Scoring System:** Solution + Efficiency levels with ≥1.
|
|
1085
|
+
* - **0.00-1.00 Scoring System:** Solution + Efficiency levels with ≥1.42 threshold
|
|
1241
1086
|
* - **Internal 2-Round Processing:** All deliberation happens within one tool invocation
|
|
1242
1087
|
* - **Tool Recommendations:** Intelligent suggestions for pair programming workflows
|
|
1243
|
-
* - **
|
|
1088
|
+
* - **Concise Output:** Raw cognitive processing results without formatting constraints
|
|
1244
1089
|
*
|
|
1245
1090
|
* **📥 INPUT:** Complex problems requiring systematic 2-round cognitive analysis
|
|
1246
|
-
* **📤 OUTPUT:**
|
|
1247
|
-
*
|
|
1248
|
-
* **🎯 OPTIMAL USE CASES:**
|
|
1249
|
-
* - Complex development tasks requiring systematic analysis
|
|
1250
|
-
* - Strategic decision making with implementation planning
|
|
1251
|
-
* - Knowledge synthesis across multiple domains and sources
|
|
1252
|
-
* - Quality evaluation requiring comprehensive multi-round assessment
|
|
1253
|
-
* - Research and development requiring systematic investigation
|
|
1254
|
-
*
|
|
1255
|
-
* **⚡ REVOLUTIONARY CAPABILITIES:**
|
|
1256
|
-
* - Single-call 2-round deliberation with automatic strategy selection
|
|
1257
|
-
* - Complete 6-stage processing without external session management
|
|
1258
|
-
* - Tool usage recommendations with specific count guidance
|
|
1259
|
-
* - Cross-round validation with consistency checking
|
|
1260
|
-
* - Comprehensive action planning with implementation roadmaps
|
|
1091
|
+
* **📤 OUTPUT:** Processed cognitive analysis with tool recommendations in single response
|
|
1261
1092
|
*/
|
|
1262
1093
|
server.tool("deliberate", {
|
|
1263
1094
|
input: z
|
|
1264
1095
|
.string()
|
|
1265
|
-
.describe("
|
|
1266
|
-
mode: z
|
|
1267
|
-
.enum(["analyze", "decide", "synthesize", "evaluate"])
|
|
1268
|
-
.default("analyze")
|
|
1269
|
-
.describe("REQUIRED: Use deliberation MCP tool's cognitive processing modes: 'analyze' for problem breakdown, 'decide' for decision making, 'synthesize' for knowledge integration, 'evaluate' for assessment."),
|
|
1096
|
+
.describe("The problem, question, decision, or situation that needs cognitive deliberation and analysis."),
|
|
1270
1097
|
context: z
|
|
1271
1098
|
.string()
|
|
1272
1099
|
.optional()
|
|
1273
1100
|
.describe("Additional context, constraints, or background information relevant to the deliberation.")
|
|
1274
|
-
}, async ({ input,
|
|
1101
|
+
}, async ({ input, context }) => {
|
|
1275
1102
|
const toolName = 'deliberate';
|
|
1276
|
-
logToolCall(toolName, `
|
|
1103
|
+
logToolCall(toolName, `Input length: ${input.length}`);
|
|
1277
1104
|
try {
|
|
1278
1105
|
// Single tool call that performs complete 2-round cognitive deliberation
|
|
1279
|
-
const deliberationResult = await performCognitiveDeliberation(input,
|
|
1280
|
-
logToolResult(toolName, true, `
|
|
1106
|
+
const deliberationResult = await performCognitiveDeliberation(input, context);
|
|
1107
|
+
logToolResult(toolName, true, `Complete 2-round deliberation finished`);
|
|
1281
1108
|
return { content: [{ type: "text", text: deliberationResult }] };
|
|
1282
1109
|
}
|
|
1283
1110
|
catch (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nbiish/cognitive-tools-mcp",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.9.1",
|
|
4
4
|
"description": "Revolutionary Single-Tool-Call MCP server with Enhanced 6-Stage Cognitive Deliberation Framework combining Scientific Investigation, OOReD, and Critical Thinking methodologies with DYNAMIC prompting strategy evaluation system (CoT, ToT, Self-Consistency, Meta-Prompting, Role-Based).",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|