Skip to main content
Glama
CLEARSY

Atelier B MCP Server

Official
by CLEARSY

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ATELIERB_PATHNoPath to Atelier B installationC:\Program Files\Atelier B Community Edition 24.04.2 24.04.2
ATELIERB_WORKSPACEYesPath to B projects workspace
ATELIERB_BBATCH_CMDNobbatch executable namebbatch.exe
ATELIERB_COMMAND_TIMEOUTNoCommand timeout in seconds120

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
experimental
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
atelierb_list_projectsA

List all available Atelier B projects

atelierb_infos_projectB

Get detailed information about an Atelier B project

atelierb_list_componentsA

List all components (machines, refinements, implementations) in a project

atelierb_typecheckB

Typecheck a B component to verify syntax and type correctness

atelierb_b0checkA

B0 check a B component to verify it is B0 compliant (required before C code generation)

atelierb_pogenerateB

Generate proof obligations for a B component

atelierb_proveB

Run automatic prover on a B component. Force levels: 0-3 (auto), 10-13 (forced), -1 (fast), -2 (replay)

atelierb_statusB

Get proof status of a component or entire project

atelierb_list_filesA

List B source files in the workspace. Supports filtering by project and extension (.mch, .ref, .imp, .erf, etc.)

atelierb_read_fileA

Read the content of a B source file (.mch, .ref, .imp, etc.), C code (.c, .h), or Makefile from the workspace. Content is returned verbatim. For a .pmi file, a 'po_labels' list names the proof obligation each entry of its flat theories (ProofState, MethodList, PassList) belongs to; those entries carry no operation name of their own, so do not try to infer it from their position.

atelierb_write_fileA

Write or update the content of a B source file (.mch, .ref, .imp, etc.), C code (.c, .h), or Makefile in the workspace. Creates a backup by default.

atelierb_list_project_structureA

Get the directory structure of a B project showing files and subdirectories

atelierb_create_projectA

Create a new Atelier B project in the workspace with bdp, lang, and src subdirectories

atelierb_add_componentA

Add a new B component (machine, refinement, or implementation) to a project. Creates the file in src/ with a template and registers it with Atelier B.

atelierb_remove_componentA

Remove a component from an Atelier B project. Optionally delete the source file from disk.

atelierb_remove_projectA

Remove an Atelier B project. WARNING: If delete_files is true, permanently deletes all project files!

atelierb_generate_cA

Generate C code for a single B component (implementation or basic machine). Output goes to lang/c directory.

atelierb_generate_project_cA

Generate C code for a complete B project from a toplevel component. Output goes to lang/c directory.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CLEARSY/atelierb-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server