@nbiish/cognitive-tools-mcp 0.9.10 → 0.9.11

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 (2) hide show
  1. package/build/index.js +9 -28
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * -----------------------------------------------------------------------------
4
4
  * Gikendaasowin Aabajichiganan - Core Cognitive Tools MCP Server
5
5
  *
6
- * Version: 0.9.8
6
+ * Version: 0.9.10
7
7
  *
8
8
  * Description: Provides a suite of cognitive tools for an AI Pair Programmer,
9
9
  * enabling structured reasoning, planning, analysis, and iterative
@@ -36,12 +36,12 @@
36
36
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
37
37
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
38
38
  import { z } from "zod";
39
- export const version = "0.9.8";
39
+ export const version = "0.9.10";
40
40
  // --- Server Definition ---
41
41
  const server = new McpServer({
42
42
  name: "gikendaasowin-aabajichiganan-mcp",
43
43
  version: version,
44
- description: "ᑭᑫᓐᑖᓱᐎᓐ ᐋᐸᒋᒋᑲᓇᓐ - Core Cognitive Tools Suite v0.9.8: Enables structured, iterative reasoning (Chain of Thought/Draft), planning, and analysis for AI agents, focusing on the cognitive loop. MANDATORY `think` step integrates results."
44
+ description: "ᑭᑫᓐᑖᓱᐎᓐ ᐋᐸᒋᒋᑲᓇᓐ - Core Cognitive Tools Suite v0.9.10: Enables structured, iterative reasoning (Chain of Thought/Draft), planning, and analysis for AI agents, focusing on the cognitive loop. MANDATORY `think` step integrates results."
45
45
  });
46
46
  // --- Logging Helpers ---
