Skip to main content
Glama
threat-zone

Threat.Zone MCP Server

by threat-zone

get_server_config

Retrieve current server configuration details like API URL, version, and connection status to verify setup and connectivity for threat analysis operations.

Instructions

Get current server configuration including API URL and connection status.

Returns: Configuration details including API URL, version, and status

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The get_server_config tool handler: an async function decorated with @app.tool that returns the server configuration dictionary, including API URL, version, API key status, connection test result, and workspace info if connected.
    @app.tool async def get_server_config() -> Dict[str, Any]: """ Get current server configuration including API URL and connection status. Returns: Configuration details including API URL, version, and status """ config = { "api_url": API_BASE_URL, "version": "0.1.0", "api_key_configured": bool(API_KEY and len(API_KEY) > 10) } # Test connection if API key is available if config["api_key_configured"]: try: user_info = await get_client().get("/public-api/me") config["connection_status"] = "connected" config["workspace"] = user_info.get("userInfo", {}).get("workspace", {}).get("name", "Unknown") except Exception as e: config["connection_status"] = "failed" config["error"] = str(e) else: config["connection_status"] = "no_api_key" return config
  • The @app.tool decorator registers the get_server_config function as an MCP tool.
    @app.tool

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/threat-zone/threatzonemcp'

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