qualys-mcp 2.1.0__tar.gz → 2.1.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.
- {qualys_mcp-2.1.0 → qualys_mcp-2.1.1}/PKG-INFO +1 -1
- {qualys_mcp-2.1.0 → qualys_mcp-2.1.1}/pyproject.toml +1 -1
- {qualys_mcp-2.1.0 → qualys_mcp-2.1.1}/qualys_mcp.py +9 -2
- {qualys_mcp-2.1.0 → qualys_mcp-2.1.1}/.gitignore +0 -0
- {qualys_mcp-2.1.0 → qualys_mcp-2.1.1}/LICENSE +0 -0
- {qualys_mcp-2.1.0 → qualys_mcp-2.1.1}/README.md +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: qualys-mcp
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.1
|
|
4
4
|
Summary: MCP server for Qualys security APIs - natural language interaction with vulnerability, asset, and cloud security data
|
|
5
5
|
Project-URL: Homepage, https://github.com/nelssec/qualys-mcp
|
|
6
6
|
Project-URL: Repository, https://github.com/nelssec/qualys-mcp
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "qualys-mcp"
|
|
7
|
-
version = "2.1.
|
|
7
|
+
version = "2.1.1"
|
|
8
8
|
description = "MCP server for Qualys security APIs - natural language interaction with vulnerability, asset, and cloud security data"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -14,8 +14,15 @@ mcp = FastMCP("qualys-mcp")
|
|
|
14
14
|
|
|
15
15
|
USERNAME = os.environ.get('QUALYS_USERNAME', '')
|
|
16
16
|
PASSWORD = os.environ.get('QUALYS_PASSWORD', '')
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
|
|
18
|
+
def normalize_url(url):
|
|
19
|
+
url = url.strip().rstrip('/')
|
|
20
|
+
if url and not url.startswith('http'):
|
|
21
|
+
url = f"https://{url}"
|
|
22
|
+
return url
|
|
23
|
+
|
|
24
|
+
BASE_URL = normalize_url(os.environ.get('QUALYS_BASE_URL', ''))
|
|
25
|
+
GATEWAY_URL = normalize_url(os.environ.get('QUALYS_GATEWAY_URL', ''))
|
|
19
26
|
BASIC_AUTH = base64.b64encode(f"{USERNAME}:{PASSWORD}".encode()).decode()
|
|
20
27
|
BEARER_TOKEN = None
|
|
21
28
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|