rootly-mcp-server 2.1.3__py3-none-any.whl → 2.1.4__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.
- rootly_mcp_server/server.py +11 -1
- {rootly_mcp_server-2.1.3.dist-info → rootly_mcp_server-2.1.4.dist-info}/METADATA +1 -1
- {rootly_mcp_server-2.1.3.dist-info → rootly_mcp_server-2.1.4.dist-info}/RECORD +6 -6
- {rootly_mcp_server-2.1.3.dist-info → rootly_mcp_server-2.1.4.dist-info}/WHEEL +0 -0
- {rootly_mcp_server-2.1.3.dist-info → rootly_mcp_server-2.1.4.dist-info}/entry_points.txt +0 -0
- {rootly_mcp_server-2.1.3.dist-info → rootly_mcp_server-2.1.4.dist-info}/licenses/LICENSE +0 -0
rootly_mcp_server/server.py
CHANGED
|
@@ -381,11 +381,21 @@ class AuthenticatedHTTPXClient:
|
|
|
381
381
|
return transformed
|
|
382
382
|
|
|
383
383
|
async def request(self, method: str, url: str, **kwargs):
|
|
384
|
-
"""Override request to transform parameters."""
|
|
384
|
+
"""Override request to transform parameters and ensure correct headers."""
|
|
385
385
|
# Transform query parameters
|
|
386
386
|
if "params" in kwargs:
|
|
387
387
|
kwargs["params"] = self._transform_params(kwargs["params"])
|
|
388
388
|
|
|
389
|
+
# Ensure Content-Type and Accept headers are always set correctly for Rootly API
|
|
390
|
+
# This is critical because FastMCP may pass headers from the MCP client request
|
|
391
|
+
# (e.g., Content-Type: application/json from SSE) which would override our defaults
|
|
392
|
+
if "headers" in kwargs:
|
|
393
|
+
headers = dict(kwargs["headers"]) if kwargs["headers"] else {}
|
|
394
|
+
# Always use JSON-API content type for Rootly API
|
|
395
|
+
headers["Content-Type"] = "application/vnd.api+json"
|
|
396
|
+
headers["Accept"] = "application/vnd.api+json"
|
|
397
|
+
kwargs["headers"] = headers
|
|
398
|
+
|
|
389
399
|
# Call the underlying client's request method and let it handle everything
|
|
390
400
|
return await self.client.request(method, url, **kwargs)
|
|
391
401
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rootly-mcp-server
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.4
|
|
4
4
|
Summary: Secure Model Context Protocol server for Rootly APIs with AI SRE capabilities, comprehensive error handling, and input validation
|
|
5
5
|
Project-URL: Homepage, https://github.com/Rootly-AI-Labs/Rootly-MCP-server
|
|
6
6
|
Project-URL: Issues, https://github.com/Rootly-AI-Labs/Rootly-MCP-server/issues
|
|
@@ -6,14 +6,14 @@ rootly_mcp_server/monitoring.py,sha256=k1X7vK65FOTrCrOsLUXrFm6AJxKpXt_a0PzL6xdPu
|
|
|
6
6
|
rootly_mcp_server/och_client.py,sha256=tz_Qw8NwAmrlSjtl-V6WNVChiIofyur06YJZRfYotKE,2737
|
|
7
7
|
rootly_mcp_server/pagination.py,sha256=2hZSO4DLUEJZbdF8oDfIt2_7X_XGBG1jIxN8VGmeJBE,2420
|
|
8
8
|
rootly_mcp_server/security.py,sha256=YkMoVALZ3XaKnMu3yF5kVf3SW_jdKHllSMwVLk1OlX0,11556
|
|
9
|
-
rootly_mcp_server/server.py,sha256=
|
|
9
|
+
rootly_mcp_server/server.py,sha256=FymvgcoKBCj_ULM1fw8fSd6vXq71ys1Tg1kihb1fjT4,163851
|
|
10
10
|
rootly_mcp_server/smart_utils.py,sha256=c7S-8H151GfmDw6dZBDdLH_cCmR1qiXkKEYSKc0WwUY,23481
|
|
11
11
|
rootly_mcp_server/texttest.json,sha256=KV9m13kWugmW1VEpU80Irp50uCcLgJtV1YT-JzMogQg,154182
|
|
12
12
|
rootly_mcp_server/utils.py,sha256=TWG1MaaFKrU1phRhU6FgHuZAEv91JOe_1w0L2OrPJMY,4406
|
|
13
13
|
rootly_mcp_server/validators.py,sha256=z1Lvel2SpOFLo1cPdQGSrX2ySt6zqR42w0R6QV9c2Cc,4092
|
|
14
14
|
rootly_mcp_server/data/__init__.py,sha256=KdWD6hiRssHXt0Ywgj3wjNHY1sx-XSPEqVHqrTArf54,143
|
|
15
|
-
rootly_mcp_server-2.1.
|
|
16
|
-
rootly_mcp_server-2.1.
|
|
17
|
-
rootly_mcp_server-2.1.
|
|
18
|
-
rootly_mcp_server-2.1.
|
|
19
|
-
rootly_mcp_server-2.1.
|
|
15
|
+
rootly_mcp_server-2.1.4.dist-info/METADATA,sha256=SmppK2hXkVEav1lWhENMOv-LVsiRkOkbgeGIz9TVskk,9892
|
|
16
|
+
rootly_mcp_server-2.1.4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
17
|
+
rootly_mcp_server-2.1.4.dist-info/entry_points.txt,sha256=NE33b8VgigVPGBkboyo6pvN1Vz35HZtLybxMO4Q03PI,70
|
|
18
|
+
rootly_mcp_server-2.1.4.dist-info/licenses/LICENSE,sha256=c9w9ZZGl14r54tsP40oaq5adTVX_HMNHozPIH2ymzmw,11341
|
|
19
|
+
rootly_mcp_server-2.1.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|