Skip to main content
Glama
by microsoft
exec.genai.mjs609 B
script({ model: "small", tests: { keywords: ["Python", "3."], }, }) const version = await host.exec("python", ["--version"]) if (!/^python \d/i.test(version.stdout)) throw new Error("python --version failed") def("VERSION", version) defTool( "python_version", "determines the version of python on this system", {}, async (_) => { console.debug(`determining python version`) const version = await host.exec("python", ["--version"]) return version.stdout?.replace(/^python\s/i, "") || "?" } ) $`What is the version of python on this machine?`

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