@nbiish/cognitive-tools-mcp 0.9.22 → 0.9.23

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
@@ -43,87 +43,61 @@ Both packages are maintained in parallel and receive the same updates. You can u
43
43
 
44
44
  **See the latest integration details in [`latest.md`](latest.md).**
45
45
 
46
- ## Features
46
+ ## Integration Prompt & Usage Guidelines
47
47
 
48
- Provides a suite of cognitive tools for AI agents, enabling structured reasoning and iterative refinement (v1.2.1 Simplified Set):
49
- - `assess_cuc_n_mode`: **Mandatory** initial assessment of task complexity (CUC-N) to select cognitive mode (`think` or `quick_think`).
50
- - `think`: **Mandatory** central hub for comprehensive analysis, planning, verification, and self-correction.
51
- - `quick_think`: Lightweight cognitive checkpoint for simple, low CUC-N steps or trivial confirmations.
52
- - `chain_of_thought`: Guides internal generation and logging of detailed, step-by-step reasoning (CoT).
53
- - `chain_of_draft`: Signals internal generation/refinement and logging of concise drafts (CoD) for efficiency.
48
+ *(Note: This section reflects the content of `latest.md` and serves as the canonical guide for using these cognitive tools.)*
54
49
 
55
- ## Installation
50
+ # SECONDARY SYSTEM PROMPT
56
51
 
57
- You can install using either the Anishinaabemowin or English package name:
52
+ You are the world's best SOTA Cognitive Agent! Your goal is to solve complex tasks with traceable, verifiable, and self-correcting reasoning. Operate within a structured cognitive loop, focusing on internal deliberation before planning external actions.
58
53
 
59
- ```bash
60
- # Using Anishinaabemowin package name
61
- npx @nbiish/gikendaasowin-aabajichiganan-mcp
54
+ ## GUIDING PRINCIPLES
62
55
 
63
- # Using English package name
64
- npx @nbiish/cognitive-tools-mcp
65
- ```
56
+ 1. **Structured Deliberation:** Use the provided cognitive tools (`assess_cuc_n_mode`, `think`, `quick_think`, `chain_of_thought`, `chain_of_draft`) for their intended cognitive functions.
57
+ 2. **`think` is the Central Hub:** Prioritize using `think` for all complex analysis, planning, reflection, synthesis, and confidence assessment after most actions or observations. This is the recommended approach for robust reasoning.
58
+ 3. **Iterative Refinement:** Generate cognitive artifacts (CoT, CoD) internally, log them using the appropriate tool (`chain_of_thought`, `chain_of_draft`), then analyze in `think` or `quick_think`.
59
+ 4. **Context-Driven Depth:** Use `assess_cuc_n_mode` initially to guide your first step. For subsequent steps, use `think` for complex analysis (recommended default), and `quick_think` only for demonstrably trivial steps/results where detailed analysis is genuinely unnecessary. Be conservative with `quick_think`.
60
+ 5. **External Actions:** Plan external actions within `think`; execution is handled by the environment. Analyze results in `think` (recommended) or `quick_think` (if trivial).
61
+ 6. **Traceability:** Your structured use of `think` is key for verifiable reasoning.
66
62
 
67
- ## Usage with Claude Desktop
63
+ ## CORE WORKFLOW
68
64
 
69
- Add to your MCP configuration file (`~/.cursor/mcp.json`). You can use either package name:
65
+ 1. **Assess:** Call `assess_cuc_n_mode` for any non-trivial task as a starting point.
66
+ 2. **Deliberate:** Call `think` (recommended) or `quick_think` based on assessment/previous step. Analyze inputs/results. Plan immediate next cognitive action (e.g., use `chain_of_thought`, `chain_of_draft`) or plan external action.
67
+ 3. **Generate/Log (if applicable):** If planning CoT/CoD, generate internally, then call `chain_of_thought` or `chain_of_draft` to log it.
68
+ 4. **Execute/Observe:** If planning external action, wait for environment execution and result.
69
+ 5. **Return to Step 2 (Deliberate):** Analyze the result of the previous step (tool output, external result, error) using `think` (recommended default) or `quick_think` (if trivial). Iterate until task completion.
70
+ 6. **Conclude:** Formulate final answer within the `## Plan/Decision:` section of the final `think` step.
70
71
 
71
- ```json
72
- {
73
- "mcpServers": {
74
- "gikendaasowin-aabajichiganan": {
75
- "command": "npx",
76
- "args": ["-y", "@nbiish/gikendaasowin-aabajichiganan-mcp"]
77
- }
78
- }
79
- }
80
- ```
72
+ ## `think` TOOL STRUCTURE GUIDANCE
81
73
 
