Skip to main content
Glama
djm81
by djm81

get_server_env_details

Retrieve Python environment details including sys.path and sys.executable from the Log Analyzer MCP server to understand its runtime configuration for log analysis operations.

Instructions

Returns sys.path and sys.executable from the running MCP server.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler function for the 'get_server_env_details' tool. Decorated with @mcp.tool() which handles registration in FastMCP. Returns server environment details including sys.executable, sys.path, cwd, and PYTHONPATH.
    @mcp.tool() async def get_server_env_details() -> dict[str, Any]: """Returns sys.path and sys.executable from the running MCP server.""" logger.info("get_server_env_details called.") details = { "sys_executable": sys.executable, "sys_path": sys.path, "cwd": os.getcwd(), "environ_pythonpath": os.environ.get("PYTHONPATH"), } logger.info(f"Server env details: {details}") return details

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/djm81/log_analyzer_mcp'

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