Skip to main content
Glama
by microsoft
code-xray.genai.js880 B
script({ title: "Code XRay", maxTokens: 16000, group: "samples", description: "Given a source file in a programming language, extract the structure necessary to do LLM queries", }) def( "FILE", env.files.filter((f) => !f.filename.endsWith(".xray")), { ignoreEmpty: true } ) const spec = env.files.find((f) => f.filename.endsWith(".md")) def("SPEC", spec) $`You are an expert at programming in all known languages. For each FILE 'filename.<EXT>', generate the code structure in FILE 'filename.<EXT>.xray' that ignores the internal details of the implementation and extracts enough information for an LLM to use the code elements in the source file in the context of the SPEC task. - Do not generate a pseudo-file for SPEC. - Generate commments that describe the internal structure of the code if it is not obvious from the code signature. `

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