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
| Name | Required | Description | Default |
|---|---|---|---|
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