fenix-mcp 1.11.0__tar.gz → 1.11.1__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.
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/PKG-INFO +1 -1
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/__init__.py +1 -1
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/infrastructure/fenix_api/client.py +3 -31
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp.egg-info/PKG-INFO +1 -1
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/README.md +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/application/presenters.py +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/application/tool_base.py +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/application/tool_registry.py +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/application/tools/__init__.py +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/application/tools/health.py +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/application/tools/initialize.py +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/application/tools/intelligence.py +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/application/tools/knowledge.py +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/application/tools/productivity.py +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/application/tools/user_config.py +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/domain/initialization.py +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/domain/intelligence.py +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/domain/knowledge.py +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/domain/productivity.py +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/domain/user_config.py +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/infrastructure/config.py +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/infrastructure/context.py +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/infrastructure/http_client.py +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/infrastructure/logging.py +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/interface/mcp_server.py +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/interface/transports.py +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp/main.py +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp.egg-info/SOURCES.txt +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp.egg-info/dependency_links.txt +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp.egg-info/entry_points.txt +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp.egg-info/requires.txt +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/fenix_mcp.egg-info/top_level.txt +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/pyproject.toml +0 -0
- {fenix_mcp-1.11.0 → fenix_mcp-1.11.1}/setup.cfg +0 -0
|
@@ -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
|
-
|
|
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
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|