fenix-mcp 1.0.0__py3-none-any.whl → 1.1.0__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.
- fenix_mcp/__init__.py +1 -1
- fenix_mcp/application/tools/knowledge.py +14 -2
- {fenix_mcp-1.0.0.dist-info → fenix_mcp-1.1.0.dist-info}/METADATA +1 -1
- {fenix_mcp-1.0.0.dist-info → fenix_mcp-1.1.0.dist-info}/RECORD +7 -7
- {fenix_mcp-1.0.0.dist-info → fenix_mcp-1.1.0.dist-info}/WHEEL +0 -0
- {fenix_mcp-1.0.0.dist-info → fenix_mcp-1.1.0.dist-info}/entry_points.txt +0 -0
- {fenix_mcp-1.0.0.dist-info → fenix_mcp-1.1.0.dist-info}/top_level.txt +0 -0
fenix_mcp/__init__.py
CHANGED
|
@@ -108,7 +108,10 @@ class KnowledgeAction(str, Enum):
|
|
|
108
108
|
RULE_DELETE = ("rule_delete", "Removes a rule.")
|
|
109
109
|
|
|
110
110
|
# Documentation
|
|
111
|
-
DOC_CREATE = (
|
|
111
|
+
DOC_CREATE = (
|
|
112
|
+
"doc_create",
|
|
113
|
+
"Creates a documentation item. Requires doc_emoji for page, api_doc, and guide types.",
|
|
114
|
+
)
|
|
112
115
|
DOC_LIST = ("doc_list", "Lists documentation items with filters.")
|
|
113
116
|
DOC_GET = ("doc_get", "Gets documentation item details.")
|
|
114
117
|
DOC_UPDATE = ("doc_update", "Updates a documentation item.")
|
|
@@ -295,7 +298,8 @@ class KnowledgeRequest(ToolRequest):
|
|
|
295
298
|
default=None, ge=0, description="Desired position when moving documents."
|
|
296
299
|
)
|
|
297
300
|
doc_emoji: Optional[EmojiStr] = Field(
|
|
298
|
-
default=None,
|
|
301
|
+
default=None,
|
|
302
|
+
description="Emoji displayed with the document. REQUIRED for page, api_doc, and guide types (not required for folder).",
|
|
299
303
|
)
|
|
300
304
|
doc_emote: Optional[EmojiStr] = Field(
|
|
301
305
|
default=None, description="Alias for emoji, kept for compatibility."
|
|
@@ -807,6 +811,14 @@ class KnowledgeTool(Tool):
|
|
|
807
811
|
return text(
|
|
808
812
|
"❌ Invalid doc_type. Use one of the supported values: " + allowed
|
|
809
813
|
)
|
|
814
|
+
# Emoji is required for page, api_doc, guide (not for folder)
|
|
815
|
+
doc_type = sanitize_null(payload.doc_type) or "page"
|
|
816
|
+
emoji = sanitize_null(payload.doc_emoji or payload.doc_emote)
|
|
817
|
+
if doc_type != "folder" and not emoji:
|
|
818
|
+
return text(
|
|
819
|
+
"❌ Provide doc_emoji to create documentation. "
|
|
820
|
+
"Emoji is required for page, api_doc, and guide types."
|
|
821
|
+
)
|
|
810
822
|
doc = await self._service.doc_create(
|
|
811
823
|
{
|
|
812
824
|
"title": payload.doc_title,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
fenix_mcp/__init__.py,sha256=
|
|
1
|
+
fenix_mcp/__init__.py,sha256=0nVssUi62ihSwPNFCB_d2shUtSA4sQpxj_MGNNtdzxs,180
|
|
2
2
|
fenix_mcp/main.py,sha256=iJV-9btNMDJMObvcn7wBQdbLLKjkYCQ1ANGEwHGHlMU,2857
|
|
3
3
|
fenix_mcp/application/presenters.py,sha256=fGME54PdCDhTBhXO-JUB9yLdBHiE1aeXLTC2fCuxnxM,689
|
|
4
4
|
fenix_mcp/application/tool_base.py,sha256=YJk7aSVGjXEvAkXrOHOuUjCFhYni9NPKFyPKiZqkrCc,4235
|
|
@@ -7,7 +7,7 @@ fenix_mcp/application/tools/__init__.py,sha256=Gi1YvYh-KdL9HD8gLVrknHrxiKKEOhHBE
|
|
|
7
7
|
fenix_mcp/application/tools/health.py,sha256=m5DxhoRbdwl6INzd6PISxv1NAv-ljCrezsr773VB0wE,834
|
|
8
8
|
fenix_mcp/application/tools/initialize.py,sha256=YfsE3fVYiqGEwvaI_jg5-0K7pGURXxpB3WNwETmGBPc,5499
|
|
9
9
|
fenix_mcp/application/tools/intelligence.py,sha256=3HRPMQEx5cyKBCjkIpN48W1YibduxQ2h07lQtERQ0aY,15105
|
|
10
|
-
fenix_mcp/application/tools/knowledge.py,sha256=
|
|
10
|
+
fenix_mcp/application/tools/knowledge.py,sha256=MVtXBXAY8PKw5iR-RYBgiGUlgyekjSTAIIaMUSFBdmE,48516
|
|
11
11
|
fenix_mcp/application/tools/productivity.py,sha256=bC6HqBHlvjzHvNbfcRp7W6-Z6HHwDS5B8_rTBde0dyo,10033
|
|
12
12
|
fenix_mcp/application/tools/user_config.py,sha256=O5AVg7IUKL9uIoUoBSFovBDHl9jofhKWzhFK7CnKi4s,6470
|
|
13
13
|
fenix_mcp/domain/initialization.py,sha256=AZhdSNITQ7O3clELBuqGvjJc-c8pFKc7zQz-XR2xXPc,6933
|
|
@@ -22,8 +22,8 @@ fenix_mcp/infrastructure/logging.py,sha256=bHrWlSi_0HshRe3--BK_5nzUszW-gh37q6jsd
|
|
|
22
22
|
fenix_mcp/infrastructure/fenix_api/client.py,sha256=E6TW6hvF8xPGM0HGIumnv72TmCqqkoCoDIjnYwqGFnQ,27514
|
|
23
23
|
fenix_mcp/interface/mcp_server.py,sha256=5UM2NJuNbwHkmCEprIFataJ5nFZiO8efTtP_oW3_iX0,2331
|
|
24
24
|
fenix_mcp/interface/transports.py,sha256=PxdhfjH8UMl03f7nuCLc-M6tMx6-Y-btVz_mSqXKrSI,8138
|
|
25
|
-
fenix_mcp-1.
|
|
26
|
-
fenix_mcp-1.
|
|
27
|
-
fenix_mcp-1.
|
|
28
|
-
fenix_mcp-1.
|
|
29
|
-
fenix_mcp-1.
|
|
25
|
+
fenix_mcp-1.1.0.dist-info/METADATA,sha256=O__WlTO3_huB8Kidn1HkD-lA_ze4HW0-17nJXcfhX1c,7260
|
|
26
|
+
fenix_mcp-1.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
27
|
+
fenix_mcp-1.1.0.dist-info/entry_points.txt,sha256=o52x_YHBupEd-1Z1GSfUjv3gJrx5_I-EkHhCgt1WBaE,49
|
|
28
|
+
fenix_mcp-1.1.0.dist-info/top_level.txt,sha256=2G1UtKpwjaIGQyE7sRoHecxaGLeuexfjrOUjv9DDKh4,10
|
|
29
|
+
fenix_mcp-1.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|