qualys-mcp 2.1.2__tar.gz → 2.1.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qualys-mcp
3
- Version: 2.1.2
3
+ Version: 2.1.3
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.2"
7
+ version = "2.1.3"
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"
@@ -132,14 +132,17 @@ def get_eol_assets(stage_filter="EOL,EOL/EOS", limit=500):
132
132
  data = json.loads(resp.read())
133
133
  assets = []
134
134
  for a in data.get('assetListData', {}).get('asset', []):
135
- os_info = a.get('operatingSystem', {})
136
- lifecycle = os_info.get('lifecycle', {})
135
+ os_info = a.get('operatingSystem', {}) or {}
136
+ lifecycle = os_info.get('lifecycle', {}) or {}
137
+ os_name = os_info.get('osName', '') or os_info.get('fullName', '') or ''
138
+ if os_info.get('version'):
139
+ os_name = f"{os_name} {os_info.get('version', '')}".strip()
137
140
  assets.append({
138
141
  'assetId': a.get('assetId'),
139
142
  'address': a.get('address', ''),
140
143
  'dnsName': a.get('dnsHostName', ''),
141
144
  'operatingSystem': {
142
- 'osName': f"{os_info.get('name', '')} {os_info.get('version', '')}".strip(),
145
+ 'osName': os_name,
143
146
  'lifecycle': {
144
147
  'stage': lifecycle.get('stage', ''),
145
148
  'eolDate': lifecycle.get('eolDate', ''),
File without changes
File without changes
File without changes