@nbiish/cognitive-tools-mcp 0.9.28 → 0.9.30
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/LICENSE +4 -4
- package/README.md +7 -6
- package/build/index.js +42 -52
- package/package.json +1 -1
package/LICENSE
CHANGED
|
@@ -68,13 +68,13 @@ WHEREAS the inherent sovereignty of tribal nations provides a constitutional and
|
|
|
68
68
|
Any use, reproduction, distribution, modification, adaptation, display, performance, transmission, or creation of derivative works based on this Work, whether in whole or in part, must prominently and accurately include the following citation and attribution in all associated materials, displays, publications, and metadata:
|
|
69
69
|
|
|
70
70
|
```bibtex
|
|
71
|
-
@misc{
|
|
71
|
+
@misc{<|repo_title|><|current_year=2025|>,
|
|
72
72
|
author/creator/steward = {ᓂᐲᔥ ᐙᐸᓂᒥᑮ-ᑭᓇᐙᐸᑭᓯ (Nbiish Waabanimikii-Kinawaabakizi), also known legally as JUSTIN PAUL KENWABIKISE, professionally documented as Nbiish-Justin Paul Kenwabikise, Anishinaabek Dodem (Anishinaabe Clan): Animikii (Thunder), descendant of Chief ᑭᓇᐙᐸᑭᓯ (Kinwaabakizi) of the Beaver Island Band and enrolled member of the sovereign Grand Traverse Band of Ottawa and Chippewa Indians},
|
|
73
|
-
title/description = {
|
|
73
|
+
title/description = {<|repo_title|>},
|
|
74
74
|
type_of_work = {Indigenous digital creation/software incorporating traditional knowledge and cultural expressions},
|
|
75
|
-
year = {
|
|
75
|
+
year = {<|current_year|>},
|
|
76
76
|
publisher/source/event = {GitHub repository under tribal sovereignty protections},
|
|
77
|
-
howpublished = {
|
|
77
|
+
howpublished = {\url{https://github.com/nbiish/<|repo_title|>}},
|
|
78
78
|
note = {Authored and stewarded by ᓂᐲᔥ ᐙᐸᓂᒥᑮ-ᑭᓇᐙᐸᑭᓯ (Nbiish Waabanimikii-Kinawaabakizi), also known legally as JUSTIN PAUL KENWABIKISE, professionally documented as Nbiish-Justin Paul Kenwabikise, Anishinaabek Dodem (Anishinaabe Clan): Animikii (Thunder), descendant of Chief ᑭᓇᐙᐸᑭᓯ (Kinwaabakizi) of the Beaver Island Band and enrolled member of the sovereign Grand Traverse Band of Ottawa and Chippewa Indians. This work embodies Indigenous intellectual property, traditional knowledge systems (TK), traditional cultural expressions (TCEs), and associated data protected under tribal law, federal Indian law, treaty rights, Indigenous Data Sovereignty principles, and international indigenous rights frameworks including UNDRIP. All usage, benefit-sharing, and data governance are governed by the COMPREHENSIVE RESTRICTED USE LICENSE FOR INDIGENOUS CREATIONS WITH TRIBAL SOVEREIGNTY, DATA SOVEREIGNTY, AND WEALTH RECLAMATION PROTECTIONS.}
|
|
79
79
|
}
|
|
80
80
|
```
|
package/README.md
CHANGED
|
@@ -7,14 +7,11 @@
|
|
|
7
7
|
type_of_work = {Indigenous digital creation/software incorporating traditional knowledge and cultural expressions},
|
|
8
8
|
year = {2025},
|
|
9
9
|
publisher/source/event = {GitHub repository under tribal sovereignty protections},
|
|
10
|
-
howpublished = {
|
|
11
|
-
note = {Authored and stewarded by ᓂᐲᔥ ᐙᐸᓂᒥᑮ-ᑭᓇᐙᐸᑭᓯ (Nbiish Waabanimikii-Kinawaabakizi), also known legally as JUSTIN PAUL KENWABIKISE, professionally documented as Nbiish-Justin Paul Kenwabikise, Anishinaabek Dodem (Anishinaabe Clan): Animikii (Thunder), descendant of Chief ᑭᓇᐙᐸᑭᓯ (Kinwaabakizi) of the Beaver Island Band and enrolled member of the sovereign Grand Traverse Band of Ottawa and Chippewa Indians. This work embodies Indigenous intellectual property, traditional knowledge systems (TK), traditional cultural expressions (TCEs), and associated data protected under tribal law, federal Indian law, treaty rights, Indigenous Data Sovereignty principles, and international indigenous rights frameworks including UNDRIP. All usage, benefit-sharing, and data governance are governed by the COMPREHENSIVE RESTRICTED USE LICENSE FOR INDIGENOUS CREATIONS WITH TRIBAL SOVEREIGNTY, DATA SOVEREIGNTY, AND WEALTH RECLAMATION PROTECTIONS.}
|
|
10
|
+
howpublished = {\url{https://github.com/nbiish/gikendaasowin-aabajichiganan-mcp}},
|
|
11
|
+
note = {Authored and stewarded by ᓂᐲᔥ ᐙᐸᓂᒥᑮ-ᑭᓇᐙᐸᑭᓯ (Nbiish Waabanimikii-Kinawaabakizi), also known legally as JUSTIN PAUL KENWABIKISE, professionally documented as Nbiish-Justin Paul Kenwabikise, Anishinaabek Dodem (Anishinaabe Clan): Animikii (Thunder), descendant of Chief ᑭᓇᐙᐸᑭᓯ (Kinwaabakizi) of the Beaver Island Band and enrolled member of the sovereign Grand Traverse Band of Ottawa and Chippewa Indians. This work embodies Indigenous intellectual property, traditional knowledge systems (TK), traditional cultural expressions (TCEs), and associated data protected under tribal law, federal Indian law, treaty rights, Indigenous Data Sovereignty principles, and international indigenous rights frameworks including UNDRIP. All usage, benefit-sharing, and data governance are governed by the COMPREHENSIVE RESTRICTED USE LICENSE FOR INDIGENOUS CREATIONS WITH TRIBAL SOVEREIGNTY, DATA SOVEREIGNTY, AND WEALTH RECLAMATION PROTECTIONS.}
|
|
12
|
+
}
|
|
12
13
|
```
|
|
13
14
|
|
|
14
|
-
Copyright © 2025 ᓂᐲᔥ ᐙᐸᓂᒥᑮ-ᑭᓇᐙᐸᑭᓯ (Nbiish Waabanimikii-Kinawaabakizi), also known legally as JUSTIN PAUL KENWABIKISE, professionally documented as Nbiish-Justin Paul Kenwabikise, Anishinaabek Dodem (Anishinaabe Clan): Animikii (Thunder), a descendant of Chief ᑭᓇᐙᐸᑭᓯ (Kinwaabakizi) of the Beaver Island Band, and an enrolled member of the sovereign Grand Traverse Band of Ottawa and Chippewa Indians. This work embodies Traditional Knowledge and Traditional Cultural Expressions. All rights reserved.
|
|
15
|
-
|
|
16
|
-
This project is licensed under the [COMPREHENSIVE RESTRICTED USE LICENSE FOR INDIGENOUS CREATIONS WITH TRIBAL SOVEREIGNTY, DATA SOVEREIGNTY, AND WEALTH RECLAMATION PROTECTIONS](LICENSE).
|
|
17
|
-
|
|
18
15
|
<div align="center">
|
|
19
16
|
<hr width="50%">
|
|
20
17
|
|
|
@@ -33,6 +30,10 @@ This project is licensed under the [COMPREHENSIVE RESTRICTED USE LICENSE FOR IND
|
|
|
33
30
|
<hr width="50%">
|
|
34
31
|
</div>
|
|
35
32
|
|
|
33
|
+
Copyright © 2025 ᓂᐲᔥ ᐙᐸᓂᒥᑮ-ᑭᓇᐙᐸᑭᓯ (Nbiish Waabanimikii-Kinawaabakizi), also known legally as JUSTIN PAUL KENWABIKISE, professionally documented as Nbiish-Justin Paul Kenwabikise, Anishinaabek Dodem (Anishinaabe Clan): Animikii (Thunder), a descendant of Chief ᑭᓇᐙᐸᑭᓯ (Kinwaabakizi) of the Beaver Island Band, and an enrolled member of the sovereign Grand Traverse Band of Ottawa and Chippewa Indians. This work embodies Traditional Knowledge and Traditional Cultural Expressions. All rights reserved.
|
|
34
|
+
|
|
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
|
ᑭᑫᓐᑖᓱᐎᓐ ᐋᐸᒋᒋᑲᓇᓐ - Gikendaasowin Aabajichiganan - 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 include advanced deliberation (`think`), rapid checks (`quick_think`), mandatory complexity assessment (`assess_cuc_n_mode`), context synthesis, confidence gauging, proactive planning, explicit reasoning (CoT), and reflection.
|
|
37
38
|
|
|
38
39
|
Known as:
|
package/build/index.js
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
3
|
* -----------------------------------------------------------------------------
|
|
4
|
-
* Gikendaasowin Aabajichiganan - Core Cognitive Tools MCP Server (
|
|
4
|
+
* Gikendaasowin Aabajichiganan - Core Cognitive Tools MCP Server (v1.2 - Generalized)
|
|
5
5
|
*
|
|
6
|
-
* Description: Provides
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
6
|
+
* Description: Provides a streamlined suite of cognitive tools for an AI agent,
|
|
7
|
+
* inspired by research on improving LLM reasoning (like Anthropic's 'think' tool)
|
|
8
|
+
* applicable across domains (coding, research, planning, etc.).
|
|
9
|
+
* Focuses on assessment (`assess_cuc_n_mode`) and a central deliberation
|
|
10
|
+
* hub (`think`) used especially after receiving information/results.
|
|
11
|
+
* `quick_think` is for trivial steps. CoT/CoD reasoning styles occur within `think`.
|
|
12
|
+
* Returns Markdown.
|
|
13
13
|
*
|
|
14
14
|
* Key Principles:
|
|
15
|
-
* 1. **
|
|
15
|
+
* 1. **Structured Deliberation:** Tools guide assessment (`assess_cuc_n_mode`) and
|
|
16
16
|
* thinking/analysis (`think`, `quick_think`).
|
|
17
|
-
* 2. **Centralized Analysis (`think`):** The `think` tool is the hub for
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
* 6. **Markdown Output:** Tool results are formatted as Markdown.
|
|
17
|
+
* 2. **Centralized Analysis (`think`):** The `think` tool is the hub for analysis (results, errors),
|
|
18
|
+
* planning, reflection, policy checks, and reasoning (CoT/CoD). **Crucially used after info/results.**
|
|
19
|
+
* 3. **CUC-N Assessment:** `assess_cuc_n_mode` guides initial cognitive depth choice.
|
|
20
|
+
* 4. **Iterative Loop:** Assess -> [Action/Tool] -> Analyze Result/State (`think`) -> Plan (`think`) -> [Execute].
|
|
21
|
+
* 5. **Traceability & Reliability:** Tool inputs logged; structured thinking enhances reliability across tasks.
|
|
22
|
+
* 6. **Markdown Output:** Tool results formatted as Markdown.
|
|
24
23
|
*
|
|
25
24
|
* Protocol: Model Context Protocol (MCP) over stdio.
|
|
26
25
|
* -----------------------------------------------------------------------------
|
|
@@ -31,12 +30,12 @@ import { z } from "zod";
|
|
|
31
30
|
// --- Server Definition ---
|
|
32
31
|
const serverInfo = {
|
|
33
32
|
name: "gikendaasowin-aabajichiganan-mcp",
|
|
34
|
-
version: "1.
|
|
35
|
-
|
|
36
|
-
description: `ᑭᑫᓐᑖᓱᐎᓐ ᐋᐸᒋᒋᑲᓇᓐ - Core Cognitive Tools Suite (Ultra-Simplified): Focuses on Assess/Think loop. CoT/CoD styles are integrated into 'think'. Returns Markdown.`
|
|
33
|
+
version: "1.2.0", // Incremented version
|
|
34
|
+
description: `ᑭᑫᓐᑖᓱᐎᓐ ᐋᐸᒋᒋᑲᓇᓐ - Core Cognitive Tools (Generalized v1.2): Focuses on Assess/Think loop, using 'think' for post-result/state analysis across domains (code, research, etc.) to improve reliability. CoT/CoD integrated into 'think'. Returns Markdown.`
|
|
37
35
|
};
|
|
38
36
|
const server = new McpServer(serverInfo);
|
|
39
37
|
// --- Logging Helpers ---
|
|
38
|
+
// [Keep existing logToolCall, logToolResult, logToolError functions]
|
|
40
39
|
/**
|
|
41
40
|
* Logs an incoming tool call to stderr.
|
|
42
41
|
* @param toolName The name of the tool being called.
|
|
@@ -71,43 +70,38 @@ function logToolError(toolName, error) {
|
|
|
71
70
|
return {
|
|
72
71
|
content: [{
|
|
73
72
|
type: "text",
|
|
74
|
-
text: `Error executing tool '${toolName}': ${errorMessage}.
|
|
73
|
+
text: `Error executing tool '${toolName}': ${errorMessage}. Use the 'think' tool to analyze this error, check context, and plan the next step.` // Enhanced suggestion
|
|
75
74
|
}]
|
|
76
75
|
};
|
|
77
76
|
}
|
|
78
77
|
// --- Core Cognitive Deliberation & Refinement Tools ---
|
|
79
78
|
/**
|
|
80
79
|
* Tool: assess_cuc_n_mode
|
|
81
|
-
* Purpose: Initial assessment of task characteristics to
|
|
80
|
+
* Purpose: Initial assessment of task characteristics to guide cognitive strategy selection.
|
|
82
81
|
* Workflow: Call BEFORE starting complex tasks or significantly changing strategy.
|
|
83
82
|
* Output: Returns the full assessment text formatted as Markdown.
|
|
84
83
|
*/
|
|
85
|
-
server.tool("assess_cuc_n_mode", "**Initial Assessment.** Evaluates task Complexity, Uncertainty, Consequence, Novelty (CUC-N) to
|
|
86
|
-
assessment_and_choice: z.string().describe("Your structured assessment including: 1) Situation Description, 2) CUC-N Ratings (Low/Medium/High for each), 3) Rationale
|
|
84
|
+
server.tool("assess_cuc_n_mode", "**Initial Assessment.** Evaluates task Complexity, Uncertainty, Consequence, Novelty (CUC-N) to guide cognitive strategy. Call before complex tasks (coding, research, multi-step plans). Based on assessment, explicitly select and state whether the next step requires the detailed `think` tool (for analysis, planning, complex results) or the minimal `quick_think` tool (for trivial steps only).", {
|
|
85
|
+
assessment_and_choice: z.string().describe("Your structured assessment including: 1) Situation/Task Description, 2) CUC-N Ratings (Low/Medium/High for each), 3) Rationale, 4) Recommended Cognitive Strategy (e.g., 'Requires careful step-by-step planning'), 5) Explicit Mode Selection ('Selected Mode: think' or 'Selected Mode: quick_think').")
|
|
87
86
|
}, async ({ assessment_and_choice }) => {
|
|
88
87
|
const toolName = 'assess_cuc_n_mode';
|
|
89
88
|
logToolCall(toolName);
|
|
90
89
|
try {
|
|
91
|
-
// Basic Zod validation ensures it's a string. Content validation removed.
|
|
92
90
|
const modeRegex = /Selected Mode: (think|quick_think)/i;
|
|
93
91
|
const modeMatch = assessment_and_choice.match(modeRegex);
|
|
94
|
-
const selectedMode = modeMatch ? modeMatch[1].toLowerCase() : "unknown";
|
|
95
|
-
// Ensure assessment_and_choice is a non-empty string
|
|
92
|
+
const selectedMode = modeMatch ? modeMatch[1].toLowerCase() : "unknown";
|
|
96
93
|
if (assessment_and_choice.trim().length === 0) {
|
|
97
94
|
throw new Error('Invalid assessment_and_choice: Must be a non-empty string.');
|
|
98
95
|
}
|
|
99
96
|
if (!modeMatch) {
|
|
100
|
-
// Add a check for the mode selection presence
|
|
101
97
|
throw new Error('Invalid assessment: String must include explicit "Selected Mode: think" or "Selected Mode: quick_think".');
|
|
102
98
|
}
|
|
103
99
|
logToolResult(toolName, true, `Selected mode (extracted): ${selectedMode}`);
|
|
104
|
-
// Log full input for traceability
|
|
105
100
|
console.error(`[${new Date().toISOString()}] [MCP Server] - ${toolName} Input:\n${assessment_and_choice}`);
|
|
106
|
-
// Return the full assessment text, now without markdown wrappers
|
|
107
101
|
return {
|
|
108
102
|
content: [{
|
|
109
103
|
type: "text",
|
|
110
|
-
text: assessment_and_choice
|
|
104
|
+
text: assessment_and_choice
|
|
111
105
|
}]
|
|
112
106
|
};
|
|
113
107
|
}
|
|
@@ -117,60 +111,57 @@ server.tool("assess_cuc_n_mode", "**Initial Assessment.** Evaluates task Complex
|
|
|
117
111
|
});
|
|
118
112
|
/**
|
|
119
113
|
* Tool: think
|
|
120
|
-
* Purpose: The **CENTRAL
|
|
121
|
-
* Workflow:
|
|
114
|
+
* Purpose: The **CENTRAL HUB** for structured reasoning, analysis, and planning across all complex tasks.
|
|
115
|
+
* Workflow: Use this tool to **stop and think** *after* receiving information (tool results, calculations, user input, file content) or *before* taking a complex action (generating code, calling critical tools, formulating multi-part answers). Analyze inputs/results, check goals/policies/constraints, verify state, plan next steps, brainstorm, and perform detailed reasoning (CoT/CoD). Essential for reliability, error handling, and managing sequential tasks.
|
|
122
116
|
* Output: Returns the structured thought text itself, formatted as Markdown.
|
|
123
117
|
*/
|
|
124
|
-
server.tool("think", "**Central Hub for
|
|
125
|
-
thought: z.string().describe("Your **
|
|
118
|
+
server.tool("think", "**Central Hub for Analysis, Planning & Reasoning.** Use this tool to **stop and think**, especially *after* receiving information (tool results, errors, data) or before complex actions (coding, critical decisions). Analyze inputs/results, check goals/policies, verify information, plan next steps, and perform detailed reasoning (CoT/CoD) as needed. Crucial for reliability in coding, research, planning, and error recovery. Structure thought using clear headings (see prompt examples).", {
|
|
119
|
+
thought: z.string().describe("Your **structured** internal deliberation. MUST follow prompt guidance (Observe, Orient, Decide, Reason, Act, etc.). Include analysis of information/results, context/goal/policy checks, planning, and rationale (CoT/CoD). Crucial for complex tasks.")
|
|
126
120
|
}, async ({ thought }) => {
|
|
127
121
|
const toolName = 'think';
|
|
128
122
|
logToolCall(toolName);
|
|
129
123
|
try {
|
|
130
|
-
// Basic Zod validation ensures it's a non-empty string. Content validation removed.
|
|
131
124
|
if (thought.trim().length === 0) {
|
|
132
|
-
throw new Error('Invalid thought: Must be a non-empty string containing substantive reasoning.');
|
|
125
|
+
throw new Error('Invalid thought: Must be a non-empty string containing substantive reasoning, following the prompted structure.');
|
|
133
126
|
}
|
|
134
127
|
logToolResult(toolName, true, `Thought logged (length: ${thought.length})`);
|
|
135
|
-
// Log full input for traceability
|
|
136
128
|
console.error(`[${new Date().toISOString()}] [MCP Server] - ${toolName} Input:\n${thought}`);
|
|
137
|
-
// Returns the same thought text received, now without markdown wrappers
|
|
138
129
|
return {
|
|
139
130
|
content: [{
|
|
140
131
|
type: "text",
|
|
141
|
-
text: thought
|
|
132
|
+
text: thought
|
|
142
133
|
}]
|
|
143
134
|
};
|
|
144
135
|
}
|
|
145
136
|
catch (error) {
|
|
146
|
-
// Use logToolError to format the error for the LLM
|
|
147
137
|
return logToolError(toolName, error);
|
|
148
138
|
}
|
|
149
139
|
});
|
|
150
140
|
/**
|
|
151
141
|
* Tool: quick_think
|
|
152
|
-
* Purpose: A
|
|
153
|
-
* Workflow: Use ONLY
|
|
154
|
-
* Output: Returns the brief thought
|
|
142
|
+
* Purpose: A minimal cognitive step for trivial actions or confirmations.
|
|
143
|
+
* Workflow: Use ONLY for acknowledging *trivial* successes, simple variable passing, or confirming *immediately obvious* next steps where NO analysis, planning, policy check, or complex reasoning (handled by `think`) is needed. Use sparingly; prefer `think` for analyzing any tool output, error, or planning non-trivial actions.
|
|
144
|
+
* Output: Returns the brief thought text, formatted as Markdown.
|
|
155
145
|
*/
|
|
156
|
-
server.tool("quick_think", "**Cognitive
|
|
157
|
-
brief_thought: z.string().describe("Your **concise**
|
|
146
|
+
server.tool("quick_think", "**Minimal Cognitive Step (Use Sparingly!).** Use ONLY for acknowledging *trivial* successes or confirming *obvious* next steps where NO analysis, planning, or policy check is needed (e.g., 'Action X succeeded, proceeding to Y'). All substantive analysis, error handling, planning, and reasoning (CoT/CoD) belongs in the `think` tool. Prefer `think` after most tool calls or before complex actions.", {
|
|
147
|
+
brief_thought: z.string().describe("Your **extremely concise** confirmation or trivial thought (e.g., 'Tool success, continue', 'Passing ID to next step'). Must be non-empty but very short. Do NOT use for analysis or planning.")
|
|
158
148
|
}, async ({ brief_thought }) => {
|
|
159
149
|
const toolName = 'quick_think';
|
|
160
150
|
logToolCall(toolName);
|
|
161
151
|
try {
|
|
162
|
-
// Basic Zod validation ensures it's a non-empty string. Content validation removed.
|
|
163
152
|
if (brief_thought.trim().length === 0) {
|
|
164
153
|
throw new Error('Invalid brief_thought: Must be a non-empty string.');
|
|
165
154
|
}
|
|
155
|
+
// Optional: Add a length check if you want to enforce brevity strictly
|
|
156
|
+
// if (brief_thought.length > 100) { // Example limit
|
|
157
|
+
// throw new Error('Invalid brief_thought: Input is too long for quick_think. Use think tool for detailed reasoning.');
|
|
158
|
+
// }
|
|
166
159
|
logToolResult(toolName, true, `Logged: ${brief_thought.substring(0, 80)}...`);
|
|
167
|
-
// Log full input for traceability
|
|
168
160
|
console.error(`[${new Date().toISOString()}] [MCP Server] - ${toolName} Input:\n${brief_thought}`);
|
|
169
|
-
// Return the brief thought text, now without markdown wrappers
|
|
170
161
|
return {
|
|
171
162
|
content: [{
|
|
172
163
|
type: "text",
|
|
173
|
-
text: brief_thought
|
|
164
|
+
text: brief_thought
|
|
174
165
|
}]
|
|
175
166
|
};
|
|
176
167
|
}
|
|
@@ -178,9 +169,8 @@ server.tool("quick_think", "**Cognitive Checkpoint & Concise Drafter.** Use for
|
|
|
178
169
|
return logToolError(toolName, error);
|
|
179
170
|
}
|
|
180
171
|
});
|
|
181
|
-
// --- REMOVED chain_of_thought Tool ---
|
|
182
|
-
// --- REMOVED chain_of_draft Tool ---
|
|
183
172
|
// --- Server Lifecycle and Error Handling ---
|
|
173
|
+
// [Keep existing shutdown, process event handlers, main function]
|
|
184
174
|
/**
|
|
185
175
|
* Gracefully shuts down the server.
|
|
186
176
|
*/
|
|
@@ -221,7 +211,7 @@ async function main() {
|
|
|
221
211
|
const border = '-----------------------------------------------------';
|
|
222
212
|
console.error(border);
|
|
223
213
|
console.error(` ${serverInfo.description}`);
|
|
224
|
-
|
|
214
|
+
console.error(` Version: ${serverInfo.version}`);
|
|
225
215
|
console.error(' Status: Running on stdio, awaiting MCP requests...');
|
|
226
216
|
console.error(border);
|
|
227
217
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nbiish/cognitive-tools-mcp",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.30",
|
|
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",
|