@nbiish/cognitive-tools-mcp 8.8.2 → 8.8.4

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 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="https://img.buymeacoffee.com/button-api/?text=Buy me a coffee&emoji=&slug=nbiish&button_colour=FFDD00&font_colour=000000&font_family=Cookie&outline_colour=000000&coffee_colour=ffffff" /></a>
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
 
@@ -38,7 +38,7 @@ Both packages are maintained in parallel and receive the same updates. You can u
38
38
 
39
39
  ## ᐴ REPOSITORY STRUCTURE ᔔ [MAZINAAZIWIN] ◈──◆──◇──◆──◈
40
40
 
41
- Current repository structure (v8.8.1):
41
+ Current repository structure (v8.8.3):
42
42
 
43
43
  ```text
44
44
  .
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.0)
4
+ * Gikendaasowin Aabajichiganan - Revolutionary 2-Round Cognitive Deliberation MCP Server (v8.8.3)
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.1 REVOLUTIONARY RELEASE - 2-Round Deliberation Framework:
12
- * - Complete refactor implementing 2-round deliberation process as SINGLE tool call
13
- * - DYNAMIC prompting strategy evaluation with in-prompt 0.00-1.00 scoring system
14
- * - Removed session management - all 6 stages happen in one tool invocation
15
- * - Tool usage recommendations focusing on pair programming scenarios
16
- * - Enhanced reliability with cross-round validation and consistency checking
17
- * - Comprehensive markdown output with tool count recommendations
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.8.1",
30
- description: "Revolutionary Single-Tool-Call 2-Round Cognitive Deliberation MCP server implementing the complete 6-stage framework with dynamic prompting strategy evaluation and tool recommendations."
26
+ version: "8.8.3",
27
+ description: "Optimized Single-Tool-Call 2-Round Cognitive Deliberation MCP server with threshold adjustment (≥1.42) and reduced verbosity 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.38 for use in deliberation
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.38
130
- return strategies.filter(s => s.totalScore >= 1.38).sort((a, b) => b.totalScore - a.totalScore);
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.38 through dynamic evaluation**";
372
+ return "**No strategies met the threshold of ≥1.42 through dynamic evaluation**";
376
373
  }
377
- let result = `**SELECTED PROMPTING STRATEGIES (Score ≥1.38 - Dynamically Evaluated):**\n`;
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
- let results = `**Applied Strategies for ${stage}:**\n`;
392
- strategies.forEach(strategy => {
393
- results += `- **${strategy.name}** (${strategy.totalScore.toFixed(2)}): Enhanced ${stage} processing\n`;
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
@@ -448,8 +443,8 @@ ${stage2}
448
443
  ---
449
444
  *First Round Complete: Scientific Investigation + Initial OOReD*`;
450
445
  // ROUND 2: Stages 3-6 (Internal processing continues)
451
- // Re-evaluate strategies for second round
452
- const secondRoundStrategies = evaluatePromptingStrategies(input, mode, context);
446
+ // Use same strategies for consistency (input/mode/context unchanged)
447
+ const secondRoundStrategies = selectedStrategies;
453
448
  // STAGE 3: CRITICAL THINKING + PRE-ACT
454
449
  const stage3 = await performCriticalThinkingPreAct(input, mode, context, firstRoundResults, secondRoundStrategies);
455
450
  // STAGE 4: SCIENTIFIC REVIEW
@@ -494,7 +489,7 @@ ${finalToolRecs.recommendations.join('\n')}
494
489
  ---
495
490
  *Enhanced 2-Round Cognitive Framework: Scientific Investigation + OOReD + Critical Thinking*
496
491
  *Processing Mode: ${mode} | Total Strategies Applied: ${selectedStrategies.length}*
497
- *Framework Version: 8.8.0 | Complete Single-Tool-Call Processing*`;
492
+ *Framework Version: 8.8.3 | Complete Single-Tool-Call Processing*`;
498
493
  }
499
494
  // --- 6-Stage Cognitive Processing Functions with Integrated Prompting Strategies ---
