Skip to main content
Glama
by microsoft
dup.genai.mts325 B
script({}) def("FILE", "hello world") def("FILE", "hello world") defOutputProcessor((output) => { const msg = output.messages.find((m) => m.role === "user") console.log({ msg }) const fileCount = ((msg.content as string).match(/<FILE>/g) || []).length if (fileCount > 2) throw new Error("Too many files") })

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