← Engineering articles

How Dart/Dio reached the converter and MCP

One hosted Dart/Dio target serves the website and the MCP server through two generated clients. The Orders replay shows how they reach the same output.

OpenAPI · case study2 min readBy José A. Saldaña PérezPublished Updated
Field guide

Read this note in three passes

  1. 01
    Trace the clients

    Follow the website and MCP requests to the Dart/Dio endpoint.

  2. 02
    Compare the output

    Use the Orders replay receipt to verify the two returned files.

  3. 03
    Run the local CLI

    Take the pinned Dart starter into a clean directory.

One OpenAPI target, two ways to reach it

When MetaEngine added Dart/Dio as an OpenAPI target, the website and the MCP server picked up the same hosted endpoint, POST /api/openapi/dart-dio.

Entry point Client that calls the API Where you get the files
OpenAPI converter The website's generated Angular client Preview or download them in the browser
generate_openapi with dart-dio The MCP server's generated TypeScript Fetch client Find them in the local output directory supplied to the stdio server

Dart support arrived in MCP server 1.6.0. The hosted rollout recorded engine build 2026.11.25.1 in development and 2026.11.25.2 for the verified production update. The anonymous API response does not expose its running engine build.

Replay the same input

We sent the Orders v2 OpenAPI spec to the hosted route with a 1,500 ms Dio receive timeout. It returned order.dart and orders_api.dart. We repeated the request through the installed MCP server 1.6.1 in a fresh output directory. Both Dart files matched the direct response byte for byte. The replay receipt records the input, options and output hashes.

Open Orders in the Dart/Dio converter to try the browser route. Use the OpenAPI converter or the MCP OpenAPI tool for Dart. The Playground handles model graphs and offers its own language selections.

Use the standalone generator

The Dart CLI 1.0.0 on Pub has its own release version. Its first run fetches and verifies the matching platform runner. The CLI generates code on your machine. The pinned Orders starter includes the input, a handwritten caller and commands for checking generated-file drift. The generated client uses Dio to call your API.

The standalone package is free to use under the existing MIT terms.