qualys-mcp 2.1.6__py3-none-any.whl → 2.1.7__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: qualys-mcp
3
- Version: 2.1.6
3
+ Version: 2.1.7
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
@@ -0,0 +1,6 @@
1
+ qualys_mcp.py,sha256=RWb5GEmxOPPcdRZgQsYpSgGdsGwUiicUs8SGV4hktDQ,32155
2
+ qualys_mcp-2.1.7.dist-info/METADATA,sha256=6yxOEr-Nd-O7FFiz6Qh26IK0bOEEuc4RqjIWxYW9_lk,3295
3
+ qualys_mcp-2.1.7.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
4
+ qualys_mcp-2.1.7.dist-info/entry_points.txt,sha256=Dc8X0AhJDjGaZOJ0SNpWDWjEX4sYzrYa9FZEbggX0Rs,47
5
+ qualys_mcp-2.1.7.dist-info/licenses/LICENSE,sha256=dW3nC4AX_VbxPAgneSDR-miZPiHgAYw5JhPtdbUEt_E,1091
6
+ qualys_mcp-2.1.7.dist-info/RECORD,,
qualys_mcp.py CHANGED
@@ -32,10 +32,10 @@ def get_bearer_token():
32
32
  if BEARER_TOKEN:
33
33
  return BEARER_TOKEN
34
34
  try:
35
- req = Request(f"{GATEWAY_URL}/auth", method='POST')
36
- req.add_header('Authorization', f'Basic {BASIC_AUTH}')
35
+ auth_data = urlencode({'username': USERNAME, 'password': PASSWORD, 'token': 'true'}).encode()
36
+ req = Request(f"{GATEWAY_URL}/auth", data=auth_data, method='POST')
37
37
  req.add_header('Content-Type', 'application/x-www-form-urlencoded')
38
- with urlopen(req, data=b'', timeout=30) as resp:
38
+ with urlopen(req, timeout=30) as resp:
39
39
  BEARER_TOKEN = resp.read().decode().strip()
40
40
  return BEARER_TOKEN
41
41
  except:
@@ -1,6 +0,0 @@
1
- qualys_mcp.py,sha256=DT8VR-z550zEBE6RFYpe3lqBII7sTYKK5kdBYklNLvw,32110
2
- qualys_mcp-2.1.6.dist-info/METADATA,sha256=SL1HAAgP8JcETguRn1_zBuW8aOmMA0zbWdPEqCVnluk,3295
3
- qualys_mcp-2.1.6.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
4
- qualys_mcp-2.1.6.dist-info/entry_points.txt,sha256=Dc8X0AhJDjGaZOJ0SNpWDWjEX4sYzrYa9FZEbggX0Rs,47
5
- qualys_mcp-2.1.6.dist-info/licenses/LICENSE,sha256=dW3nC4AX_VbxPAgneSDR-miZPiHgAYw5JhPtdbUEt_E,1091
6
- qualys_mcp-2.1.6.dist-info/RECORD,,