Skip to main content
Glama
by microsoft
gcc-container.genai.mjs591 B
script({ model: "large", }) const container = await host.container({ image: "gcc", }) let sourceIndex = 0 defTool( "gcc", "GNU Compiler Collection (GCC), C/C++ compiler. Use this tool to compile C/C++ source code.", { source: "", }, async (args) => { const { source } = args const fn = `tmp/${sourceIndex++}/main.c` await container.writeText(fn, source) const res = await container.exec("gcc", [fn]) return res } ) $`Generate a valid C program that prints "Hello, World!" and use gcc to validate the syntax.`

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/microsoft/genaiscript'

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