Build an adapter

Choose the right layer

Layer Owns
Biome MCP Generic MCP discovery, tool dispatch, CLI and batch mechanics
Biome Editor Contracts Shared interfaces, public names, verification rules and engine server registration
Engine adapter Native editor or runtime plugin, connection, supported operations and executable

Implement the interfaces for operations the engine supports. An adapter can return native details alongside canonical observations, but should not claim support for checks it cannot run.

Register tools

  1. Generate or supply the engine catalog and validate its public names with biome_editor.public_names.validate_public_catalog(engine, names).
  2. Call biome_editor.engine_profile.create_engine_server(name, catalog=..., compact=...) and register the native tools on the returned server.
  3. Call register_engine_surface(server, batch=...) to expose discovery and the installed batch guide.
  4. Use biome_editor.engine_response.mcp_tool_result(reply) at the MCP boundary. Pass structured=True for native tree or page responses that return objects.

The catalog and namespace guides show only tools visible to the caller. Tool permission and native connection policy are separate from public-name validation. See the registration API and the public-name contract.

Check generated contracts

Build the sibling Biome DSL checkout at the revision pinned in dsl/biome.project. Then run from this repository:

CLI=../biome-dsl/implementations/typescript/packages/biome/src/bin.mjs
node "$CLI" lock check --project dsl
node "$CLI" generate --check --project dsl
uv run --locked --extra dev pytest tests -q

The Python package works without the compiler. If you change a locked construct intentionally, use node "$CLI" lock update --project dsl and review the diff before repeating the checks.

Preview this site

uvx --from mkdocs==1.6.1 mkdocs build --strict
uvx --from mkdocs==1.6.1 mkdocs serve