// iterate over files and check if they are safe using llama-guard3:8b (https://ollama.com/library/llama-guard3)
for (const file of env.files) {
const { text } = await prompt`${file}`.options({
model: "ollama:llama-guard3:8b",
label: file.filename,
cache: "llama-guard3:8b",
system: [],
})
const safe = /safe/.test(text) && !/unsafe/.test(text)
if (!safe)
console.error(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