Skip to main content
Glama

MCP Ollama Consult Server

by Atomic-Germ
condition.ts565 B
export function evalCondition( expr: string, ctx: { memory: Record<string, any>; variables: Record<string, any> } ): boolean { try { // Provide `memory` and `$` (variables accessor) only // Note: this intentionally limits the globals available to the expression. const fn = new Function("memory", "$", `return (${expr});`); const result = fn(ctx.memory, (k: string) => ctx.variables[k]); return Boolean(result); } catch (e) { throw new Error(`Condition eval error: ${(e as Error).message}`); } } export default { evalCondition };

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/Atomic-Germ/mcp-consult'

If you have feedback or need assistance with the MCP directory API, please join our Discord server