@nbiish/cognitive-tools-mcp 2.0.5 → 2.0.7
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 +13 -2
- package/build/index.js +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ Copyright © 2025 ᓂᐲᔥ ᐙᐸᓂᒥᑮ-ᑭᓇᐙᐸᑭᓯ (Nbiish Waabanimi
|
|
|
34
34
|
|
|
35
35
|
This project is licensed under the [COMPREHENSIVE RESTRICTED USE LICENSE FOR INDIGENOUS CREATIONS WITH TRIBAL SOVEREIGNTY, DATA SOVEREIGNTY, AND WEALTH RECLAMATION PROTECTIONS](LICENSE).
|
|
36
36
|
|
|
37
|
-
ᑭᑫᓐᑖᓱᐎᓐ ᐋᐸᒋᒋᑲᓇᓐ - Agentic Cognitive Tools (v3.2.1 / pkg v2.0.
|
|
37
|
+
ᑭᑫᓐᑖᓱᐎᓐ ᐋᐸᒋᒋᑲᓇᓐ - Agentic Cognitive Tools (v3.2.1 / pkg v2.0.6): Implements Gikendaasowin v7 Guidelines. Enforces MANDATORY internal **Observe-Orient-Reason-Decide-Act (OOReDAct)** cycle: Starts with 'assess_and_orient', continues with 'think' deliberation before actions. Guides adaptive reasoning (**Chain-of-Thought (CoT)**, **Chain-of-Draft/Condensed Reasoning (CoD/CR)**, **Structured Chain-of-Thought (SCoT)**) & CodeAct preference. Returns Markdown.
|
|
38
38
|
|
|
39
39
|
Known as:
|
|
40
40
|
- Anishinaabemowin: [`@nbiish/gikendaasowin-aabajichiganan-mcp`](https://www.npmjs.com/package/@nbiish/gikendaasowin-aabajichiganan-mcp)
|
|
@@ -43,7 +43,8 @@ Known as:
|
|
|
43
43
|
Both packages are maintained in parallel and receive the same updates. You can use either package name in your projects - they provide identical functionality.
|
|
44
44
|
|
|
45
45
|
**Recent Updates:**
|
|
46
|
-
- v2.0.
|
|
46
|
+
- v2.0.6: Added `mental_sandbox` tool for logging internal cognitive simulations.
|
|
47
|
+
- v2.0.6: Removed prefixing from cognitive tool outputs to ensure verbatim logging.
|
|
47
48
|
- Resolved TypeScript compilation errors related to MCP SDK types and server configuration.
|
|
48
49
|
- Ensured successful build process.
|
|
49
50
|
|
|
@@ -258,6 +259,16 @@ npm run inspector
|
|
|
258
259
|
}
|
|
259
260
|
```
|
|
260
261
|
|
|
262
|
+
#### `mental_sandbox` Example
|
|
263
|
+
```json
|
|
264
|
+
{
|
|
265
|
+
"toolName": "mental_sandbox",
|
|
266
|
+
"arguments": {
|
|
267
|
+
"sandbox_content": "<sandbox>\n## Hypothesis Generation & Testing\n<hypotheses>\n1. Explain 'Debwewin' (Truth) directly using Seven Grandfather Teachings context.\n2. Compare 'Debwewin' to Western concepts of truth, highlighting differences.\n</hypotheses>\n<evaluation>\nHypothesis 1: High alignment with Anishinaabe worldview, promotes understanding within cultural context. Medium complexity.\nHypothesis 2: Risks misinterpretation or oversimplification, potentially reinforces colonial framing. High complexity.\n</evaluation>\n## Constraint Checklist\n<constraint_check>\n1. Cultural Sensitivity: Pass (Hypothesis 1 focuses on internal context).\n2. Accuracy: Pass (Based on teachings).\n3. Clarity for User: Pass (Needs careful wording).\n</constraint_check>\n## Confidence Score\n<confidence>High (for Hypothesis 1)</confidence>\n## Pre-computational Analysis\n<pre_computation>\nSimulating Hypothesis 1: Leads to explanation focused on honesty, integrity, speaking from the heart. Positive impact on understanding Anishinaabe values.\nSimulating Hypothesis 2: Leads to potentially complex, potentially problematic comparative analysis. Risk of inaccuracy.\n</pre_computation>\n</sandbox>"
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
```
|
|
271
|
+
|
|
261
272
|
#### `chain_of_thought` Example
|
|
262
273
|
```json
|
|
263
274
|
{
|
package/build/index.js
CHANGED
|
@@ -96,8 +96,8 @@ async ({ assessment_and_orientation_text }) => {
|
|
|
96
96
|
logToolResult(toolName, true, `Input received (length: ${assessment_and_orientation_text.length})`);
|
|
97
97
|
// Log the raw input string
|
|
98
98
|
console.error(`[${new Date().toISOString()}] [MCP Server] - ${toolName} Input String:\n${assessment_and_orientation_text}`);
|
|
99
|
-
// Return the input string directly
|
|
100
|
-
return { content: [{ type: "text", text:
|
|
99
|
+
// Return the input string directly
|
|
100
|
+
return { content: [{ type: "text", text: assessment_and_orientation_text }] };
|
|
101
101
|
}
|
|
102
102
|
catch (error) {
|
|
103
103
|
// Catch only unexpected runtime errors
|
|
@@ -131,8 +131,8 @@ async ({ thought }) => {
|
|
|
131
131
|
logToolResult(toolName, true, `Input received (length: ${thought.length})`);
|
|
132
132
|
// Log the raw input string
|
|
133
133
|
console.error(`[${new Date().toISOString()}] [MCP Server] - ${toolName} Input String:\n${thought}`);
|
|
134
|
-
// Return the input string directly
|
|
135
|
-
return { content: [{ type: "text", text:
|
|
134
|
+
// Return the input string directly
|
|
135
|
+
return { content: [{ type: "text", text: thought }] };
|
|
136
136
|
}
|
|
137
137
|
catch (error) {
|
|
138
138
|
// Catch only unexpected runtime errors
|
|
@@ -165,8 +165,8 @@ async ({ brief_thought }) => {
|
|
|
165
165
|
logToolResult(toolName, true, `Input received (length: ${brief_thought.length})`);
|
|
166
166
|
// Log the raw input string
|
|
167
167
|
console.error(`[${new Date().toISOString()}] [MCP Server] - ${toolName} Input String:\n${brief_thought}`);
|
|
168
|
-
// Return the input string directly
|
|
169
|
-
return { content: [{ type: "text", text:
|
|
168
|
+
// Return the input string directly
|
|
169
|
+
return { content: [{ type: "text", text: brief_thought }] };
|
|
170
170
|
}
|
|
171
171
|
catch (error) {
|
|
172
172
|
// Catch only unexpected runtime errors
|
|
@@ -198,8 +198,8 @@ async ({ sandbox_content }) => {
|
|
|
198
198
|
logToolResult(toolName, true, `Input received (length: ${sandbox_content.length})`);
|
|
199
199
|
// Log the raw input string
|
|
200
200
|
console.error(`[${new Date().toISOString()}] [MCP Server] - ${toolName} Input String:\n${sandbox_content}`);
|
|
201
|
-
// Return the input string directly
|
|
202
|
-
return { content: [{ type: "text", text:
|
|
201
|
+
// Return the input string directly
|
|
202
|
+
return { content: [{ type: "text", text: sandbox_content }] };
|
|
203
203
|
}
|
|
204
204
|
catch (error) {
|
|
205
205
|
// Catch only unexpected runtime errors
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nbiish/cognitive-tools-mcp",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
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",
|