47
47
  /**
@@ -78,7 +78,7 @@ function logToolError(toolName, error) {
78
78
  return {
79
79
  content: [{
80
80
  type: "text",
81
- text: `Error executing tool '${toolName}': ${errorMessage}. Please analyze this error in your next 'think' step and adjust your plan.`
81
+ text: `Error executing tool '${toolName}': ${errorMessage}.`
82
82
  }]
83
83
  };
84
84
  }
@@ -227,7 +227,7 @@ server.tool("gauge_confidence", "Meta-Cognitive Checkpoint. Guides *internal sta
227
227
  }
228
228
  const level = match[1];
229
229
  const emphasis = (level.toLowerCase() !== 'high') ? "CRITICAL: Analyze implications of non-High confidence." : "Proceed with analysis.";
230
- const resultText = `Confidence Gauge Completed. Stated Level: ${level}. Assessment Text Logged. MANDATORY: Analyze this confidence level and justification in your next 'think' step. ${emphasis}`;
230
+ const resultText = `Confidence Gauge Completed. Stated Level: ${level}. Assessment Text Logged.`;
231
231
  logToolResult(toolName, true, `Level: ${level}`);
232
232
  console.error(`[${new Date().toISOString()}] [MCP Server] - ${toolName} Confidence Details:\n${assessment_and_confidence}`);
233
233
  return { content: [{ type: "text", text: resultText }] };
@@ -256,7 +256,7 @@ server.tool("chain_of_thought", "Guides *internal generation* of **detailed, ste
256
256
  if (!generated_cot_text.match(/step|phase|:\s|^\d+[\.\)]/im)) {
257
257
  throw new Error('Invalid CoT format: Must contain clear reasoning steps (numbered, labeled as steps/phases, or with clear delineation).');
258
258
  }
259
- const resultText = `Chain of Thought Completed. Problem: "${problem_statement.substring(0, 100)}..."\nReasoning Steps Logged. MANDATORY: Analyze this reasoning chain in your next 'think' step to extract insights, identify potential flaws/gaps, and plan concrete next actions.`;
259
+ const resultText = `Chain of Thought Completed. Problem: "${problem_statement.substring(0, 100)}..."\nReasoning Steps Logged.`;
260
260
  logToolResult(toolName, true, `Problem: ${problem_statement.substring(0, 50)}...`);
261
261
  console.error(`[${new Date().toISOString()}] [MCP Server] - ${toolName} Details:\nProblem: ${problem_statement}\nReasoning:\n${generated_cot_text}`);
262
262
  return { content: [{ type: "text", text: resultText }] };
@@ -289,7 +289,7 @@ server.tool("plan_and_solve", "Guides *internal generation* of a **structured pl
289
289
  if (!generated_plan_text.toLowerCase().includes('risk') && !generated_plan_text.toLowerCase().includes('challenge')) {
290
290
  throw new Error('Invalid plan format: Must include risk/challenge assessment.');
291
291
  }
292
- const resultText = `Plan Generation Completed. Task: "${task_objective.substring(0, 100)}..."\nPlan Structure Logged. MANDATORY: Analyze this plan in your next 'think' step to verify feasibility, refine if needed, and confirm the first concrete action step.`;
292
+ const resultText = `Plan Generation Completed. Task: "${task_objective.substring(0, 100)}..."\nPlan Structure Logged.`;
293
293
  logToolResult(toolName, true, `Task: ${task_objective.substring(0, 50)}...`);
294
294
  console.error(`[${new Date().toISOString()}] [MCP Server] - ${toolName} Details:\nTask: ${task_objective}\nPlan:\n${generated_plan_text}`);
295
295
  return { content: [{ type: "text", text: resultText }] };
@@ -319,26 +319,7 @@ server.tool("chain_of_draft", "Signals that one or more **internal drafts** have
319
319
  throw new Error('Invalid draft_description: Must provide a description.');
320
320
  }
321
321
  // Format response in markdown with CoD guidance and next tool recommendation
322
- const resultText = `### Chain of Draft Signal Received
323
- #### Draft Description
324
- ${draft_description}
325
-
326
- #### Chain of Draft (CoD) Reminders
327
- - Keep steps concise (< 5 words)
328
- - Use equations/symbols when possible
329
- - Focus on essential information
330
- - End drafts with #### + conclusion
331
-
332
- #### Next Steps
333
- 1. MANDATORY: Use \`think\` tool to analyze this draft:
334
- - Evaluate correctness and completeness
335
- - Check alignment with goals
336
- - Plan concrete next actions
337
- 2. Consider using \`reflection\` tool if deeper critique needed
338
- 3. Use \`synthesize_prior_reasoning\` if context consolidation helpful
339
-
340
- #### Status
341
- Draft(s) ready for analysis. Proceed with mandatory \`think\` step.`;
322
+ const resultText = `Internal draft(s) ready for analysis: "${draft_description}".`;
342
323
  logToolResult(toolName, true);
343
324
  return { content: [{ type: "text", text: resultText }] };
344
325
  }
@@ -441,7 +422,7 @@ async function main() {
441
422
  await server.connect(transport);
442
423
  const border = '-----------------------------------------------------';
443
424
  console.error(border);
444
- console.error(` ᑭᑫᓐᑖᓱᐎᓐ ᐋᐸᒋᒋᑲᓇᓐ - Core Cognitive Tools Suite v0.9.8: Enables structured, iterative reasoning (Chain of Thought/Draft), planning, and analysis for AI agents, focusing on the cognitive loop. MANDATORY \`think\` step integrates results.`);
425
+ console.error(` ᑭᑫᓐᑖᓱᐎᓐ ᐋᐸᒋᒋᑲᓇᓐ - Core Cognitive Tools Suite v0.9.10: Enables structured, iterative reasoning (Chain of Thought/Draft), planning, and analysis for AI agents, focusing on the cognitive loop. MANDATORY \`think\` step integrates results.`);
445
426
  console.error(` Version: ${version}`);
446
427
  console.error(' Status: Running on stdio, awaiting MCP requests...');
447
428
  console.error(border);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nbiish/cognitive-tools-mcp",
3
- "version": "0.9.10",
3
+ "version": "0.9.11",
4
4
  "description": "Cognitive Tools MCP: SOTA reasoning suite focused on iterative refinement and tool integration for AI Pair Programming. Enables structured, iterative problem-solving through Chain of Draft methodology, with tools for draft generation, analysis, and refinement. Features advanced deliberation (`think`), rapid checks (`quick_think`), mandatory complexity assessment & thought mode selection (`assess_cuc_n_mode`), context synthesis, confidence gauging, proactive planning, explicit reasoning (CoT), and reflection with content return. Alternative package name for gikendaasowin-aabajichiganan-mcp.",
5
5
  "private": false,
6
6
  "type": "module",