Skip to main content
Glama

Compiler Explorer MCP

by torshepherd

list_compiler_versions

Retrieve compiler versions by specifying a regex pattern to match compiler names. Returns a list of compilers with IDs, names, and version strings for easy identification and selection.

Instructions

Get available compiler versions matching a compiler name regex.

NOTE: This may return a lot of results! Choose a specific regex to narrow down the results and not overflow the MCP client. Args: compiler_regex: Regular expression to match compiler names (case-insensitive) Returns: List of dictionaries containing matching compiler information, each with keys: - id: Unique identifier for the compiler - name: Display name of the compiler - semver: Version string of the compiler Raises: HTTPException: If the API request fails Example: >>> await list_compiler_versions("gcc") [{"id": "gcc-12.2", "name": "GCC 12.2"}, {"id": "gcc-11.3", "name": "GCC 11.3"}] >>> await list_compiler_versions("clang.*trunk") [..., {"id": "irclangtrunk", "name": "clang (trunk)", "lang": "llvm", "compilerType": "", "semver": "(trunk)", "instructionSet": "amd64"}, ...]

Input Schema

NameRequiredDescriptionDefault
compiler_regexYes

Input Schema (JSON Schema)

{ "properties": { "compiler_regex": { "title": "Compiler Regex", "type": "string" } }, "required": [ "compiler_regex" ], "title": "list_compiler_versionsArguments", "type": "object" }

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/torshepherd/compiler-explorer-mcp'

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