@nbiish/cognitive-tools-mcp 0.3.6 → 0.3.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 (4) hide show
  1. package/LICENSE +199 -84
  2. package/README.md +13 -7
  3. package/build/index.js +70 -38
  4. package/package.json +4 -4
package/LICENSE CHANGED
@@ -1,84 +1,199 @@
1
- COMPREHENSIVE RESTRICTED USE LICENSE FOR INDIGENOUS CREATIONS
2
- WITH TRIBAL SOVEREIGNTY, DATA SOVEREIGNTY, AND WEALTH RECLAMATION PROTECTIONS
3
-
4
- Version 1.0, March 2025
5
-
6
- Copyright (c) 2025 ᓂᐲᔥ ᐙᐸᓂᒥᑮ-ᑭᓇᐙᐸᑭᓯ (Nbiish Waabanimikii-Kinawaabakizi)
7
- Also known legally as JUSTIN PAUL KENWABIKISE
8
- Professionally documented as Nbiish-Justin Paul Kenwabikise
9
- Anishinaabek Dodem (Anishinaabe Clan): Animikii (Thunder)
10
- Enrolled member of the sovereign Grand Traverse Band of Ottawa and Chippewa Indians
11
-
12
- PREAMBLE
13
-
14
- This license governs the use, reproduction, modification, and distribution of the software and associated documentation files (the "Work"), which incorporates Indigenous knowledge, cultural expressions, and intellectual property. The Work is protected under tribal law, federal Indian law, treaty rights, Indigenous Data Sovereignty principles, and international indigenous rights frameworks including the United Nations Declaration on the Rights of Indigenous Peoples (UNDRIP).
15
-
16
- TERMS AND CONDITIONS
17
-
18
- 1. DEFINITIONS
19
-
20
- "Indigenous Knowledge" means traditional knowledge, cultural expressions, practices, and innovations that are part of the cultural heritage of Indigenous peoples.
21
-
22
- "Indigenous Data Sovereignty" means the right of Indigenous peoples to maintain, control, protect and develop their cultural heritage, traditional knowledge and traditional cultural expressions, as well as their right to maintain, control, protect and develop their intellectual property over such cultural heritage, traditional knowledge, and traditional cultural expressions.
23
-
24
- 2. GRANT OF RIGHTS
25
-
26
- Subject to the terms and conditions of this License, the Creator hereby grants you a non-exclusive, worldwide, revocable license to use the Work for non-commercial purposes only, provided that:
27
-
28
- a) You maintain all copyright, trademark, and attribution notices
29
- b) You do not use the Work for commercial purposes without explicit written permission
30
- c) You respect and adhere to Indigenous protocols and cultural practices
31
- d) You acknowledge the sovereignty of Indigenous nations and their right to govern their data and knowledge
32
-
33
- 3. RESTRICTIONS
34
-
35
- You may not:
36
-
37
- a) Use the Work in any way that misappropriates or disrespects Indigenous knowledge
38
- b) Modify or create derivative works without explicit permission
39
- c) Use the Work for commercial purposes without a separate agreement
40
- d) Transfer any rights granted under this License to others
41
- e) Use the Work in any way that violates Indigenous data sovereignty principles
42
-
43
- 4. INDIGENOUS DATA SOVEREIGNTY
44
-
45
- The Work embodies Indigenous intellectual property and data that are subject to tribal sovereignty and Indigenous Data Sovereignty principles. Any use, storage, or transmission of data must:
46
-
47
- a) Respect Indigenous ownership of data
48
- b) Follow Indigenous protocols for data governance
49
- c) Ensure Indigenous control over data collection and use
50
- d) Protect Indigenous intellectual property rights
51
- e) Support Indigenous nation rebuilding and development
52
-
53
- 5. ATTRIBUTION AND ACKNOWLEDGMENT
54
-
55
- You must provide appropriate attribution:
56
-
57
- ᓂᐲᔥ ᐙᐸᓂᒥᑮ-ᑭᓇᐙᐸᑭᓯ (Nbiish Waabanimikii-Kinawaabakizi)
58
- Also known legally as JUSTIN PAUL KENWABIKISE
59
- Professionally documented as Nbiish-Justin Paul Kenwabikise
60
- Anishinaabek Dodem (Anishinaabe Clan): Animikii (Thunder)
61
- Enrolled member of the sovereign Grand Traverse Band of Ottawa and Chippewa Indians
62
-
63
- 6. TERMINATION
64
-
65
- This License and the rights granted hereunder will terminate automatically upon any breach by you of the terms of this License.
66
-
67
- 7. DISCLAIMER OF WARRANTY
68
-
69
- The Work is provided "AS IS" without warranty of any kind, either expressed or implied.
70
-
71
- 8. LIMITATION OF LIABILITY
72
-
73
- In no event shall the Creator be liable for any damages arising from the use of the Work.
74
-
75
- 9. GOVERNING LAW
76
-
77
- This License shall be governed by tribal law and federal Indian law, with respect to international indigenous rights frameworks.
78
-
79
- 10. CONTACT INFORMATION
80
-
81
- For permissions, questions, or additional information, please contact:
82
- nbiish@umich.edu
83
-
84
- END OF TERMS AND CONDITIONS
1
+ 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), an enrolled member of the sovereign Grand Traverse Band of Ottawa and Chippewa Indians. All rights reserved.
2
+
3
+ COMPREHENSIVE RESTRICTED USE LICENSE FOR INDIGENOUS CREATIONS WITH TRIBAL SOVEREIGNTY, DATA SOVEREIGNTY, AND WEALTH RECLAMATION PROTECTIONS
4
+
5
+ **PREAMBLE**
6
+ This Work (defined below) is created, held, or 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), a member of the Grand Traverse Band of Ottawa and Chippewa Indians (GTBOCI), a federally recognized sovereign tribal nation (hereafter referred to as the "Rights Holder"). This license is grounded in the inherent sovereignty of Indigenous peoples to protect, control, and govern the use of their intellectual property, cultural heritage, traditional knowledge (TK), traditional cultural expressions (TCEs), and associated data (Indigenous Data Sovereignty). The unique status of tribal sovereign nations provides legal and cultural protections extending beyond standard intellectual property law regimes. This license aims to facilitate respectful engagement while upholding Tribal sovereignty, cultural integrity, data governance rights, and ensuring equitable benefit sharing as a mechanism for reclaiming value derived from Indigenous knowledge and heritage often subject to historical extraction.
7
+
8
+ This license applies to 'the Work.' 'The Work' primarily encompasses the Indigenous creations contained directly **within this repository**, including software, digital materials, cultural expressions, tangible heritage, and knowledge systems. **Furthermore, 'the Work' explicitly includes any other creations by the Rights Holder (such as presentations, publications, or artworks) that are either (a) directly published as files within this repository or (b) explicitly identified elsewhere within this repository (e.g., in the README file) as being governed by this specific license instance.** It expressly integrates and asserts rights based upon principles from Traditional Knowledge (TK) Labels and Protocols, federal Indian law, the laws and customs of the Grand Traverse Band of Ottawa and Chippewa Indians, Indigenous Data Sovereignty principles, and international indigenous rights frameworks, including the United Nations Declaration on the Rights of Indigenous Peoples (UNDRIP).
9
+
10
+ **Scope of License Application:** This license governs the use of the content defined as "the Work" above. It explicitly **does not** extend to:
11
+ * **(a) Git Submodules:** Any materials included via Git submodules are separate works governed by their own respective licenses.
12
+ * **(b) External Links:** Any external works, websites, or resources merely linked to or referenced from within this repository maintain their own licensing terms, unless explicitly identified as part of "the Work" per the Preamble definition.
13
+ * **(c) Non-Copyrightable Metadata:** Basic repository metadata lacking original creative expression is not covered by this license.
14
+
15
+ **1. DEFINITIONS**
16
+ For the purposes of this license, the following terms shall have the meanings ascribed below:
17
+ a) **"AI Training/Development":** Includes, but is not limited to, using the Work, in whole or in part, as input data for training, fine-tuning, validating, benchmarking, developing, or otherwise improving any artificial intelligence (AI) models, machine learning (ML) systems, large language models (LLMs), neural networks, algorithms, or related technologies, regardless of the method (e.g., supervised learning, unsupervised learning, reinforcement learning).
18
+ b) **"Commercial Use/Commercialization":** Any use of the Work, or derivative works based thereon, primarily intended for or directed toward commercial advantage or monetary compensation. This includes, but is not limited to, selling the Work, licensing it for a fee, using it in products or services offered for sale, using it in advertising or marketing materials for commercial products/services, or incorporating it into a business operation that generates revenue. Non-profit or academic use may still be considered Commercial Use if it involves cost-recovery exceeding direct costs, generates revenue streams, or serves to enhance the commercial standing or funding prospects of the using entity in a manner beyond standard academic dissemination.
19
+ c) **"Derivative Work":** A work based upon one or more preexisting works, such as a translation, musical arrangement, dramatization, fictionalization, motion picture version, sound recording, art reproduction, abridgment, condensation, or any other form in which a work may be recast, transformed, or adapted. A work consisting of editorial revisions, annotations, elaborations, or other modifications which, as a whole, represent an original work of authorship, is a "derivative work". For the purposes of this license, this also explicitly includes datasets derived or extracted from the Work, software incorporating code or concepts from the Work, and AI models trained using the Work.
20
+ d) **"Indigenous Data Sovereignty":** The inherent right of Indigenous peoples to govern the collection, ownership, access, analysis, interpretation, management, storage, dissemination, and reuse of data pertaining to them, their lands, resources, cultures, knowledge systems, or any information derived therefrom. This includes the right to determine how data is used, who benefits from it, and to ensure data practices align with Indigenous values and protocols.
21
+ e) **"Prior Informed Consent (PIC)":** A formal, documented agreement obtained from the Rights Holder (and potentially GTBOCI authorities, as specified) *before* any proposed use of the Work commences that falls outside the narrowly defined Permissible Uses or falls under Prohibited Uses for which an exception is sought. PIC requires full disclosure of the intended use, adherence to specified conditions, and is subject to revocation. (See Section 7).
22
+ f) **"Rights Holder":** Refers to ᓂᐲᔥ ᐙᐸᓂᒥᑮ-ᑭᓇᐙᐸᑭᓯ (Nbiish Waabanimikii-Kinawaabakizi), also known legally as JUSTIN PAUL KENWABIKISE, professionally documented as Nbiish-Justin Paul Kenwabikise, Anishinaabek Dodem (Anishinaabe Clan): Animikii (Thunder), an enrolled member of the sovereign Grand Traverse Band of Ottawa and Chippewa Indians.
23
+ g) **"Traditional Cultural Expressions (TCEs)":** Any forms, whether tangible or intangible, in which traditional culture and knowledge are expressed, appear, or are manifested. Examples include music, dance, songs, ceremonies, symbols, designs, narratives, poetry, languages, performances, rituals, crafts, architecture, and traditional artistic forms.
24
+ h) **"Traditional Knowledge (TK)":** The knowledge, innovations, and practices of Indigenous and local communities around the world. Developed from experience gained over centuries and adapted to the local culture and environment, TK is transmitted orally from generation to generation. It encompasses spiritual, cultural, environmental, and practical knowledge integral to the identity and survival of Indigenous peoples.
25
+ i) **"Work":** The specific Indigenous creations governed by this license, as defined in the Preamble.
26
+
27
+ **2. DECLARATION OF NAME USAGE**
28
+ The Rights Holder asserts their right to be identified by all of the following, reflecting the historical context of Indigenous name suppression and the right to full recognition under tribal sovereignty principles and federal law:
29
+ 1. Traditional Name (Primary Cultural Identity): ᓂᐲᔥ ᐙᐸᓂᒥᑮ-ᑭᓇᐙᐸᑭᓯ (Nbiish Waabanimikii-Kinawaabakizi)
30
+ 2. Birth Certificate Name (Legal Identity): JUSTIN PAUL KENWABIKISE
31
+ 3. Professional Documentation Name: Nbiish-Justin Paul Kenwabikise
32
+ 4. Anishinaabek Dodem (Anishinaabe Clan): Animikii (Thunder)
33
+ All references to the "Rights Holder" in this document encompass this complete identity.
34
+
35
+ **3. CITATION AND ATTRIBUTION REQUIREMENT**
36
+ 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:
37
+
38
+ ```bibtex
39
+ @misc{gikendaasowin-aabajichiganan-mcp2025,
40
+ 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)},
41
+ title/description = {gikendaasowin-aabajichiganan-mcp},
42
+ type_of_work = {Indigenous digital creation/software incorporating traditional knowledge and cultural expressions},
43
+ year = {2025},
44
+ publisher/source/event = {GitHub repository under tribal sovereignty protections},
45
+ howpublished = {\url{https://github.com/nbiish/gikendaasowin-aabajichiganan-mcp}, \url{https://www.npmjs.com/package/@nbiish/cognitive-tools-mcp}},
46
+ 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), an 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.}
47
+ }
48
+ ```
49
+
50
+ Furthermore, any project, publication, presentation, performance, exhibition, or product utilizing, referencing, or derived from this Work must visibly and respectfully acknowledge the Indigenous authorship/stewardship and tribal affiliation in all relevant contexts, recognizing the work is subject to the traditional knowledge protocols, data governance, and laws of the Grand Traverse Band of Ottawa and Chippewa Indians.
51
+
52
+ **4. TRADITIONAL KNOWLEDGE (TK) & DATA SOVEREIGNTY PROTECTION AND LABELING**
53
+ This Work embodies or contains elements of Traditional Knowledge (TK), Traditional Cultural Expressions (TCEs), or knowledge associated with genetic resources, which require special protection based on the inherent rights of Indigenous peoples and the specific protocols of the Grand Traverse Band of Ottawa and Chippewa Indians. The Rights Holder asserts both western intellectual property rights (copyright, patent, trademark, etc., where applicable) and inherent Indigenous cultural and intellectual property rights, including Indigenous Data Sovereignty. This Work is assigned the following Traditional Knowledge (TK) Labels, developed by Local Contexts (localcontexts.org), which signal community-specific protocols and permissions:
54
+
55
+ * **TK Attribution (TK A):** Specific attribution is required as detailed in Section 3.
56
+ * **TK Culturally Sensitive (TK CS):** Special cultural protocols govern access, use, handling, display, or performance. Users must exercise caution and respect.
57
+ * **TK Community Use Only (TK CO):** Use restricted primarily to the Grand Traverse Band of Ottawa and Chippewa Indians community. External use requires specific Prior Informed Consent (PIC).
58
+ * **TK Non-Commercial (TK NC):** Use for Commercial Purposes is prohibited without explicit PIC and a negotiated, equitable benefit-sharing agreement.
59
+ * **TK Verified (TK V):** Affirms the Work originates from or is recognized by the Grand Traverse Band of Ottawa and Chippewa Indians community and the Rights Holder.
60
+
61
+ The application of these labels signifies that specific community protocols govern the use, sharing, circulation, and data management related to this Work. Users are obligated to respect these protocols. Furthermore, no rights are waived under the United Nations Declaration on the Rights of Indigenous Peoples (UNDRIP), particularly Articles 11 (right to practice and revitalize cultural traditions and customs) and 31 (right to maintain, control, protect and develop cultural heritage, traditional knowledge, traditional cultural expressions, associated data, and intellectual property).
62
+
63
+ **5. SOVEREIGN REVOCATION RIGHT UNDER CONSTITUTIONAL SUPREMACY**
64
+ As a member of a sovereign tribal nation recognized by the United States, the Rights Holder (ᓂᐲᔥ ᐙᐸᓂᒥᑮ-ᑭᓇᐙᐸᑭᓯ / Nbiish Waabanimikii-Kinawaabakizi / JUSTIN PAUL KENWABIKISE / Nbiish-Justin Paul Kenwabikise, Anishinaabek Dodem (Anishinaabe Clan): Animikii (Thunder)) reserves and asserts the absolute, inherent, irrevocable, and perpetual right to demand the immediate cessation of any and all use, reproduction, distribution, performance, display, adaptation, or creation of derivative works based on this Work by any individual, entity, corporation, institution, artificial intelligence system, or other party, at any time and for any reason deemed necessary by the Rights Holder or the Grand Traverse Band of Ottawa and Chippewa Indians to protect cultural integrity, tribal sovereignty, data sovereignty, community well-being, spiritual values, or adherence to cultural protocols.
65
+
66
+ This sovereign right derives from the inherent sovereignty of the Grand Traverse Band of Ottawa and Chippewa Indians and is further protected by Article VI, Clause 2 of the United States Constitution (the Supremacy Clause), treaties including the Treaty of Washington (1836) and the Treaty of Detroit (1855), the reserved rights doctrine, and foundational principles of federal Indian law (e.g., Michigan v. Bay Mills Indian Community, McGirt v. Oklahoma). These rights are constitutionally superior to ordinary contractual agreements, state laws, and standard intellectual property regimes.
67
+
68
+ The superior legal and moral force of these treaty-protected and inherent sovereign rights means this license invokes protections that exceed standard IP laws, the revocation right cannot be diminished by standard contract principles, courts must interpret ambiguities liberally in favor of tribal interests (Indian canons of construction), and disputes must be analyzed primarily within the framework of federal Indian law, tribal law, and treaty rights.
69
+
70
+ Upon receiving notification of revocation from the Rights Holder or an authorized representative of GTBOCI, all parties must immediately cease all use, permanently remove/destroy all copies and derivatives, provide written confirmation of compliance within 7 calendar days, acknowledge the superior force of tribal sovereignty and treaty rights, and surrender or destroy derivative materials as directed.
71
+
72
+ **6. PROHIBITED USES**
73
+ This Work, in whole or in part, may *not* be used, accessed, reproduced, distributed, performed, displayed, adapted, or exploited by any individual, entity, corporation, institution, AI system, or other party for any of the following purposes or in any of the following manners, unless explicitly permitted in writing through Prior Informed Consent (PIC, see Section 7) obtained from the Rights Holder and potentially the Grand Traverse Band of Ottawa and Chippewa Indians:
74
+ a) **AI Training/Development:** As defined in Section 1(a).
75
+ b) **Commercialization:** Any Commercial Use (as defined in Section 1(b)) without explicit PIC and a negotiated, equitable benefit-sharing agreement designed to contribute to the reclamation of value derived from Indigenous knowledge.
76
+ c) **Misappropriation & Distortion:** Any use that misappropriates, misrepresents, distorts, decontextualizes, modifies, or damages the integrity, meaning, or cultural significance of the Work, associated knowledge, cultural expressions, or data.
77
+ d) **Violation of Moral Rights:** Any use violating the moral rights of the Rights Holder (attribution, integrity).
78
+ e) **Harmful/Exploitative Applications:** Any application or use that could potentially harm, exploit, or disadvantage the Grand Traverse Band of Ottawa and Chippewa Indians, its members, its knowledge systems, its cultural practices, its data sovereignty, or its resources.
79
+ f) **Protocol/Label/Data Governance Violation:** Any use that disrespects or violates designated cultural protocols, community rules, data governance requirements, or the conditions signified by the applied TK Labels.
80
+ g) **Military/Weaponry:** Use in connection with military applications, weapons development, surveillance technologies.
81
+ h) **Cultural Appropriation & Stereotyping:** Use that promotes or facilitates cultural appropriation, harmful stereotypes, or disrespectful representations.
82
+ i) **Unauthorized Data Extraction/Use:** Any data mining, text mining, web scraping, automated extraction, large-scale analysis, or generation of derivative datasets from the Work or embedded knowledge/data without explicit PIC and adherence to data governance protocols.
83
+ j) **Violation of Tribal Values/Law:** Any use contrary to the traditional values, customs, spiritual practices, or laws of the Grand Traverse Band of Ottawa and Chippewa Indians.
84
+ k) **Disrespectful Contexts:** Use, display, or performance in contexts that disrespect the spiritual, cultural, or historical significance.
85
+
86
+ **7. PERMISSIBLE USES AND ACCESS PROTOCOLS**
87
+ Any permissible use of this Work must strictly adhere to the following conditions and protocols, often requiring Prior Informed Consent (PIC, Section 8). Failure to adhere constitutes a license violation.
88
+ a) **Educational Use:** Permissible for non-commercial purposes *only if* fully consistent with TK Labels, cultural context is maintained, full attribution provided (Section 3), and use does not fall under Prohibited Uses (Section 6). PIC may be required depending on the specific nature and scope of use.
89
+ b) **Research Use:** Permissible *only with* explicit PIC. Research must adhere to GTBOCI research protocols, ethical guidelines, Indigenous Data Sovereignty principles, and a mutually agreed-upon agreement including review, approval, reporting, data governance, and equitable benefit-sharing.
90
+ c) **Community Development (Internal):** Permissible for non-commercial GTBOCI community development purposes following community protocols.
91
+ d) **Promoting Accurate Understanding:** Permissible *only under direct guidance, collaboration, and approval* of the Rights Holder/community authorities. PIC likely required.
92
+ e) **Adherence to Protocols and TK Labels:** All uses must strictly adhere to GTBOCI cultural protocols, data governance requirements, and TK Label conditions. Users must inquire if protocols are unknown.
93
+ f) **Access Controls:** Users must respect any defined user roles, permission levels, or technical measures governing access and use of digital materials.
94
+
95
+ **8. PRIOR INFORMED CONSENT (PIC) REQUIREMENT**
96
+ Any use outside narrowly defined permissible uses (Section 7), or explicitly requiring consent, mandates obtaining **Prior Informed Consent (PIC)** from the Rights Holder (and potentially GTBOCI authorities). PIC must be:
97
+ a) **Obtained in Advance:** In writing *before* use begins.
98
+ b) **Full Disclosure:** Provide complete, accurate information on proposed use, parties, purposes, methods, scope, duration, potential impacts (cultural, social, economic), data management/governance plans, intended outputs, and proposed equitable benefit-sharing arrangements (monetary/non-monetary, contributing to wealth reclamation).
99
+ c) **Subject to Revocation:** Per Section 5.
100
+ d) **Non-Transferable:** Granted only to the requesting party for the specified purpose/duration.
101
+ e) **Accountability:** Contingent upon adherence to agreed reporting, monitoring, and accountability measures.
102
+
103
+ **9. COMPENSATION, FINANCIAL RECOVERY, AND WEALTH RECLAMATION FOR UNAUTHORIZED USE**
104
+ Any party that uses, reproduces, distributes, displays, performs, adapts, commercializes, or otherwise derives benefit (financial or non-financial) from this Work in violation of this license, without required permissions, or exceeding granted consent, shall be strictly liable for comprehensive remediation and financial restitution aimed at equitable compensation and contributing to the reclamation of value derived from misappropriated Indigenous knowledge and heritage. Remedies include:
105
+
106
+ 9.1 MANDATORY DISGORGEMENT OF ALL BENEFITS: The violating party shall fully disgorge and transfer to the Rights Holder (or designated recipient per Section 9.7) all benefits derived from the unauthorized use, including but not limited to:
107
+ a) All direct and indirect revenues and profits.
108
+ b) Fair market value of non-monetary benefits (e.g., data acquired, reputational enhancement, strategic advantage gained).
109
+ c) Interest accrued on monetary benefits at no less than 10% per annum, compounded monthly, from the date the benefit was derived.
110
+ d) The greater of actual damages suffered by the Rights Holder or statutory damages as applicable under law.
111
+ e) Enhanced value added to the violator's operations or assets resulting from the unauthorized use.
112
+ f) Full disgorgement applies particularly in cases of fraud, bad faith, or unauthorized use/commercialization of TK/TCEs/Data, including profits difficult to ascertain ("unknown profits"), calculated equitably by the competent forum.
113
+
114
+ 9.2 COMPENSATION CALCULATION AND ASSESSMENT: Determined by the Rights Holder or tribal authorities based on tribal law, custom, equity, and wealth reclamation principles. May include:
115
+ a) Retroactive royalty based on fair market value (no less than 20% of gross revenue derived from the unauthorized use, or a higher percentage such as 50%+ as determined equitable by the competent forum, considering the cultural value and nature of the violation).
116
+ b) Minimum statutory damages where applicable (e.g., $150,000+ per willful infringement under relevant IP law, adapted or supplemented by tribal law).
117
+ c) Traditional forms of restitution or recompense recognized under GTBOCI law and custom.
118
+ d) Compensation for cultural, spiritual, collective harm, and violations of Indigenous Data Sovereignty, acknowledging that such harms may require significant restitution beyond purely economic measures.
119
+ e) Compensation for diminishment of the cultural or economic value of the Work.
120
+ f) Liquidated damages, if specified, or reasonable daily penalties (e.g., $10,000+ per day) for continued violation after notice.
121
+
122
+ 9.3 ADDITIONAL FINANCIAL REMEDIES: Violator liable for:
123
+ a) All legal, expert, court, travel, and professional fees incurred by the Rights Holder and/or GTBOCI in enforcing this license and securing remedies.
124
+ b) Costs associated with cultural restoration, language revitalization efforts, necessary ceremonies, or data remediation efforts necessitated by the violation.
125
+ c) Costs of issuing public corrections or retractions.
126
+ d) Costs of notifying affected parties or communities.
127
+ e) Reasonable administrative fees incurred by the Rights Holder or GTBOCI in managing the response to the violation.
128
+
129
+ 9.4 PROPERTY TRANSFER PROVISIONS: For willful, flagrant, or repeated violations, the Rights Holder or competent tribal court may require the transfer of:
130
+ a) Intellectual property rights in any Derivative Works created through unauthorized use.
131
+ b) Associated digital assets (e.g., domain names, social media accounts) used in the exploitation.
132
+ c) Equipment or materials primarily used in the unauthorized exploitation.
133
+ d) Any patents, trademarks, or other registered IP improperly obtained based on the Work.
134
+
135
+ 9.5 JURISDICTIONAL AND PROCEDURAL CONSIDERATIONS:
136
+ a) The GTBOCI Tribal Court (or alternative forum selected per Section 10) has primary jurisdiction over disputes concerning remedies.
137
+ b) These provisions are intended to be enforceable in tribal, federal, and state courts, based on consent to the license terms, treaty rights, principles of comity, and full faith and credit doctrines.
138
+ c) The Rights Holder reserves the right to utilize traditional GTBOCI dispute resolution mechanisms.
139
+ d) Unauthorized users, by their use, consent to the jurisdiction of the chosen tribal forum for disputes related to remedies under this license.
140
+ e) Judgments from the competent tribal court regarding remedies are intended to be enforceable in other jurisdictions.
141
+ f) Remedies may include non-monetary actions or culturally appropriate forms of restitution as determined by the competent forum.
142
+
143
+ 9.6 WAIVER OF DEFENSES: By using the Work, users waive the right to assert defenses against the remedies outlined herein based on:
144
+ a) Lack of knowledge of the specific terms of this license or the compensation provisions.
145
+ b) Jurisdictional challenges to the chosen tribal forum, subject to applicable law regarding tribal court jurisdiction.
146
+ c) Standard statutes of limitations or laches defenses, unless such defenses are explicitly recognized under GTBOCI law or the law applied by the competent forum.
147
+ d) Challenges to the reasonableness of compensation calculated according to the principles outlined in this license.
148
+ e) Claims of sovereign immunity by governmental or quasi-governmental entities, to the extent waiver can be effected by acceptance of license terms or is otherwise inapplicable under federal Indian law.
149
+
150
+ 9.7 CONTINUITY OF COMPENSATION RECOVERY IN EVENT OF RIGHTS HOLDER INCAPACITATION OR DETENTION:
151
+ a) Undiminished Obligation: In the event the Rights Holder is temporarily detained, arrested, jailed, incarcerated, hospitalized, incapacitated, or otherwise unable to directly receive or manage the remedies awarded under this Section 9 ("Incapacitated"), the violating party's obligation to provide full compensation and restitution remains absolute and undiminished.
152
+ b) Payment Instructions and Representation: The violating party shall strictly follow written instructions regarding the direction of payments or transfer of assets required as remedies. Such instructions may come from:
153
+ i. The Rights Holder directly, if able.
154
+ ii. An individual pre-designated in writing by the Rights Holder to act on their behalf in such circumstances (e.g., via alternative payee designation, durable power of attorney, or similar instrument recognized under applicable law).
155
+ iii. A court-appointed fiduciary, guardian, conservator, or other legal representative authorized to act on the Rights Holder's behalf, evidenced by appropriate court documentation.
156
+ iv. An authorized representative of the Grand Traverse Band of Ottawa and Chippewa Indians designated by tribal authorities in accordance with tribal law and governance procedures to act on the Rights Holder's behalf specifically for the purpose of receiving and managing remedies under this license.
157
+ c) Purpose of Redirection: Remedies redirected under this section are intended to ensure the Rights Holder's needs are met (including but not limited to legal fees, medical costs, dependent support, commissary funds, etc.) and that the value reclamation goals of this license are fulfilled without interruption, even during periods of incapacitation or detention.
158
+ d) Escrow Protocol: If the Rights Holder is Incapacitated and no designated representative (as per 9.7(b)) provides valid payment instructions within thirty (30) calendar days of the violating party becoming aware (or being reasonably expected to be aware) of the incapacitation, the violating party shall immediately place all monetary remedies then due or accruing into a segregated, interest-bearing escrow account with a reputable financial institution. The violating party must provide prompt written notification to the Rights Holder's last known address and to the designated legal or administrative office of the Grand Traverse Band of Ottawa and Chippewa Indians regarding the establishment, location, and status of the escrowed funds, with updates provided at least quarterly. The violating party shall bear the costs of establishing and maintaining the escrow account and shall release the escrowed funds, including any accrued interest, promptly upon receiving proper instructions from the Rights Holder or an authorized representative as defined in 9.7(b).
159
+ e) Confidentiality: The violating party shall maintain strict confidentiality regarding any non-public information about the Rights Holder's incapacitation or detention obtained solely through the process of executing remedy instructions or establishing escrow under this subsection, except as strictly required by law or necessary to execute payment/escrow instructions. Unauthorized disclosure may constitute a separate violation of this license.
160
+ f) Survival and Non-Waiver: The obligations under this subsection 9.7 survive any incapacitation or detention of the Rights Holder and do not waive or diminish any other remedies available under this license or applicable law. Failure by the Rights Holder or their representative to provide immediate instructions does not constitute a waiver of the right to receive full compensation.
161
+
162
+ **10. DISPUTE RESOLUTION AND JURISDICTION**
163
+ 10.1 PRIMARY TRIBAL JURISDICTION: The Grand Traverse Band of Ottawa and Chippewa Indians Tribal Court shall be the primary and preferred forum for resolving any disputes arising under or related to this license, including but not limited to interpretation of terms, alleged violations, assessment of compensation, and enforcement of remedies. All parties using the Work under this license are deemed to have consented to the personal and subject matter jurisdiction of the GTBOCI Tribal Court for such disputes and expressly subject themselves to its authority. Tribal court decisions shall be accorded full faith and credit and comity to the maximum extent provided under applicable law (including 28 U.S.C. § 1738 and relevant case law).
164
+
165
+ 10.2 SECONDARY JURISDICTIONS: In circumstances where GTBOCI Tribal Court proceedings are determined by that court itself to be unavailable or impractical for a specific dispute, or where enforcement of a tribal court judgment is sought in another forum, the following forums may have concurrent or subsequent jurisdiction, subject always to the principles of tribal sovereignty and exhaustion of tribal remedies:
166
+ a) The United States Federal District Court with geographic jurisdiction encompassing the lands of the Grand Traverse Band of Ottawa and Chippewa Indians, particularly for matters arising under federal Indian law or requiring interpretation of federal statutes or treaties.
167
+ b) If federal court jurisdiction is unavailable, the courts of the State of Michigan, solely to the extent necessary and permissible under federal Indian law and principles of comity, and provided that tribal law and perspectives are given appropriate weight.
168
+ c) For international disputes, the choice of forum and applicable law shall prioritize mechanisms that respect Indigenous sovereignty and international indigenous rights frameworks (e.g., WIPO procedures for TK/TCEs, application of lex originis principles), as determined appropriate by the Rights Holder.
169
+
170
+ 10.3 JURISDICTIONAL PRINCIPLES: The interpretation and application of jurisdictional rules shall be guided by:
171
+ a) The paramount status of tribal law, custom, and treaty rights, which shall supersede conflicting state or common law principles where applicable.
172
+ b) The established Indian canons of construction, requiring ambiguities in laws, treaties, and agreements (including this license) to be interpreted liberally in favor of tribal interests and sovereignty.
173
+ c) The doctrine of tribal court exhaustion, which generally requires parties to exhaust remedies in tribal court before seeking relief in federal or state courts, particularly for disputes arising on tribal lands or involving tribal members and governance.
174
+
175
+ 10.4 TRADITIONAL DISPUTE RESOLUTION: The Rights Holder explicitly reserves the right, consistent with GTBOCI law and custom, to utilize or require participation in traditional GTBOCI dispute resolution methods, forums, or councils of elders, either as an alternative or supplement to judicial proceedings. Decisions reached through such traditional processes shall be accorded respect and weight within the community and potentially by other forums under principles of comity.
176
+
177
+ **11. DISCLAIMER OF WARRANTIES**
178
+ THE WORK IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE WORK IS WITH YOU. SHOULD THE WORK PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION. THIS DISCLAIMER OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF ANY WORK IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER. TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW (INCLUDING TRIBAL LAW AND FEDERAL INDIAN LAW AS SPECIFIED IN SECTION 10), THE RIGHTS HOLDER PROVIDES THE WORK AS-IS AND WITH ALL FAULTS, AND HEREBY DISCLAIMS ALL OTHER WARRANTIES AND CONDITIONS, WHETHER EXPRESS, IMPLIED, OR STATUTORY.
179
+
180
+ **12. LIMITATION OF LIABILITY**
181
+ TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW (INCLUDING TRIBAL LAW AND FEDERAL INDIAN LAW AS SPECIFIED IN SECTION 10), IN NO EVENT AND UNDER NO LEGAL THEORY, WHETHER IN TORT (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, UNLESS REQUIRED BY APPLICABLE LAW (SUCH AS DELIBERATE AND GROSSLY NEGLIGENT ACTS) OR AGREED TO IN WRITING, SHALL THE RIGHTS HOLDER BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY CHARACTER ARISING AS A RESULT OF THIS LICENSE OR OUT OF THE USE OR INABILITY TO USE THE WORK (INCLUDING BUT NOT LIMITED TO DAMAGES FOR LOSS OF GOODWILL, WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER COMMERCIAL DAMAGES OR LOSSES), EVEN IF SUCH HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. THE FOREGOING LIMITATIONS SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF ANY LIMITED REMEDY.
182
+
183
+ **13. SEVERABILITY AND PERPETUITY**
184
+ This license is intended to be perpetual and apply to the fullest extent permissible under applicable law. If any provision of this license is deemed invalid, illegal, or unenforceable in a particular jurisdiction by a competent forum (giving due deference to the chosen tribal forum), such invalidity, illegality, or unenforceability shall not affect any other term or provision of this license or invalidate or render unenforceable such term or provision in any other jurisdiction. The provision in question shall be reformed, construed, and enforced in such jurisdiction to the minimum extent necessary to render it valid and enforceable, in a manner that most closely achieves the original purpose and intent of this license, particularly the protection of Indigenous rights, sovereignty, and wealth reclamation principles. This license shall be interpreted holistically to uphold these core principles.
185
+
186
+ **14. NOTIFICATION AND COMMUNICATION**
187
+ All formal notifications, requests for Prior Informed Consent (PIC), reports, or other communications required or permitted under this license shall be delivered in writing to the Rights Holder's designated contact information provided below, or, where appropriate and specified, to the officially designated offices of the Grand Traverse Band of Ottawa and Chippewa Indians.
188
+
189
+ For further information or to request permissions, please contact:
190
+ ᓂᐲᔥ ᐙᐸᓂᒥᑮ-ᑭᓇᐙᐸᑭᓯ (Nbiish Waabanimikii-Kinawaabakizi)
191
+ also known legally as JUSTIN PAUL KENWABIKISE
192
+ professionally documented as Nbiish-Justin Paul Kenwabikise
193
+ Anishinaabek Dodem (Anishinaabe Clan): Animikii (Thunder)
194
+ Email: nbiish@umich.edu
195
+
196
+ **15. ENTIRE AGREEMENT; AMENDMENTS**
197
+ This document constitutes the entire agreement between the user of the Work and the Rights Holder concerning the subject matter hereof and supersedes all prior or contemporaneous agreements, understandings, negotiations, and discussions, whether oral or written. No amendment or modification of this License shall be effective unless explicitly stated as an updated version of this license by the Rights Holder. No waiver of any provision of this license shall be effective unless in writing and signed by the Rights Holder.
198
+
199
+ **END OF LICENSE**
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @nbiish/gikendaasowin-aabajichiganan-mcp
2
2
 
3
- ᑭᑫᓐᑖᓱᐎᓐ ᐋᐸᒋᒋᑲᓇᓐ - Gikendaasowin Aabajichiganan - (Cognitive Tools): A Model Context Protocol server providing advanced cognitive reasoning tools for AI agents.
3
+ ᑭᑫᓐᑖᓱᐎᓐ ᐋᐸᒋᒋᑲᓇᓐ - Gikendaasowin Aabajichiganan - (Cognitive Tools v0.3.9): Provides a suite of advanced internal reasoning tools to guide an LLM agent in sophisticated problem-solving, emphasizing structured thought, planning, and self-correction.
4
4
 
5
5
  Known as:
6
6
  - Anishinaabemowin: [`@nbiish/gikendaasowin-aabajichiganan-mcp`](https://www.npmjs.com/package/@nbiish/gikendaasowin-aabajichiganan-mcp)
@@ -60,15 +60,14 @@ Or:
60
60
  ## Tool Descriptions
61
61
 
62
62
  ### Think Tool
63
- - **Purpose**: Internal workspace for structured analysis, planning, and verification
64
- - **Input**: `thought` (string) - Your comprehensive analysis, reasoning, and planning
63
+ - **Purpose**: MANDATORY core cognitive step for structured deliberation. Use this internal workspace for analysis, planning, verification, risk assessment, and self-correction before ANY action and after using other cognitive tools.
64
+ - **Input**: `thought` (string) - Your detailed internal monologue and reasoning. Structure clearly with sections like Analysis, Plan, Verification, Risk Assessment, and Self-Correction.
65
65
  - **Response Format**:
66
66
  ```json
67
67
  {
68
68
  "content": [{
69
69
  "type": "text",
70
- "text": "Your thought content",
71
- "mimeType": "text/plain"
70
+ "text": "Your thought content"
72
71
  }]
73
72
  }
74
73
  ```
@@ -107,6 +106,12 @@ npm run inspector
107
106
 
108
107
  # Start the server
109
108
  npm start
109
+
110
+ # Publishing both packages
111
+ npm publish # Publishes @nbiish/gikendaasowin-aabajichiganan-mcp
112
+ # Update package.json name to @nbiish/cognitive-tools-mcp
113
+ npm publish # Publishes English version
114
+ # Restore package.json name to @nbiish/gikendaasowin-aabajichiganan-mcp
110
115
  ```
111
116
 
112
117
  ## Test Examples
@@ -137,8 +142,7 @@ Example Response:
137
142
  {
138
143
  "content": [{
139
144
  "type": "text",
140
- "text": "Analyzing the Seven Grandfather Teachings...",
141
- "mimeType": "text/plain"
145
+ "text": "Analyzing the Seven Grandfather Teachings..."
142
146
  }]
143
147
  }
144
148
  ```
@@ -185,6 +189,8 @@ Example Response:
185
189
 
186
190
  ## Version History
187
191
 
192
+ - **0.3.9**: Updated tool descriptions and fixed error handling to improve reliability
193
+ - **0.3.6**: Updated repository URLs to point to gikendaasowin-aabajichiganan-mcp
188
194
  - **0.3.5**: Updated license link and repository URLs
189
195
  - **0.3.4**: Dual package publishing (Anishinaabemowin and English names)
190
196
  - **0.3.3**: Fixed response format to comply with MCP schema, synchronized version numbers
package/build/index.js CHANGED
@@ -5,80 +5,112 @@ import { z } from "zod";
5
5
  // Create the MCP server
6
6
  const server = new McpServer({
7
7
  name: "gikendaasowin-aabajichiganan-mcp",
8
- version: "0.3.3",
9
- description: "ᑭᑫᓐᑖᓱᐎᓐ ᐋᐸᒋᒋᑲᓇᓐ - Gikendaasowin Aabajichiganan - (Cognitive Tools): Provides a suite of advanced cognitive reasoning tools for sophisticated problem-solving"
8
+ version: "0.3.9", // Updated version
9
+ description: "ᑭᑫᓐᑖᓱᐎᓐ ᐋᐸᒋᒋᑲᓇᓐ - Gikendaasowin Aabajichiganan - (Cognitive Tools v0.3.9): Provides a suite of advanced internal reasoning tools to guide an LLM agent in sophisticated problem-solving, emphasizing structured thought, planning, and self-correction."
10
10
  });
11
- // Define the think tool
12
- server.tool("think", {
13
- thought: z.string().describe("Your comprehensive internal analysis, step-by-step reasoning, policy checks, plan formulation/refinement, and self-correction.")
14
- }, async ({ thought }) => {
15
- if (!thought || typeof thought !== 'string') {
16
- throw new Error('Invalid thought: Must be a non-empty string');
11
+ // --- Core Cognitive Tool ---
12
+ server.tool("think",
13
+ // Enhanced Main Description: Emphasizes mandatory nature, purpose, and expected outcome (logged thought).
14
+ "MANDATORY core cognitive step. Use this internal workspace for structured deliberation before ANY action or final response, AND after using ANY other cognitive tool. Logs your detailed thought process for analysis, planning, verification, risk assessment, and self-correction, ensuring traceable, robust, and compliant reasoning.", {
15
+ // Enhanced Parameter Description: More explicit guidance on content and structure.
16
+ thought: z.string().describe("Your detailed internal monologue and reasoning. Structure clearly (e.g., using headings like 'Analysis', 'Plan', 'Verification', 'Risk Assessment', 'Self-Correction'). Content MUST cover: 1) Deconstruction of request/situation, 2) Analysis of previous steps/tool outputs, 3) Formulation of next steps/plan, 4) Verification against constraints/policies, 5) Assessment of potential risks/edge cases, 6) Explicit self-correction if needed. Adapt structure logically but ensure comprehensive reasoning. This logs your thinking process.")
17
+ },
18
+ // Implementation: Correctly echoes the thought, as the tool's job is to log it.
19
+ async ({ thought }) => {
20
+ if (!thought || typeof thought !== 'string' || thought.trim().length === 0) { // Added trim check
21
+ throw new Error('Invalid thought: Must be a non-empty string containing substantive reasoning.');
17
22
  }
23
+ // You could potentially add structured logging here if needed later
24
+ console.error(`[CognitiveToolsServer] Think Tool Logged: ${thought.substring(0, 100)}...`); // Log confirmation
18
25
  return {
19
26
  content: [{
20
27
  type: "text",
21
- text: thought
28
+ text: thought // Return the logged thought
22
29
  }]
23
30
  };
24
31
  });
25
- // Define the chain_of_thought tool
26
- server.tool("chain_of_thought", {
27
- problem_statement: z.string().describe("The specific, well-defined problem requiring detailed step-by-step reasoning.")
28
- }, async ({ problem_statement }) => {
29
- if (!problem_statement || typeof problem_statement !== 'string') {
30
- throw new Error('Invalid problem statement: Must be a non-empty string');
32
+ // --- Supporting Cognitive Strategy Tools ---
33
+ // Note: These tools primarily guide the LLM to generate specific reasoning patterns,
34
+ // which are then analyzed using the mandatory 'think' tool.
35
+ server.tool("chain_of_thought",
36
+ // Enhanced Main Description: Clarifies it guides LLM generation.
37
+ "Guides the LLM to generate explicit, sequential reasoning steps for a specific problem. Breaks down complexity into a detailed, linear, logical path. Primarily used for tasks needing high explainability. The generated reasoning MUST be subsequently analyzed using the 'think' tool.", {
38
+ // Enhanced Parameter Description: Instructs the LLM on what *it* needs to generate for this field.
39
+ problem_statement: z.string().describe("Provide the specific problem statement for which *you* (the LLM) must now generate and articulate a detailed, step-by-step logical deduction path (Chain of Thought). This output represents your reasoning process.")
40
+ },
41
+ // Implementation: Echoes the input, signaling the LLM performed the CoT generation *before* calling.
42
+ async ({ problem_statement }) => {
43
+ if (!problem_statement || typeof problem_statement !== 'string' || problem_statement.trim().length === 0) {
44
+ throw new Error('Invalid problem statement: Must be a non-empty string.');
31
45
  }
46
+ console.error(`[CognitiveToolsServer] ChainOfThought Tool Triggered for: ${problem_statement.substring(0, 100)}...`);
32
47
  return {
33
48
  content: [{
34
49
  type: "text",
35
- text: problem_statement
50
+ // Return the problem statement to confirm the context for the CoT the LLM *should have generated*.
51
+ // The actual CoT exists in the LLM's preceding generation turn.
52
+ text: `Chain of Thought generation requested for: ${problem_statement}`
36
53
  }]
37
54
  };
38
55
  });
39
- // Define the reflection tool
40
- server.tool("reflection", {
41
- input_reasoning_or_plan: z.string().describe("The cognitive output to be evaluated.")
42
- }, async ({ input_reasoning_or_plan }) => {
43
- if (!input_reasoning_or_plan || typeof input_reasoning_or_plan !== 'string') {
44
- throw new Error('Invalid input: Must be a non-empty string');
56
+ server.tool("reflection",
57
+ // Enhanced Main Description: Clarifies it guides LLM self-critique.
58
+ "Guides the LLM to perform self-critique on previously generated reasoning or plans. Evaluates logical consistency, completeness, efficiency, and potential biases, suggesting specific refinements. The critique and refined output MUST be analyzed in a subsequent 'think' step.", {
59
+ // Enhanced Parameter Description: Instructs the LLM on what *it* needs to generate.
60
+ input_reasoning_or_plan: z.string().describe("Provide the specific reasoning segment or plan (e.g., from a 'think' step) that *you* (the LLM) must now critically evaluate. Your evaluation should identify flaws, biases, or inconsistencies and propose concrete improvements.")
61
+ },
62
+ // Implementation: Echoes the input, signaling the LLM performed the reflection *before* calling.
63
+ async ({ input_reasoning_or_plan }) => {
64
+ if (!input_reasoning_or_plan || typeof input_reasoning_or_plan !== 'string' || input_reasoning_or_plan.trim().length === 0) {
65
+ throw new Error('Invalid input reasoning/plan: Must be a non-empty string.');
45
66
  }
67
+ console.error(`[CognitiveToolsServer] Reflection Tool Triggered for analysis.`);
46
68
  return {
47
69
  content: [{
48
70
  type: "text",
49
- text: input_reasoning_or_plan
71
+ text: `Reflection requested on: ${input_reasoning_or_plan.substring(0, 150)}...` // Confirm context
50
72
  }]
51
73
  };
52
74
  });
53
- // Define the plan_and_solve tool
54
- server.tool("plan_and_solve", {
55
- task_objective: z.string().describe("The overarching goal requiring a structured plan.")
56
- }, async ({ task_objective }) => {
57
- if (!task_objective || typeof task_objective !== 'string') {
58
- throw new Error('Invalid task objective: Must be a non-empty string');
75
+ server.tool("plan_and_solve",
76
+ // Enhanced Main Description: Clarifies it guides LLM plan generation.
77
+ "Guides the LLM to develop a high-level, structured strategy (plan) for complex, multi-stage objectives. Outlines major phases and potential tool usage. The generated plan MUST be reviewed, validated, and potentially refined using the 'think' tool.", {
78
+ // Enhanced Parameter Description: Instructs the LLM on what *it* needs to generate.
79
+ task_objective: z.string().describe("Provide the high-level task objective for which *you* (the LLM) must now create a structured, multi-step strategic plan. Outline the main phases and anticipated steps or tool usage.")
80
+ },
81
+ // Implementation: Echoes the input, signaling the LLM performed the planning *before* calling.
82
+ async ({ task_objective }) => {
83
+ if (!task_objective || typeof task_objective !== 'string' || task_objective.trim().length === 0) {
84
+ throw new Error('Invalid task objective: Must be a non-empty string.');
59
85
  }
86
+ console.error(`[CognitiveToolsServer] PlanAndSolve Tool Triggered for: ${task_objective.substring(0, 100)}...`);
60
87
  return {
61
88
  content: [{
62
89
  type: "text",
63
- text: task_objective
90
+ text: `Planning requested for objective: ${task_objective}` // Confirm context
64
91
  }]
65
92
  };
66
93
  });
67
- // Define the chain_of_draft tool
68
- server.tool("chain_of_draft", {
69
- problem_statement: z.string().describe("Problem suitable for concise, iterative reasoning.")
70
- }, async ({ problem_statement }) => {
71
- if (!problem_statement || typeof problem_statement !== 'string') {
72
- throw new Error('Invalid problem statement: Must be a non-empty string');
94
+ server.tool("chain_of_draft",
95
+ // Enhanced Main Description: Clarifies it guides LLM draft generation.
96
+ "Guides the LLM to generate concise, iterative drafts of reasoning steps, prioritizing efficiency. Useful for rapid exploration or brainstorming when full CoT verbosity isn't needed. The generated drafts MUST be subsequently analyzed via the 'think' tool.", {
97
+ // Enhanced Parameter Description: Instructs the LLM on what *it* needs to generate.
98
+ problem_statement: z.string().describe("Provide the problem statement for which *you* (the LLM) will now generate brief, iterative reasoning drafts (Chain of Draft). Focus on key steps/insights concisely.")
99
+ },
100
+ // Implementation: Echoes the input, signaling the LLM performed the drafting *before* calling.
101
+ async ({ problem_statement }) => {
102
+ if (!problem_statement || typeof problem_statement !== 'string' || problem_statement.trim().length === 0) {
103
+ throw new Error('Invalid problem statement: Must be a non-empty string.');
73
104
  }
105
+ console.error(`[CognitiveToolsServer] ChainOfDraft Tool Triggered for: ${problem_statement.substring(0, 100)}...`);
74
106
  return {
75
107
  content: [{
76
108
  type: "text",
77
- text: problem_statement
109
+ text: `Chain of Draft generation requested for: ${problem_statement}` // Confirm context
78
110
  }]
79
111
  };
80
112
  });
81
- // Setup error handling
113
+ // --- Server Lifecycle and Error Handling ---
82
114
  process.on('SIGINT', async () => {
83
115
  console.error('[CognitiveToolsServer] Received SIGINT, shutting down.');
84
116
  await server.close();
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@nbiish/cognitive-tools-mcp",
3
- "version": "0.3.6",
4
- "description": "ᑭᑫᓐᑖᓱᐎᓐ ᐋᐸᒋᒋᑲᓇᓐ - Gikendaasowin Aabajichiganan - (Cognitive Tools): A Model Context Protocol server providing advanced cognitive reasoning tools for AI agents",
3
+ "version": "0.3.11",
4
+ "description": "ᑭᑫᓐᑖᓱᐎᓐ ᐋᐸᒋᒋᑲᓇᓐ - Gikendaasowin Aabajichiganan - (Cognitive Tools v0.3.11): Provides a suite of advanced internal reasoning tools to guide an LLM agent in sophisticated problem-solving, emphasizing structured thought, planning, and self-correction. [SYNC NOTE: This repository publishes both packages: 1) @nbiish/gikendaasowin-aabajichiganan-mcp (current), and 2) @nbiish/cognitive-tools-mcp (https://www.npmjs.com/package/@nbiish/cognitive-tools-mcp). Publishing workflow: First publish this version, then update package.json name to @nbiish/cognitive-tools-mcp and publish again, finally restore name back to @nbiish/gikendaasowin-aabajichiganan-mcp. Both packages should maintain version parity. Current version: 0.3.11]",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "bin": {
8
- "cognitive-tools-mcp": "./build/index.js"
8
+ "gikendaasowin-aabajichiganan-mcp": "build/index.js"
9
9
  },
10
10
  "files": [
11
11
  "build"
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "repository": {
31
31
  "type": "git",
32
- "url": "https://github.com/nbiish/gikendaasowin-aabajichiganan-mcp.git"
32
+ "url": "git+https://github.com/nbiish/gikendaasowin-aabajichiganan-mcp.git"
33
33
  },
34
34
  "author": "ᓂᐲᔥ ᐙᐸᓂᒥᑮ-ᑭᓇᐙᐸᑭᓯ (Nbiish Waabanimikii-Kinawaabakizi)",
35
35
  "license": "SEE LICENSE IN https://github.com/nbiish/license-for-all-works/blob/main/LICENSE",