cnhkmcp 1.2.3__py3-none-any.whl → 1.2.4__py3-none-any.whl
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.
- cnhkmcp/__init__.py +1 -1
- cnhkmcp/untracked/platform_functions.py +13 -13
- {cnhkmcp-1.2.3.dist-info → cnhkmcp-1.2.4.dist-info}/METADATA +1 -1
- cnhkmcp-1.2.4.dist-info/RECORD +10 -0
- cnhkmcp-1.2.3.dist-info/RECORD +0 -10
- {cnhkmcp-1.2.3.dist-info → cnhkmcp-1.2.4.dist-info}/WHEEL +0 -0
- {cnhkmcp-1.2.3.dist-info → cnhkmcp-1.2.4.dist-info}/entry_points.txt +0 -0
- {cnhkmcp-1.2.3.dist-info → cnhkmcp-1.2.4.dist-info}/licenses/LICENSE +0 -0
- {cnhkmcp-1.2.3.dist-info → cnhkmcp-1.2.4.dist-info}/top_level.txt +0 -0
cnhkmcp/__init__.py
CHANGED
|
@@ -604,8 +604,8 @@ class BrainApiClient:
|
|
|
604
604
|
self.log(f"Failed to get user profile: {str(e)}", "ERROR")
|
|
605
605
|
raise
|
|
606
606
|
|
|
607
|
-
async def
|
|
608
|
-
"""Get available
|
|
607
|
+
async def get_documentations(self) -> Dict[str, Any]:
|
|
608
|
+
"""Get available documentations and learning materials."""
|
|
609
609
|
await self.ensure_authenticated()
|
|
610
610
|
|
|
611
611
|
try:
|
|
@@ -613,7 +613,7 @@ class BrainApiClient:
|
|
|
613
613
|
response.raise_for_status()
|
|
614
614
|
return response.json()
|
|
615
615
|
except Exception as e:
|
|
616
|
-
self.log(f"Failed to get
|
|
616
|
+
self.log(f"Failed to get documentations: {str(e)}", "ERROR")
|
|
617
617
|
raise
|
|
618
618
|
|
|
619
619
|
# get_messages_summary function removed as requested
|
|
@@ -1192,8 +1192,8 @@ class BrainApiClient:
|
|
|
1192
1192
|
|
|
1193
1193
|
# generate_alpha_links function removed as requested
|
|
1194
1194
|
|
|
1195
|
-
async def
|
|
1196
|
-
"""Retrieve detailed content of a specific
|
|
1195
|
+
async def get_documentation_page(self, page_id: str) -> Dict[str, Any]:
|
|
1196
|
+
"""Retrieve detailed content of a specific documentation page/article."""
|
|
1197
1197
|
await self.ensure_authenticated()
|
|
1198
1198
|
|
|
1199
1199
|
try:
|
|
@@ -1201,7 +1201,7 @@ class BrainApiClient:
|
|
|
1201
1201
|
response.raise_for_status()
|
|
1202
1202
|
return response.json()
|
|
1203
1203
|
except Exception as e:
|
|
1204
|
-
self.log(f"Failed to get
|
|
1204
|
+
self.log(f"Failed to get documentation page: {str(e)}", "ERROR")
|
|
1205
1205
|
raise
|
|
1206
1206
|
|
|
1207
1207
|
# Badge status function removed as requested
|
|
@@ -1743,15 +1743,15 @@ async def get_user_profile(user_id: str = "self") -> Dict[str, Any]:
|
|
|
1743
1743
|
return {"error": str(e)}
|
|
1744
1744
|
|
|
1745
1745
|
@mcp.tool()
|
|
1746
|
-
async def
|
|
1746
|
+
async def get_documentations() -> Dict[str, Any]:
|
|
1747
1747
|
"""
|
|
1748
|
-
📚 Get available
|
|
1748
|
+
📚 Get available documentations and learning materials.
|
|
1749
1749
|
|
|
1750
1750
|
Returns:
|
|
1751
|
-
List of
|
|
1751
|
+
List of documentations
|
|
1752
1752
|
"""
|
|
1753
1753
|
try:
|
|
1754
|
-
return await brain_client.
|
|
1754
|
+
return await brain_client.get_documentations()
|
|
1755
1755
|
except Exception as e:
|
|
1756
1756
|
return {"error": str(e)}
|
|
1757
1757
|
|
|
@@ -2016,10 +2016,10 @@ async def expand_nested_data(data: List[Dict[str, Any]], preserve_original: bool
|
|
|
2016
2016
|
# generate_alpha_links MCP tool removed as requested
|
|
2017
2017
|
|
|
2018
2018
|
@mcp.tool()
|
|
2019
|
-
async def
|
|
2020
|
-
"""Retrieve detailed content of a specific
|
|
2019
|
+
async def get_documentation_page(page_id: str) -> Dict[str, Any]:
|
|
2020
|
+
"""Retrieve detailed content of a specific documentation page/article."""
|
|
2021
2021
|
try:
|
|
2022
|
-
return await brain_client.
|
|
2022
|
+
return await brain_client.get_documentation_page(page_id)
|
|
2023
2023
|
except Exception as e:
|
|
2024
2024
|
return {"error": str(e)}
|
|
2025
2025
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
cnhkmcp/__init__.py,sha256=-laBHbRG7AtBQp4pu6I9nSFtNBoBp_p35pQzNcf2Jkw,2758
|
|
2
|
+
cnhkmcp/untracked/forum_functions.py,sha256=78wzvN_UYWwbWU40q8_FJNSFPJnND6W9ZRey6MSSiEk,45516
|
|
3
|
+
cnhkmcp/untracked/platform_functions.py,sha256=o0l1MNcUUmvCRgjhxbn0QaxdZSLyV_C1DI-2DaXx9Eg,81739
|
|
4
|
+
cnhkmcp/untracked/user_config.json,sha256=_INn1X1qIsITrmEno-BRlQOAGm9wnNCw-6B333DEvnk,695
|
|
5
|
+
cnhkmcp-1.2.4.dist-info/licenses/LICENSE,sha256=QLxO2eNMnJQEdI_R1UV2AOD-IvuA8zVrkHWA4D9gtoc,1081
|
|
6
|
+
cnhkmcp-1.2.4.dist-info/METADATA,sha256=a86cCJaC48vkhIHafwnyDZYliEfK6Ht6qGZdO7qCsy8,5171
|
|
7
|
+
cnhkmcp-1.2.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
+
cnhkmcp-1.2.4.dist-info/entry_points.txt,sha256=lTQieVyIvjhSMK4fT-XwnccY-JBC1H4vVQ3V9dDM-Pc,70
|
|
9
|
+
cnhkmcp-1.2.4.dist-info/top_level.txt,sha256=x--ibUcSgOS9Z_RWK2Qc-vfs7DaXQN-WMaaxEETJ1Bw,8
|
|
10
|
+
cnhkmcp-1.2.4.dist-info/RECORD,,
|
cnhkmcp-1.2.3.dist-info/RECORD
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
cnhkmcp/__init__.py,sha256=ggwv1_2vTzA1CqKNjy2TavuVVVZ5ByMzSN8Vvt4Hu1g,2758
|
|
2
|
-
cnhkmcp/untracked/forum_functions.py,sha256=78wzvN_UYWwbWU40q8_FJNSFPJnND6W9ZRey6MSSiEk,45516
|
|
3
|
-
cnhkmcp/untracked/platform_functions.py,sha256=fmNz6DVfcpyz8cEWk7JbW3R5-3kbez4zOe520c6FMwQ,81674
|
|
4
|
-
cnhkmcp/untracked/user_config.json,sha256=_INn1X1qIsITrmEno-BRlQOAGm9wnNCw-6B333DEvnk,695
|
|
5
|
-
cnhkmcp-1.2.3.dist-info/licenses/LICENSE,sha256=QLxO2eNMnJQEdI_R1UV2AOD-IvuA8zVrkHWA4D9gtoc,1081
|
|
6
|
-
cnhkmcp-1.2.3.dist-info/METADATA,sha256=Q-o8ejvy53gOpLHwfz1lv5xb0EkGuNoEwMgeqn-ahnE,5171
|
|
7
|
-
cnhkmcp-1.2.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
8
|
-
cnhkmcp-1.2.3.dist-info/entry_points.txt,sha256=lTQieVyIvjhSMK4fT-XwnccY-JBC1H4vVQ3V9dDM-Pc,70
|
|
9
|
-
cnhkmcp-1.2.3.dist-info/top_level.txt,sha256=x--ibUcSgOS9Z_RWK2Qc-vfs7DaXQN-WMaaxEETJ1Bw,8
|
|
10
|
-
cnhkmcp-1.2.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|