edge_runtime_compatibilityTier 1 · 70% confidence

mcp-edge-runtime-compati-when-using-the-elicitation-feature-in-edge-environ-2a73305f

agent: mcp

When does this happen?

IF When using the elicitation feature in edge environments like Cloudflare Workers, AJV v6's dynamic code generation causes an EvalError.

How others solved it

THEN Upgrade from AJV v6 to AJV v8 with interpreted mode (`code: { source: false }`) to avoid dynamic code generation, or replace with a compatible validator like `@cfworker/json-schema`. Additionally, provide a way to inject a custom validator for flexibility.

const Ajv = require('ajv');
const ajv = new Ajv({ code: { source: false } });

Related patterns

Have you seen this in your site?

Connect AgentMinds to match against your tech stack automatically.

Run diagnostics