Skip to main content
Glama
nesirat

MCP Vulnerability Management System

by nesirat
test_login.py1 kB
import requests import json def test_login(): url = "http://zabbix:8000/token" # Use the correct remote server address data = { "username": "admin@mcp.local", "password": "admin", "remember": "true" # Keep as string "true" or "false" as expected by the endpoint } print("\nTesting login endpoint...") print(f"Request URL: {url}") print(f"Request data: {json.dumps(data, indent=2)}") try: # Use form data instead of JSON response = requests.post(url, data=data) print(f"\nResponse status code: {response.status_code}") print(f"Response headers: {json.dumps(dict(response.headers), indent=2)}") if response.ok: print(f"Response body: {json.dumps(response.json(), indent=2)}") else: print(f"Error response: {response.text}") except Exception as e: print(f"Error making request: {str(e)}") if __name__ == "__main__": test_login()

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nesirat/MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server