@nbiish/cognitive-tools-mcp 8.7.0 → 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.
Files changed (3) hide show
  1. package/README.md +38 -1
  2. package/build/index.js +67 -124
  3. package/package.json +2 -2
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
 
@@ -36,6 +36,43 @@ Both packages are maintained in parallel and receive the same updates. You can u
36
36
  ◈──◆──◇─────────────────────────────────────────────────◇──◆──◈
37
37
  </div>
38
38
 
39
+ ## ᐴ REPOSITORY STRUCTURE ᔔ [MAZINAAZIWIN] ◈──◆──◇──◆──◈
40
+
41
+ Current repository structure (v8.8.3):
42
+
43
+ ```text
44
+ .
45
+ ├── .cursor/ # Development rules and style guides
46
+ │ ├── anishinaabe-cyberpunk-style.mdc
47
+ │ └── rules/
48
+ ├── .github/ # GitHub configuration
49
+ │ ├── copilot-instructions.md
50
+ │ └── FUNDING.yml
51
+ ├── build/ # Compiled JavaScript output
52
+ │ └── index.js
53
+ ├── new-flow/ # Flow documentation and images
54
+ │ ├── new-flow-images/
55
+ │ └── new-mcp-flow.md
56
+ ├── src/ # TypeScript source code
57
+ │ └── index.ts
58
+ ├── buymeacoffee-button.svg # Support button
59
+ ├── CONTRIBUTING.md # Contribution guidelines
60
+ ├── latest.md # Integration prompt (licensed)
61
+ ├── LICENSE # Comprehensive restricted use license
62
+ ├── modern-prompting.mdc # Prompting strategy definitions
63
+ ├── package-cognitive-tools.json # English package configuration
64
+ ├── package-gikendaasowin.json # Anishinaabemowin package configuration
65
+ ├── package.json # Main package configuration
66
+ ├── publish-both-packages.sh # Dual publishing script
67
+ ├── qr-stripe-donation.png # Donation QR code
68
+ ├── README.md # This file
69
+ └── tsconfig.json # TypeScript configuration
70
+ ```
71
+
72
+ <div align="center">
73
+ ◈──◆──◇─────────────────────────────────────────────────◇──◆──◈
74
+ </div>
75
+
39
76
  ## ᐴ GASHKITOONAN ᔔ [ENHANCED CAPABILITIES] ◈──◆──◇──◆──◈
40
77
 
41
78
  ### 🚀 Revolutionary 6-Stage Cognitive Framework
package/build/index.js CHANGED
@@ -1,33 +1,30 @@
1
1
  #!/usr/bin/env node
2
2
  /**
3
3
  * -----------------------------------------------------------------------------
4
- * Gikendaasowin Aabajichiganan - Revolutionary 2-Round Cognitive Deliberation MCP Server (v8.7.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.7.0 REVOLUTIONARY RELEASE - 2-Round Deliberation Framework:
12
- * - Complete refactor implementing 2-round deliberation process
13
- * - DYNAMIC prompting strategy evaluation with in-prompt 0.00-1.00 scoring system
14
- * - Session-based multi-phase deliberation with state management
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
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
20
18
  * -----------------------------------------------------------------------------
21
19
  */
22
20
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
23
21
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
24
22
  import { z } from "zod";
25
- const sessions = new Map();
26
23
  // --- Server Definition ---
27
24
  const serverInfo = {
28
25
  name: "gikendaasowin-aabajichiganan-mcp",
29
- version: "8.7.0",
30
- description: "Revolutionary 2-Round Cognitive Deliberation MCP server implementing the new 6-stage framework with 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
@@ -366,21 +363,15 @@ function generateToolRecommendations(input, mode, deliberationResults) {
366
363
  }
367
364
  return { toolCount: Math.min(8, toolCount), recommendations };
368
365
  }
