fenix-mcp 1.11.0__py3-none-any.whl → 1.11.1__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 CHANGED
@@ -8,4 +8,4 @@ Fênix Cloud MCP Server (Python edition).
8
8
  __all__ = ["__version__"]
9
9
 
10
10
 
11
- __version__ = "1.11.0"
11
+ __version__ = "1.11.1"
@@ -33,7 +33,6 @@ class FenixApiClient:
33
33
 
34
34
  base_url: str
35
35
  personal_access_token: Optional[str]
36
- core_documents_token: Optional[str] = None
37
36
  timeout: float = 30.0
38
37
  _http: HttpClient = field(init=False, repr=False)
39
38
 
@@ -71,11 +70,6 @@ class FenixApiClient:
71
70
  headers.pop("Authorization", None)
72
71
  self._http.default_headers = headers
73
72
 
74
- def update_core_documents_token(self, token: Optional[str]) -> None:
75
- """Update the MCP token used to access public core document endpoints."""
76
-
77
- self.core_documents_token = token
78
-
79
73
  def _build_params(
80
74
  self,
81
75
  *,
@@ -137,38 +131,16 @@ class FenixApiClient:
137
131
  return self._request("GET", "/api/auth/profile")
138
132
 
139
133
  # ------------------------------------------------------------------
140
- # Core documents
134
+ # Core documents (requires PAT authentication)
141
135
  # ------------------------------------------------------------------
142
136
 
143
137
  def list_core_documents(self, *, return_content: bool = False) -> Any:
144
- params = self._build_params(optional={"returnContent": return_content})
145
- headers = (
146
- {"x-mcp-token": self.core_documents_token}
147
- if self.core_documents_token
148
- else None
149
- )
150
- return self._request(
151
- "GET", "/api/core-documents/mcp/all", params=params, headers=headers
152
- )
153
-
154
- def get_core_document_by_name(
155
- self, name: str, *, return_content: bool = False
156
- ) -> Any:
157
- params = self._build_params(optional={"returnContent": return_content})
158
- headers = (
159
- {"x-mcp-token": self.core_documents_token}
160
- if self.core_documents_token
161
- else None
162
- )
163
- return self._request(
164
- "GET", f"/api/core-documents/mcp/{name}", params=params, headers=headers
165
- )
166
-
167
- def list_core_documents_auth(self, *, return_content: bool = False) -> Any:
138
+ """List all core documents. Requires valid PAT."""
168
139
  params = self._build_params(optional={"returnContent": return_content})
169
140
  return self._request("GET", "/api/core-documents", params=params)
170
141
 
171
142
  def get_core_document(self, name: str, *, return_content: bool = False) -> Any:
143
+ """Get a core document by name. Requires valid PAT."""
172
144
  params = self._build_params(optional={"returnContent": return_content})
173
145
  return self._request("GET", f"/api/core-documents/{name}", params=params)
174
146
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fenix-mcp
3
- Version: 1.11.0
3
+ Version: 1.11.1
4
4
  Summary: Fênix Cloud MCP server implemented in Python
5
5
  Author: Fenix Inc
6
6
  Requires-Python: >=3.10
@@ -1,4 +1,4 @@
1
- fenix_mcp/__init__.py,sha256=17a6anjdJHVc3TWomuQjFJeic0Pk_iIb4z6-uyKORw0,181
1
+ fenix_mcp/__init__.py,sha256=wxNxqqpM42ftMbpmNbeurEBsHypAnfgnwhv6pwyRJIw,181
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=ZCb9g4ij5Hbb0410NEZTYXvPWq-Zkg8ZCsinTa3gCY4,4741
@@ -19,11 +19,11 @@ fenix_mcp/infrastructure/config.py,sha256=zhJ3hhsP-bRfICcdq8rIDh5NGDe_u7AGpcgjcc
19
19
  fenix_mcp/infrastructure/context.py,sha256=kiDiamiPbHZpTGyZMylcQwtLhfaDXrxAkWSst_DWQNw,470
20
20
  fenix_mcp/infrastructure/http_client.py,sha256=QLIPhGYR_cBQGsbIO4RTR6ksyvkQt-OKHQU1JhPyap8,2470
21
21
  fenix_mcp/infrastructure/logging.py,sha256=bHrWlSi_0HshRe3--BK_5nzUszW-gh37q6jsd0ShS2Y,1371
22
- fenix_mcp/infrastructure/fenix_api/client.py,sha256=YIoDIUQdNd7zzt2X3OsgajjxH5Jqb_85A6BvQDN6H6o,28693
22
+ fenix_mcp/infrastructure/fenix_api/client.py,sha256=Sv3hCIFuO0llbv7RDtyLweBNRh82HxZLxDpQVV4UvXg,27709
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.11.0.dist-info/METADATA,sha256=0U8QF618uJxIavnMhEnIbSD_5qPf48e1eavB_0dX3n0,7261
26
- fenix_mcp-1.11.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
- fenix_mcp-1.11.0.dist-info/entry_points.txt,sha256=o52x_YHBupEd-1Z1GSfUjv3gJrx5_I-EkHhCgt1WBaE,49
28
- fenix_mcp-1.11.0.dist-info/top_level.txt,sha256=2G1UtKpwjaIGQyE7sRoHecxaGLeuexfjrOUjv9DDKh4,10
29
- fenix_mcp-1.11.0.dist-info/RECORD,,
25
+ fenix_mcp-1.11.1.dist-info/METADATA,sha256=o_I6x0qfkw0u73O3ow5zkBzDqqf0Zfs-CUNtyUM3sRc,7261
26
+ fenix_mcp-1.11.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
+ fenix_mcp-1.11.1.dist-info/entry_points.txt,sha256=o52x_YHBupEd-1Z1GSfUjv3gJrx5_I-EkHhCgt1WBaE,49
28
+ fenix_mcp-1.11.1.dist-info/top_level.txt,sha256=2G1UtKpwjaIGQyE7sRoHecxaGLeuexfjrOUjv9DDKh4,10
29
+ fenix_mcp-1.11.1.dist-info/RECORD,,