Skip to main content
Glama

list_languages

Lists supported programming languages and their base Nix packages for creating ephemeral development environments with specific dependencies.

Instructions

List supported languages and their base Nix packages.

Input Schema

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "type": "object" }

Implementation Reference

  • The handler function for the 'list_languages' MCP tool. It iterates over the SUPPORTED_LANGUAGES dictionary and formats a list of supported languages with their labels and base Nix packages. Registered using the @mcp.tool() decorator.
    @mcp.tool() def list_languages() -> str: """List supported languages and their base Nix packages.""" lines = [] for key, profile in SUPPORTED_LANGUAGES.items(): base = ", ".join(profile.base_packages) lines.append(f"- {key}: {profile.label} (base: {base})") return "\n".join(lines)
  • Supporting data structures: LanguageProfile dataclass and SUPPORTED_LANGUAGES dictionary defining the available languages, labels, and base Nix packages used by the list_languages tool.
    @dataclass(frozen=True) class LanguageProfile: label: str base_packages: List[str] SUPPORTED_LANGUAGES: dict[str, LanguageProfile] = { # Interpreted runtimes where we can build an env via withPackages. "python": LanguageProfile(label="Python 3.13", base_packages=["python313"]), "ruby": LanguageProfile(label="Ruby 3.3", base_packages=["ruby_3_3"]), "r": LanguageProfile(label="R", base_packages=["R"]), "lua": LanguageProfile(label="Lua 5.4", base_packages=["lua5_4"]), }

Other Tools

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/StealthBadger747/mcp-omnienv-nix'

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