Repository avatar
Other Tools
v0.33.188
active

clean-language

dev.cleanlanguage/clean-language

Write, check and compile Clean Language code: a type-safe language that compiles to WebAssembly.

Documentation

Clean Language for AI assistants

Clean Language is a type-safe language that compiles to WebAssembly. This MCP server lets your AI assistant write Clean code correctly: it reads the language reference and specification, type-checks code and compiles it to WebAssembly.

The compiler is included. Nothing else needs to be installed.

Preview. Clean Language is still young and some syntax will change in the next release. The bundle updates automatically when it does.

Install

As a plugin (assistants that support plugin marketplaces):

/plugin marketplace add Ivan-Pasco/clean-language-mcp
/plugin install clean-language@clean-language

As an MCP bundle (apps that open .mcpb files): download clean-language-mcp.mcpb and open it.

With npm (any MCP client):

{
  "mcpServers": {
    "clean-language": {
      "command": "npx",
      "args": ["-y", "@cleanlanguage/mcp"]
    }
  }
}

From the MCP Registry: search for Clean Language, or use the name dev.cleanlanguage/clean-language.

Manual setup: if you already have the Clean toolchain installed, add this to your MCP configuration:

{
  "mcpServers": {
    "clean-language": {
      "command": "cln",
      "args": ["mcp-server"]
    }
  }
}

Tools

ToolWhat it does
get_quick_referenceSyntax, types and patterns. The assistant calls this first.
get_specificationAny section of the language specification
checkType-check code without compiling
compileCompile code to WebAssembly
runCompile and validate a program in one step (it does not execute it)
explain_errorExplain an error code and how to fix it
list_builtins, list_types, list_functionsBuilt-in names and signatures
list_plugins, get_plugin_examplesFramework plugins and examples

Platforms

macOS (Apple Silicon and Intel), Linux x86-64, Windows x86-64.

How this repo works

This repo holds no compiler code. A daily job takes the latest compiler release and publishes it three ways: as clean-language-mcp.mcpb in this repo's releases (scripts/build-bundle.sh), as the npm package @cleanlanguage/mcp with one package per platform (scripts/build-npm.sh), and as the MCP Registry entry. It then pins the plugin to the new npm version.

Support

Report problems at github.com/Ivan-Pasco/clean-language-mcp/issues.

mcp-name: dev.cleanlanguage/clean-language

MCPB
https://github.com/Ivan-Pasco/clean-language-mcp/releases/download/v0.33.188/clean-language-mcp.mcpb
Install Command
# mcpb: https://github.com/Ivan-Pasco/clean-language-mcp/releases/download/v0.33.188/clean-language-mcp.mcpb