369
- /**
370
- * Generates a unique session ID for multi-phase deliberation
371
- */
372
- function generateSessionId() {
373
- return `del_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
374
- }
375
366
  /**
376
367
  * Formats prompting strategy evaluation results for output
377
368
  * Shows dynamically evaluated strategies with real-time scoring
378
369
  */
379
370
  function formatPromptingStrategyResults(strategies) {
380
371
  if (strategies.length === 0) {
381
- 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**";
382
373
  }
383
- let result = `**SELECTED PROMPTING STRATEGIES (Score ≥1.38 - Dynamically Evaluated):**\n`;
374
+ let result = `**SELECTED PROMPTING STRATEGIES (Score ≥1.42 - Dynamically Evaluated):**\n`;
384
375
  strategies.forEach((strategy, index) => {
385
376
  result += `${index + 1}. **${strategy.name}** (Total: ${strategy.totalScore.toFixed(2)})\n`;
386
377
  result += ` - Solution Level: ${strategy.solutionLevel.toFixed(2)} (evaluated in-prompt for task fit)\n`;
@@ -394,11 +385,9 @@ function formatPromptingStrategyResults(strategies) {
394
385
  * Applies selected prompting strategies to enhance stage processing
395
386
  */
396
387
  function applySelectedStrategies(strategies, input, mode, stage) {
397
- let results = `**Applied Strategies for ${stage}:**\n`;
398
- strategies.forEach(strategy => {
399
- results += `- **${strategy.name}** (${strategy.totalScore.toFixed(2)}): Enhanced ${stage} processing\n`;
400
- });
401
- return results;
388
+ if (strategies.length === 0)
389
+ return "";
390
+ return `**Applied Strategies:** ${strategies.map(s => `${s.name} (${s.totalScore.toFixed(2)})`).join(', ')}\n`;
402
391
  }
403
392
  /**
404
393
  * Formats strategy application for display
@@ -428,23 +417,19 @@ function validateScientificConsistency(questionIdentification, hypothesisFormati
428
417
  }
429
418
  // --- Cognitive Deliberation Engine ---
430
419
  /**
431
- * Performs two-round cognitive deliberation using the new 6-Stage Framework
420
+ * Performs complete two-round cognitive deliberation in a single tool call
432
421
  * Round 1: Stages 1-2 (Scientific Investigation + Initial OOReD)
433
422
  * Round 2: Stages 3-6 (Critical Thinking + Reviews + Final Action)
423
+ * All happens internally without requiring multiple tool calls or session management
434
424
  */
435
- async function performCognitiveDeliberation(input, mode, context, sessionId) {
436
- // Check if this is a continuing session
437
- let session = sessionId ? sessions.get(sessionId) : null;
438
- if (!session) {
439
- // First round: Stages 1-2
440
- const firstRoundId = generateSessionId();
441
- // STAGE 1: SCIENTIFIC INVESTIGATION with prompting strategy evaluation
442
- const selectedStrategies = evaluatePromptingStrategies(input, mode, context);
443
- const stage1 = await performScientificInvestigation(input, mode, context, selectedStrategies);
444
- // STAGE 2: INITIAL OOReD
445
- const stage2 = await performInitialOOReD(input, mode, context, stage1, selectedStrategies);
446
- // Store first round results
447
- const firstRoundResults = `# 1ST ROUND OF DELIBERATION
425
+ async function performCognitiveDeliberation(input, mode, context) {
426
+ // ROUND 1: Stages 1-2 (Internal processing)
427
+ // STAGE 1: SCIENTIFIC INVESTIGATION with prompting strategy evaluation
428
+ const selectedStrategies = evaluatePromptingStrategies(input, mode, context);
429
+ const stage1 = await performScientificInvestigation(input, mode, context, selectedStrategies);
430
+ // STAGE 2: INITIAL OOReD
431
+ const stage2 = await performInitialOOReD(input, mode, context, stage1, selectedStrategies);
432
+ const firstRoundResults = `# 1ST ROUND OF DELIBERATION
448
433
 
449
434
  ## PROMPTING STRATEGY EVALUATION
450
435
  ${formatPromptingStrategyResults(selectedStrategies)}
@@ -457,47 +442,20 @@ ${stage2}
457
442
 
458
443
  ---
459
444
  *First Round Complete: Scientific Investigation + Initial OOReD*`;
460
- // Create session for second round
461
- session = {
462
- id: firstRoundId,
463
- input,
464
- mode,
465
- context,
466
- phase: 'first-round',
467
- firstRoundResults,
468
- createdAt: new Date()
469
- };
470
- sessions.set(firstRoundId, session);
471
- // Generate tool recommendations
472
- const toolRecs = generateToolRecommendations(input, mode, firstRoundResults);
473
- return `${firstRoundResults}
474
-
475
- ## NEXT STEPS
476
- To continue with the second round of deliberation (Stages 3-6), call the deliberate tool again with:
477
- - session_id: "${firstRoundId}"
478
- - Same input and parameters
479
-
480
- **tool use before re-deliberation: ${toolRecs.toolCount}**
481
-
482
- ### RECOMMENDED TOOLS BEFORE SECOND ROUND:
483
- ${toolRecs.recommendations.join('\n')}`;
484
- }
485
- else {
486
- // Second round: Stages 3-6
487
- const selectedStrategies = evaluatePromptingStrategies(input, mode, context);
488
- // STAGE 3: CRITICAL THINKING + PRE-ACT
489
- const stage3 = await performCriticalThinkingPreAct(input, mode, context, session.firstRoundResults, selectedStrategies);
490
- // STAGE 4: SCIENTIFIC REVIEW
491
- const stage4 = await performScientificReview(input, mode, context, session.firstRoundResults, stage3, selectedStrategies);
492
- // STAGE 5: OOReD REVIEW
493
- const stage5 = await performOOReViewReview(input, mode, context, session.firstRoundResults, stage4, selectedStrategies);
494
- // STAGE 6: FINAL ACT
495
- const stage6 = await performFinalAct(input, mode, context, stage3, stage5, selectedStrategies);
496
- // Clean up session
497
- sessions.delete(sessionId);
498
- // Generate final tool recommendations
499
- const finalToolRecs = generateToolRecommendations(input, mode, `${stage3}\n${stage5}\n${stage6}`);
500
- const secondRoundResults = `# 2ND ROUND OF DELIBERATION
445
+ // ROUND 2: Stages 3-6 (Internal processing continues)
446
+ // Use same strategies for consistency (input/mode/context unchanged)
447
+ const secondRoundStrategies = selectedStrategies;
448
+ // STAGE 3: CRITICAL THINKING + PRE-ACT
449
+ const stage3 = await performCriticalThinkingPreAct(input, mode, context, firstRoundResults, secondRoundStrategies);
450
+ // STAGE 4: SCIENTIFIC REVIEW
451
+ const stage4 = await performScientificReview(input, mode, context, firstRoundResults, stage3, secondRoundStrategies);
452
+ // STAGE 5: OOReD REVIEW
453
+ const stage5 = await performOOReViewReview(input, mode, context, firstRoundResults, stage4, secondRoundStrategies);
454
+ // STAGE 6: FINAL ACT
455
+ const stage6 = await performFinalAct(input, mode, context, stage3, stage5, secondRoundStrategies);
456
+ // Generate final tool recommendations
457
+ const finalToolRecs = generateToolRecommendations(input, mode, `${stage3}\n${stage5}\n${stage6}`);
458
+ const secondRoundResults = `# 2ND ROUND OF DELIBERATION
501
459
 
502
460
  ## STAGE 3: CRITICAL THINKING & PRE-ACTION PLANNING
503
461
  ${stage3}
@@ -513,7 +471,8 @@ ${stage6}
513
471
 
514
472
  ---
515
473
  *Second Round Complete: Critical Thinking + Reviews + Final Action*`;
516
- return `${session.firstRoundResults}
474
+ // Return complete single-tool-call result
475
+ return `${firstRoundResults}
517
476
 
518
477
  ${secondRoundResults}
519
478
 
@@ -530,8 +489,7 @@ ${finalToolRecs.recommendations.join('\n')}
530
489
  ---
531
490
  *Enhanced 2-Round Cognitive Framework: Scientific Investigation + OOReD + Critical Thinking*
532
491
  *Processing Mode: ${mode} | Total Strategies Applied: ${selectedStrategies.length}*
533
- *Session: ${sessionId} | Framework Version: 8.0.0*`;
534
- }
492
+ *Framework Version: 8.8.3 | Complete Single-Tool-Call Processing*`;
535
493
  }
536
494
  // --- 6-Stage Cognitive Processing Functions with Integrated Prompting Strategies ---
537
495
  /**
@@ -639,9 +597,6 @@ ${consensusAnalysis}
639
597
  **Pre-Action Planning:**
640
598
  ${toolPlanning}
641
599
 
642
- **Strategy-Enhanced Results:**
643
- ${strategyResults}
644
-
645
600
  **Meta-Cognitive Assessment:**
646
601
  - Thinking process evaluation: ${evaluateThinkingProcess(criticalThinkingPaths)}
647
602
  - Assumption validation: ${validateAssumptions(criticalThinkingPaths)}
@@ -674,9 +629,6 @@ ${validationPaths}
674
629
  **Cross-Stage Consistency Analysis:**
675
630
  ${consistencyCheck}
676
631
 
677
- **Strategy-Enhanced Results:**
678
- ${strategyResults}
679
-
680
632
  **Enhanced Validation Results:**
681
633
  - Hypothesis strength: ${assessHypothesisStrength(firstRoundResult)}
682
634
  - Evidence quality: ${assessEvidenceQuality(firstRoundResult, stage3Result)}
@@ -708,9 +660,6 @@ ${expertPerspectives}
708
660
  **Integration Analysis:**
709
661
  ${integrateStageFindings(firstRoundResult, stage4Result)}
710
662
 
711
- **Strategy-Enhanced Results:**
712
- ${strategyResults}
713
-
714
663
  **Refinement Recommendations:**
715
664
  ${generateRefinementRecommendations(refinementPaths, expertPerspectives)}`;
716
665
  }
