Skip to main content
Glama
by microsoft
defoutputprocessor.genai.js543 B
script({ model: "small", title: "custom output", files: "src/rag/markdown.md", tests: { files: "src/rag/markdown.md" }, system: [], }) const output = env.files[0].filename + ".txt" def("FILE", env.files) $`Summarize all the files. Respond as raw text.` defOutputProcessor(async (o) => { console.log(`writing to ${output}`) return { files: { [output]: o.text, }, } }) defOutputProcessor(o => { const { text } = o console.log(`doing something with text`) console.log(text) })

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