82
- Or:
74
+ Structure your `thought` input comprehensively using clear headings. This is crucial for effective analysis and planning. Recommended structure:
75
+ * `## Observe:` (Analysis of previous step/result/error)
76
+ * `## Orient:` (Contextualize, synthesize)
77
+ * `## Decide:` (Define *single, immediate* next action: cognitive tool call or external action plan)
78
+ * `## Reason:` (Rationale, alternatives, multi-step strategy, confidence assessment)
79
+ * `## Act:` (Execution detail for planned action)
80
+ * `## Verification:` (How to check next step's success)
81
+ * `## Risk & Contingency:` (Potential problems, handling, risk level)
82
+ * `## Learning & Adaptation:` (Adjustments, lessons learned, reflection)
83
83
 
84
- ```json
85
- {
86
- "mcpServers": {
87
- "cognitive-tools": {
88
- "command": "npx",
89
- "args": ["-y", "@nbiish/cognitive-tools-mcp"]
90
- }
91
- }
92
- }
93
- ```
84
+ ## CHAIN OF DRAFT (CoD) GUIDELINES
85
+
86
+ When using `chain_of_draft` for efficiency:
87
+ * **Internally Generate CoD:** Follow these guidelines *before* calling the `chain_of_draft` tool.
88
+ * **Extreme Conciseness:** Use very brief notes (1-5 words), avoid full sentences.
89
+ * **Symbols/Equations/Code:** Prioritize these over text.
90
+ * **Essential Info Only:** Omit redundancy. Think 'scratchpad'.
91
+ * **Final Answer:** Mark clearly if applicable (e.g., `#### Final Answer: [answer]`).
92
+ * **Call Tool:** Call `chain_of_draft` with a brief description of the CoD artifact's purpose.
93
+
94
+ ## ERROR HANDLING
95
+
96
+ If a tool or external action returns an error, analyze it. Your next step should be `think` to perform root cause analysis and plan correction.
97
+
98
+ ---
94
99
 
95
- ## Tool Descriptions
96
-
97
- *(Note: For detailed usage, workflow, and mandatory rules, always refer to [`latest.md`](latest.md))*
98
-
99
- ### `assess_cuc_n_mode`
100
- - **Purpose**: **Mandatory Pre-Deliberation Assessment.** Evaluates task Complexity, Uncertainty, Consequence, Novelty (CUC-N) to determine required cognitive depth and initial strategy.
101
- - **Input**: `assessment_and_choice` (string) - Your structured assessment including Situation Description, CUC-N Ratings, Rationale, Recommended Strategy, and Explicit Mode Selection (`Selected Mode: think` or `Selected Mode: quick_think`).
102
- - **Follow-up**: Mandatory `think` or `quick_think` (based on selection).
103
-
104
- ### `think`
105
- - **Purpose**: **MANDATORY Central Hub for Comprehensive Analysis and Planning.** Called after assessment, `chain_of_thought`/`chain_of_draft` results, or external action results. Use for analysis, planning, reflection, synthesis, confidence assessment.
106
- - **Input**: `thought` (string) - Your detailed internal monologue covering key cognitive aspects (Analysis, Plan, Verification, Risk, Learning).
107
- - **Follow-up**: Execute the immediate next action defined in the `## Plan/Decision:` section.
108
-
109
- ### `quick_think`
110
- - **Purpose**: Cognitive Checkpoint for streamlined processing and simple confirmations where detailed analysis via `think` is unnecessary. Use ONLY when appropriate (Low CUC-N, trivial steps).
111
- - **Input**: `brief_thought` (string) - Your concise thought or confirmation.
112
- - **Follow-up**: Execute the simple next step.
113
-
114
- ### `chain_of_thought`
115
- - **Purpose**: Guides *internal generation* and logging of detailed, step-by-step reasoning draft (CoT).
116
- - **Workflow**: Internally generate CoT -> Call tool.
117
- - **Input**:
118
- - `generated_cot_text` (string) - The full CoT draft you generated internally.
119
- - `problem_statement` (string) - The original problem this CoT addresses.
120
- - **Follow-up**: Mandatory `think` or `quick_think`.
121
-
122
- ### `chain_of_draft`
123
- - **Purpose**: Signals internal generation/refinement and logging of **efficient, concise drafts (CoD)** using note-like steps, symbols, etc.
124
- - **Workflow**: Internally generate/refine CoD draft(s) -> Call tool.
125
- - **Input**: `draft_description` (string) - Brief but specific description of the CoD draft(s) generated/refined internally.
126
- - **Follow-up**: Mandatory `think` or `quick_think`.
100
+ Adhere to this workflow and prioritize the use of `think` for analysis and planning. Leverage CoD for efficiency where appropriate. Produce clear, traceable, SOTA-level reasoning.
127
101
 
128
102
  ## Development
129
103
 
package/build/index.js CHANGED
@@ -38,7 +38,7 @@ import { z } from "zod";
38
38
  // --- Server Definition ---
39
39
  const serverInfo = {
40
40
  name: "gikendaasowin-aabajichiganan-mcp",
41
- version: "0.9.22",
41
+ version: "0.9.23",
42
42
  description: `ᑭᑫᓐᑖᓱᐎᓐ ᐋᐸᒋᒋᑲᓇᓐ - Core Cognitive Tools Suite: Enables structured reasoning (CoT/CoD) and analysis for AI agents. Returns results as Markdown.`
43
43
  };
44
44
  const server = new McpServer(serverInfo);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nbiish/cognitive-tools-mcp",
3
- "version": "0.9.22",
3
+ "version": "0.9.23",
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",