fenix-mcp 0.5.1__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 (35) hide show
  1. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/PKG-INFO +1 -1
  2. fenix_mcp-0.5.6/fenix_mcp/__init__.py +11 -0
  3. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/application/tools/intelligence.py +12 -4
  4. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp.egg-info/PKG-INFO +1 -1
  5. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/pyproject.toml +1 -1
  6. fenix_mcp-0.5.1/fenix_mcp/__init__.py +0 -20
  7. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/README.md +0 -0
  8. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/application/presenters.py +0 -0
  9. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/application/tool_base.py +0 -0
  10. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/application/tool_registry.py +0 -0
  11. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/application/tools/__init__.py +0 -0
  12. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/application/tools/health.py +0 -0
  13. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/application/tools/initialize.py +0 -0
  14. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/application/tools/knowledge.py +0 -0
  15. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/application/tools/productivity.py +0 -0
  16. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/application/tools/user_config.py +0 -0
  17. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/domain/initialization.py +0 -0
  18. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/domain/intelligence.py +0 -0
  19. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/domain/knowledge.py +0 -0
  20. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/domain/productivity.py +0 -0
  21. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/domain/user_config.py +0 -0
  22. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/infrastructure/config.py +0 -0
  23. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/infrastructure/context.py +0 -0
  24. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/infrastructure/fenix_api/client.py +0 -0
  25. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/infrastructure/http_client.py +0 -0
  26. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/infrastructure/logging.py +0 -0
  27. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/interface/mcp_server.py +0 -0
  28. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/interface/transports.py +0 -0
  29. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp/main.py +0 -0
  30. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp.egg-info/SOURCES.txt +0 -0
  31. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp.egg-info/dependency_links.txt +0 -0
  32. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp.egg-info/entry_points.txt +0 -0
  33. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp.egg-info/requires.txt +0 -0
  34. {fenix_mcp-0.5.1 → fenix_mcp-0.5.6}/fenix_mcp.egg-info/top_level.txt +0 -0
  35. {fenix_mcp-0.5.1 → 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.1
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
@@ -0,0 +1,11 @@
1
+ # SPDX-FileCopyrightText: 2024 Bruno Fernandes
2
+ # SPDX-License-Identifier: MIT
3
+
4
+ """
5
+ Fênix Cloud MCP Server (Python edition).
6
+ """
7
+
8
+ __all__ = ["__version__"]
9
+
10
+
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.1
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
@@ -29,7 +29,7 @@ dev = [
29
29
 
30
30
  [build-system]
31
31
  requires = ["setuptools>=68", "wheel"]
32
- build-backend = "setuptools.build_meta:__legacy__"
32
+ build-backend = "setuptools.build_meta"
33
33
 
34
34
  [tool.setuptools.dynamic]
35
35
  version = {attr = "fenix_mcp.__version__"}
@@ -1,20 +0,0 @@
1
- # SPDX-FileCopyrightText: 2024 Bruno Fernandes
2
- # SPDX-License-Identifier: MIT
3
-
4
- """
5
- Fênix Cloud MCP Server (Python edition).
6
-
7
- This package follows a Clean Architecture layout inside the MCP ecosystem:
8
-
9
- - interface: transports and MCP protocol glue code
10
- - application: tools, registries, presenters and use-case orchestrators
11
- - domain: pure business models and services
12
- - infrastructure: API clients, config, logging and shared context
13
-
14
- Version 0.1.0 - Initial release with basic MCP functionality.
15
- Updated with improved error handling and better documentation.
16
- """
17
-
18
- __all__ = ["__version__"]
19
-
20
- __version__ = "0.5.1"
File without changes
File without changes
File without changes