@@ -740,9 +689,6 @@ ${actionPlan}
740
689
  **Quality Assurance Metrics:**
741
690
  ${qualityMetrics}
742
691
 
743
- **Strategy-Enhanced Results:**
744
- ${strategyResults}
745
-
746
692
  **Implementation Roadmap:**
747
693
  ${generateImplementationRoadmap(actionPlan, mode)}
748
694
 
@@ -873,7 +819,7 @@ async function planRequiredTools(input, mode, consensus) {
873
819
  **Resource Requirements:** Time, expertise, and technological capabilities assessed`;
874
820
  }
875
821
  function formatCriticalThinkingPaths(paths) {
876
- 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');
877
823
  }
878
824
  // Additional helper functions for remaining stages...
879
825
  function evaluateThinkingProcess(paths) {
@@ -1081,7 +1027,7 @@ function performContextualReasoning(input, context, mode) {
1081
1027
  return `Context-specific reasoning incorporates environmental factors and constraints`;
1082
1028
  }
1083
1029
  async function applyCriticalQuestion(input, mode, question, firstRoundResult) {
1084
- 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`;
1085
1031
  }
1086
1032
  function checkConsistency(stage1, stage3) {
1087
1033
  return "High consistency - methodological alignment achieved";
@@ -1227,8 +1173,8 @@ function assessMethodologicalRigor(stage1Result) {
1227
1173
  * **PROMPTING STRATEGY EVALUATION:**
1228
1174
  * - Automatic evaluation of all strategies from modern-prompting.mdc
1229
1175
  * - Solution Level (0.00-0.99) + Efficiency Level (0.00-0.99) scoring
1230
- * - Strategies with total score ≥1.38 are automatically selected and applied
1231
- * - 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
1232
1178
  *
1233
1179
  * **TOOL RECOMMENDATION ENGINE:**
1234
1180
  * - Intelligent analysis of input to recommend relevant pair programming tools
@@ -1261,25 +1207,26 @@ function assessMethodologicalRigor(stage1Result) {
1261
1207
  * - Implementation Compliance: 100% specification adherence
1262
1208
  */
1263
1209
  /**
1264
- * Tool: deliberate (Revolutionary 2-Round Cognitive Processing Engine)
1210
+ * Tool: deliberate (Revolutionary Single-Tool-Call 2-Round Cognitive Processing Engine)
1265
1211
  *
1266
- * **REVOLUTIONARY 2-ROUND FRAMEWORK:** This tool implements the most advanced 2-round
1267
- * cognitive deliberation system available, combining Scientific Investigation, OOReD
1268
- * analysis, and Critical Thinking frameworks with automatic prompting strategy evaluation.
1212
+ * **REVOLUTIONARY SINGLE-CALL FRAMEWORK:** This tool implements the most advanced 2-round
1213
+ * cognitive deliberation system available in ONE tool call, combining Scientific Investigation,
1214
+ * OOReD analysis, and Critical Thinking frameworks with automatic prompting strategy evaluation.
1269
1215
  *
1270
- * **2-ROUND PROCESSING PIPELINE:**
1216
+ * **2-ROUND PROCESSING PIPELINE (SINGLE CALL):**
1271
1217
  * **Round 1 (Foundation):** Stages 1-2 - Scientific Investigation + Initial OOReD
1272
1218
  * **Round 2 (Advanced):** Stages 3-6 - Critical Thinking + Reviews + Final Action
1273
1219
  *
1274
1220
  * **KEY FEATURES:**
1221
+ * - **SINGLE TOOL CALL:** Complete 6-stage deliberation without session management
1275
1222
  * - **Automatic Strategy Evaluation:** Analyzes all modern-prompting.mdc strategies
1276
- * - **0.00-1.00 Scoring System:** Solution + Efficiency levels with ≥1.38 threshold
1277
- * - **Session Management:** Continue complex deliberations across multiple calls
1223
+ * - **0.00-1.00 Scoring System:** Solution + Efficiency levels with ≥1.42 threshold
1224
+ * - **Internal 2-Round Processing:** All deliberation happens within one tool invocation
1278
1225
  * - **Tool Recommendations:** Intelligent suggestions for pair programming workflows
1279
- * - **Markdown Output:** Structured results with tool usage guidance
1226
+ * - **Markdown Output:** Structured results with "tool use before re-deliberation" count
1280
1227
  *
1281
1228
  * **📥 INPUT:** Complex problems requiring systematic 2-round cognitive analysis
1282
- * **📤 OUTPUT:** Structured analysis with tool recommendations and session continuity
1229
+ * **📤 OUTPUT:** Complete structured analysis with tool recommendations in single response
1283
1230
  *
1284
1231
  * **🎯 OPTIMAL USE CASES:**
1285
1232
  * - Complex development tasks requiring systematic analysis
@@ -1289,8 +1236,8 @@ function assessMethodologicalRigor(stage1Result) {
1289
1236
  * - Research and development requiring systematic investigation
1290
1237
  *
1291
1238
  * **⚡ REVOLUTIONARY CAPABILITIES:**
1292
- * - 2-round deliberation with automatic strategy selection
1293
- * - Session-based state management for complex workflows
1239
+ * - Single-call 2-round deliberation with automatic strategy selection
1240
+ * - Complete 6-stage processing without external session management
1294
1241
  * - Tool usage recommendations with specific count guidance
1295
1242
  * - Cross-round validation with consistency checking
1296
1243
  * - Comprehensive action planning with implementation roadmaps
@@ -1306,18 +1253,14 @@ server.tool("deliberate", {
1306
1253
  context: z
1307
1254
  .string()
1308
1255
  .optional()
1309
- .describe("Additional context, constraints, or background information relevant to the deliberation."),
1310
- session_id: z
1311
- .string()
1312
- .optional()
1313
- .describe("Session ID for continuing multi-phase deliberation. Use the ID returned from first round to continue with second round.")
1314
- }, async ({ input, mode, context, session_id }) => {
1256
+ .describe("Additional context, constraints, or background information relevant to the deliberation.")
1257
+ }, async ({ input, mode, context }) => {
1315
1258
  const toolName = 'deliberate';
1316
- logToolCall(toolName, `Mode: ${mode}, Input length: ${input.length}, Session: ${session_id || 'new'}`);
1259
+ logToolCall(toolName, `Mode: ${mode}, Input length: ${input.length}`);
1317
1260
  try {
1318
- // Two-round cognitive deliberation processing
1319
- const deliberationResult = await performCognitiveDeliberation(input, mode, context, session_id);
1320
- logToolResult(toolName, true, `Mode: ${mode}, Deliberation completed`);
1261
+ // Single tool call that performs complete 2-round cognitive deliberation
1262
+ const deliberationResult = await performCognitiveDeliberation(input, mode, context);
1263
+ logToolResult(toolName, true, `Mode: ${mode}, Complete 2-round deliberation finished`);
1321
1264
  return { content: [{ type: "text", text: deliberationResult }] };
1322
1265
  }
1323
1266
  catch (error) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nbiish/cognitive-tools-mcp",
3
- "version": "8.7.0",
4
- "description": "Revolutionary 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).",
3
+ "version": "8.8.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",
7
7
  "bin": {