get_environment_config
Retrieve the current environment configuration to verify available Python libraries and dependencies for code execution.
Instructions
Get the current environment configuration
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:960-971 (handler)The handler logic for the 'get_environment_config' tool, which returns the current environment configuration (ENV_CONFIG) as a JSON string in the response content.case "get_environment_config": { return { content: [{ type: "text", text: JSON.stringify({ status: 'success', config: ENV_CONFIG }), isError: false }] }; }
- src/index.ts:678-685 (schema)The tool schema definition including name, description, and empty input schema (no parameters required). This is part of the tools list returned by listTools.{ name: "get_environment_config", description: "Get the current environment configuration", inputSchema: { type: "object", properties: {} } }
- src/index.ts:678-687 (registration)Registration of the tool in the listTools response handler, defining it as available with its schema.{ name: "get_environment_config", description: "Get the current environment configuration", inputSchema: { type: "object", properties: {} } } ] };
- src/index.ts:27-36 (helper)Global ENV_CONFIG object used by the get_environment_config handler, initialized from environment variables.let ENV_CONFIG: EnvironmentConfig = { // Default environment (conda, venv, or venv-uv) type: (process.env.ENV_TYPE || 'conda') as 'conda' | 'venv' | 'venv-uv', // Name of the conda environment conda_name: process.env.CONDA_ENV_NAME, // Path to virtualenv venv_path: process.env.VENV_PATH, // Path to uv virtualenv uv_venv_path: process.env.UV_VENV_PATH };