500
495
  /**
@@ -602,9 +597,6 @@ ${consensusAnalysis}
602
597
  **Pre-Action Planning:**
603
598
  ${toolPlanning}
604
599
 
605
- **Strategy-Enhanced Results:**
606
- ${strategyResults}
607
-
608
600
  **Meta-Cognitive Assessment:**
609
601
  - Thinking process evaluation: ${evaluateThinkingProcess(criticalThinkingPaths)}
610
602
  - Assumption validation: ${validateAssumptions(criticalThinkingPaths)}
@@ -637,9 +629,6 @@ ${validationPaths}
637
629
  **Cross-Stage Consistency Analysis:**
638
630
  ${consistencyCheck}
639
631
 
640
- **Strategy-Enhanced Results:**
641
- ${strategyResults}
642
-
643
632
  **Enhanced Validation Results:**
644
633
  - Hypothesis strength: ${assessHypothesisStrength(firstRoundResult)}
645
634
  - Evidence quality: ${assessEvidenceQuality(firstRoundResult, stage3Result)}
@@ -671,9 +660,6 @@ ${expertPerspectives}
671
660
  **Integration Analysis:**
672
661
  ${integrateStageFindings(firstRoundResult, stage4Result)}
673
662
 
674
- **Strategy-Enhanced Results:**
675
- ${strategyResults}
676
-
677
663
  **Refinement Recommendations:**
678
664
  ${generateRefinementRecommendations(refinementPaths, expertPerspectives)}`;
679
665
  }
@@ -703,9 +689,6 @@ ${actionPlan}
703
689
  **Quality Assurance Metrics:**
704
690
  ${qualityMetrics}
705
691
 
706
- **Strategy-Enhanced Results:**
707
- ${strategyResults}
708
-
709
692
  **Implementation Roadmap:**
710
693
  ${generateImplementationRoadmap(actionPlan, mode)}
711
694
 
@@ -836,7 +819,7 @@ async function planRequiredTools(input, mode, consensus) {
836
819
  **Resource Requirements:** Time, expertise, and technological capabilities assessed`;
837
820
  }
838
821
  function formatCriticalThinkingPaths(paths) {
839
- return paths.map((path, i) => `**Step ${i + 1}:** ${path.substring(0, 200)}${path.length > 200 ? '...' : ''}`).join('\n');
822
+ return paths.map((path, i) => `**Step ${i + 1}:** ${path.split(' - Applied to')[0]} - Completed`).join('\n');
840
823
  }
841
824
  // Additional helper functions for remaining stages...
842
825
  function evaluateThinkingProcess(paths) {
@@ -1044,7 +1027,7 @@ function performContextualReasoning(input, context, mode) {
1044
1027
  return `Context-specific reasoning incorporates environmental factors and constraints`;
1045
1028
  }
1046
1029
  async function applyCriticalQuestion(input, mode, question, firstRoundResult) {
1047
- return `${question} - Applied to ${mode}: Systematic consideration reveals enhanced understanding based on ${firstRoundResult.substring(0, 100)}...`;
1030
+ return `${question} - Applied to ${mode}: Systematic consideration reveals targeted analysis approach`;
1048
1031
  }
1049
1032
  function checkConsistency(stage1, stage3) {
1050
1033
  return "High consistency - methodological alignment achieved";
@@ -1190,8 +1173,8 @@ function assessMethodologicalRigor(stage1Result) {
1190
1173
  * **PROMPTING STRATEGY EVALUATION:**
1191
1174
  * - Automatic evaluation of all strategies from modern-prompting.mdc
1192
1175
  * - Solution Level (0.00-0.99) + Efficiency Level (0.00-0.99) scoring
1193
- * - Strategies with total score ≥1.38 are automatically selected and applied
1194
- * - Combined strategy application for scores ≥1.38
1176
+ * - Strategies with total score ≥1.42 are automatically selected and applied
1177
+ * - Combined strategy application for scores ≥1.42
1195
1178
  *
1196
1179
  * **TOOL RECOMMENDATION ENGINE:**
1197
1180
  * - Intelligent analysis of input to recommend relevant pair programming tools
@@ -1237,7 +1220,7 @@ function assessMethodologicalRigor(stage1Result) {
1237
1220
  * **KEY FEATURES:**
1238
1221
  * - **SINGLE TOOL CALL:** Complete 6-stage deliberation without session management
1239
1222
  * - **Automatic Strategy Evaluation:** Analyzes all modern-prompting.mdc strategies
1240
- * - **0.00-1.00 Scoring System:** Solution + Efficiency levels with ≥1.38 threshold
1223
+ * - **0.00-1.00 Scoring System:** Solution + Efficiency levels with ≥1.42 threshold
1241
1224
  * - **Internal 2-Round Processing:** All deliberation happens within one tool invocation
1242
1225
  * - **Tool Recommendations:** Intelligent suggestions for pair programming workflows
1243
1226
  * - **Markdown Output:** Structured results with "tool use before re-deliberation" count
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nbiish/cognitive-tools-mcp",
3
- "version": "8.8.2",
3
+ "version": "8.8.4",
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",