Skip to content

Overview

A schema is a single .mjs file that wraps a data source for AI agents. Each schema declares its tools, resources, prompts, and skills in a static main export. An optional handlers export adds response transformation.

FlowMCP v3.0.0 supports four primitives:

Every schema exports two things:

ExportRequiredPurpose
mainYesDeclarative configuration — tools, resources, prompts, skills. JSON-serializable and hashable.
handlersNoResponse transformation — pre/post processing for API responses.