Skip to content

Commit cd1834e

Browse files
authored
Support app.region format URLS (#8)
# Support app.region format URLS ## Changes Support the https://app.region.sysdig.com URLs
1 parent e981076 commit cd1834e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

charts/sysdig-mcp/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ version: 0.1.3
2626
# incremented each time you make changes to the application. Versions are not expected to
2727
# follow Semantic Versioning. They should reflect the version the application is using.
2828
# It is recommended to use it with quotes.
29-
appVersion: "v0.1.3-beta.0"
29+
appVersion: "v0.1.3-beta.1"

charts/sysdig-mcp/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ image:
88
repository: ghcr.io/sysdiglabs/sysdig-mcp-server
99
pullPolicy: IfNotPresent
1010
# Overrides the image tag whose default is the chart appVersion.
11-
tag: "v0.1.3-beta.0"
11+
tag: "v0.1.3-beta.1"
1212

1313
imagePullSecrets: []
1414
nameOverride: ""

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "sysdig-mcp-server"
3-
version = "0.1.3-beta.0"
3+
version = "0.1.3-beta.1"
44
description = "Sysdig MCP Server"
55
readme = "README.md"
66
requires-python = ">=3.12"

utils/sysdig/client_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def _get_public_api_url(base_url: str) -> str:
7979
# This assumes the region is a subdomain that starts with 2 lowercase letters and ends with a digit
8080
pattern = re.search(r"https://(?:(?P<region1>[a-z]{2}\d)\.app|app\.(?P<region2>[a-z]{2}\d))\.sysdig\.com", base_url)
8181
if pattern:
82-
region = pattern.group(1) # Extract the region
82+
region = pattern.group("region1") or pattern.group("region2") # Extract the region
8383
return f"https://api.{region}.sysdig.com"
8484
else:
8585
# Edge case for the secure API URL that is us1

0 commit comments

Comments
 (0)