Skip to main content
Glama
bazinga012

MCP Code Executor

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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 }] }; }
  • 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: {} } } ] };
  • 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 };

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/bazinga012/mcp_code_executor'

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