fenix-mcp 0.5.5__tar.gz → 0.5.6__tar.gz

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 (34) hide show
  1. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/PKG-INFO +1 -1
  2. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/__init__.py +1 -1
  3. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/application/tools/intelligence.py +12 -4
  4. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp.egg-info/PKG-INFO +1 -1
  5. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/README.md +0 -0
  6. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/application/presenters.py +0 -0
  7. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/application/tool_base.py +0 -0
  8. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/application/tool_registry.py +0 -0
  9. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/application/tools/__init__.py +0 -0
  10. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/application/tools/health.py +0 -0
  11. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/application/tools/initialize.py +0 -0
  12. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/application/tools/knowledge.py +0 -0
  13. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/application/tools/productivity.py +0 -0
  14. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/application/tools/user_config.py +0 -0
  15. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/domain/initialization.py +0 -0
  16. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/domain/intelligence.py +0 -0
  17. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/domain/knowledge.py +0 -0
  18. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/domain/productivity.py +0 -0
  19. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/domain/user_config.py +0 -0
  20. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/infrastructure/config.py +0 -0
  21. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/infrastructure/context.py +0 -0
  22. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/infrastructure/fenix_api/client.py +0 -0
  23. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/infrastructure/http_client.py +0 -0
  24. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/infrastructure/logging.py +0 -0
  25. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/interface/mcp_server.py +0 -0
  26. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/interface/transports.py +0 -0
  27. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp/main.py +0 -0
  28. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp.egg-info/SOURCES.txt +0 -0
  29. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp.egg-info/dependency_links.txt +0 -0
  30. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp.egg-info/entry_points.txt +0 -0
  31. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp.egg-info/requires.txt +0 -0
  32. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/fenix_mcp.egg-info/top_level.txt +0 -0
  33. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/pyproject.toml +0 -0
  34. {fenix_mcp-0.5.5 → fenix_mcp-0.5.6}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fenix-mcp
3
- Version: 0.5.5
3
+ Version: 0.5.6
4
4
  Summary: Fênix Cloud MCP server implemented in Python
5
5
  Author: Fenix Inc
6
6
  Requires-Python: >=3.10
@@ -8,4 +8,4 @@ Fênix Cloud MCP Server (Python edition).
8
8
  __all__ = ["__version__"]
9
9
 
10
10
 
11
- __version__ = "0.5.5"
11
+ __version__ = "0.5.6"
@@ -155,7 +155,10 @@ class IntelligenceTool(Tool):
155
155
  async def _handle_smart_create(self, payload: IntelligenceRequest):
156
156
  if not payload.title or not payload.content:
157
157
  return text("❌ Informe título e conteúdo para criar uma memória.")
158
- normalized_tags = _ensure_tag_sequence(payload.tags)
158
+ try:
159
+ normalized_tags = _ensure_tag_sequence(payload.tags)
160
+ except ValueError as exc:
161
+ return text(f"❌ {exc}")
159
162
  memory = await self._service.smart_create_memory(
160
163
  title=payload.title,
161
164
  content=payload.content,
@@ -260,7 +263,10 @@ class IntelligenceTool(Tool):
260
263
  existing = await self._service.get_memory(
261
264
  payload.id, include_content=False, include_metadata=True
262
265
  )
263
- normalized_tags = _ensure_tag_sequence(payload.tags)
266
+ try:
267
+ normalized_tags = _ensure_tag_sequence(payload.tags)
268
+ except ValueError as exc:
269
+ return text(f"❌ {exc}")
264
270
  metadata = build_metadata(
265
271
  payload.metadata,
266
272
  importance=payload.importance,
@@ -324,6 +330,8 @@ def _ensure_tag_sequence(raw: Optional[Any]) -> Optional[List[str]]:
324
330
  result = [str(item).strip() for item in raw if str(item).strip()]
325
331
  return result or None
326
332
  if isinstance(raw, str):
327
- items = [part.strip() for part in raw.split(",") if part.strip()]
328
- return items or None
333
+ raise ValueError(
334
+ "O campo `tags` deve ser enviado como array JSON, por exemplo: "
335
+ '["tag1", "tag2"].'
336
+ )
329
337
  return [str(raw).strip()]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fenix-mcp
3
- Version: 0.5.5
3
+ Version: 0.5.6
4
4
  Summary: Fênix Cloud MCP server implemented in Python
5
5
  Author: Fenix Inc
6
6
  Requires-Python: >=3.10
File without changes
File without changes
File without changes
File without changes