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:
Schema Structure
Section titled “Schema Structure”Every schema exports two things:
| Export | Required | Purpose |
|---|---|---|
main | Yes | Declarative configuration — tools, resources, prompts, skills. JSON-serializable and hashable. |
handlers | No | Response transformation — pre/post processing for API responses. |