Chatter
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Chatter
MCP server for the BMB programming language
Chatter enables AI models to generate high-quality BMB code by providing real-time access to language specifications, compilation feedback, and contract verification.
Implementation status (2026-05-09, Cycles 2524–2556): Python scaffold in
chatter/. 74/74 pytest passing.
✅ Tools (12):
bmb_check,bmb_ir,bmb_run,bmb_verify,bmb_spec_lookup,bmb_lint,bmb_lint_explain,bmb_example,bmb_compile,bmb_test,bmb_from_rust,bmb_context_pack✅ Resources (4):
bmb://spec/full,bmb://spec/quick-reference,bmb://spec/rust-diff,bmb://context/stdlib✅ Prompts:
bmb_implement,bmb_add_contracts,bmb_optimizeLong-term (M3+) the implementation moves to BMB itself per the Rule 6 BMB-rewrite policy. The Python layer is intentionally thin to keep that port small.
Why Chatter?
BMB is an AI-first programming language—designed to be written by AI and reviewed by humans. But AI models have never seen BMB in their training data:
LLM Training Data:
Rust: ████████████████████████ ~2M repositories
C: ████████████████████████ ~3M repositories
Go: ████████████████ ~1M repositories
BMB: ▏ ~0 repositoriesWithout Chatter, AI models:
Confuse
T?withOption<T>Use
&for bitwise AND (should beband)Forget explicit
returnin block bodiesGenerate incorrect or missing contracts
Chatter solves this by injecting BMB knowledge at runtime.
Related MCP server: cint MCP Server
How It Works
┌─────────────┐ ┌─────────────────┐ ┌─────────────┐
│ LLM │────▶│ Chatter │────▶│ BMB │
│ (Claude) │◀────│ MCP Server │◀────│ Toolchain │
└─────────────┘ └─────────────────┘ └─────────────┘
│
┌──────┴──────┐
▼ ▼
[Spec Database] [Examples]Instead of stuffing the entire specification into every prompt (~15K tokens), Chatter provides selective, on-demand access to exactly what the AI needs.
Features
Tools
Tool | Status | Description |
| ✅ | Type-check code without full compilation |
| ✅ | Verify contracts using Z3 solver |
| ✅ | Search language specification by topic keyword |
| ✅ | Run style/convention linter, returns JSON warnings |
| ✅ | Lint with AI-friendly explanations and fix suggestions |
| ✅ | Get example code from tutorials by concept keyword |
| ✅ | Emit LLVM IR for a source snippet (debug/optimization analysis) |
| ✅ | Run code with tree-walking interpreter (no LLVM required) |
| ✅ | Compile to native executable (requires LLVM toolchain) |
| ✅ | Run test cases against BMB code |
| ✅ | Convert Rust code to BMB (heuristic — best-effort) |
| ✅ | Scan a project directory and return context-pack v1 JSON |
Resources
URI | Status | Description |
| ✅ | Complete language specification (docs/SPECIFICATION.md) |
| ✅ | Cheatsheet: syntax, contracts, gotchas, stdlib |
| ✅ | BMB vs Rust: philosophy, syntax, memory model |
| ✅ | Context pack for stdlib/ — all public exports + contracts |
| ⏳ | Example code by category |
| ⏳ | Standard library documentation per module |
Prompts
Prompt | Status | Description |
| ✅ | Implement a function with optional contracts |
| ✅ | Add pre/post contracts to existing code |
| ✅ | Optimize code for speed or size |
Installation (Python — current implementation)
# From source (recommended during M2)
cd ecosystem/bmb-mcp
pip install -e .
# Run the server
bmb-chatterRequirements
Python 3.10+
BMB compiler — set
BMB_BINARY, addbmbtoPATH, or runcargo build --releasein the workspaceZ3 solver (for
bmb_verify, once that tool lands)
Usage
With Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"bmb": {
"command": "npx",
"args": ["@bmb/chatter"]
}
}
}Standalone Server
# Start server
chatter serve
# With custom BMB path
BMB_PATH=/usr/local/bin/bmb chatter serve
# With debug logging
chatter serve --debugExample Session
User: Implement binary search in BMB
AI's internal workflow:
1. bmb_spec_lookup(topic="contracts")
→ Learn pre/post/invariant syntax
2. bmb_example(category="algorithms", name="binary_search")
→ Reference implementation
3. [Generate code]
4. bmb_check(code)
→ Error: "Array access without bounds check"
→ Suggestion: "Add `pre idx < arr.len()` contract"
5. [Fix code]
6. bmb_verify(code)
→ ✓ All contracts verified
7. Return verified code to userResult:
pure fn is_sorted(arr: &[i32]) -> bool {
let mut i = 1;
while i < arr.len()
invariant i <= arr.len()
{
if arr[i - 1] > arr[i] {
return false;
}
i = i + 1;
}
return true;
}
fn binary_search(arr: &[i32], target: i32) -> usize?
pre is_sorted(arr)
post ret.is_none() implies forall i: 0..arr.len(). arr[i] != target
post ret.is_some() implies arr[ret.unwrap()] == target
{
let mut lo: usize = 0;
let mut hi: usize = arr.len();
while lo < hi
invariant lo <= hi and hi <= arr.len()
{
let mid = lo + (hi - lo) / 2;
if arr[mid] == target {
return Some(mid);
} else if arr[mid] < target {
lo = mid + 1;
} else {
hi = mid;
}
}
return None;
}AI-Friendly Error Messages
Chatter transforms compiler errors into actionable suggestions:
Standard compiler output:
error[E0421]: array index out of bounds cannot be proven safe
--> main.bmb:3:5Chatter output:
{
"success": false,
"errors": [{
"code": "E0421",
"message": "Array index out of bounds cannot be proven safe",
"location": { "line": 3, "column": 5 },
"suggestion": "Add `pre idx < arr.len()` before the function body",
"explanation": "BMB requires compile-time proof of array bounds. Add a precondition or use checked access with `arr.get(idx)`."
}]
}Common Mistakes Chatter Catches
Mistake | Wrong | Correct | Detection |
Nullable syntax |
|
|
|
Bitwise AND |
|
|
|
Bitwise OR |
|
|
|
Implicit return |
|
|
|
Missing contract |
|
|
|
Overflow |
|
|
|
Configuration
# chatter.yaml
bmb:
path: /usr/local/bin/bmb
runtime: /usr/local/lib/bmb/runtime.c
verification:
timeout_ms: 5000
z3_path: /usr/local/bin/z3
examples:
path: /usr/local/share/bmb/examples
logging:
level: info
file: /var/log/chatter.logDevelopment
# Install dependencies
npm install
# Run tests
npm test
# Run in development mode
npm run dev
# Build for production
npm run build
# Lint
npm run lintNaming
Chatter continues the BMB naming theme:
BMB = Bare-Metal-Banter
└──────┐
▼
Chatter
(friendly conversation)Just as BMB enables "banter" between AI and bare metal, Chatter enables conversation between AI and the BMB toolchain.
Related Projects
Project | Description |
BMB compiler and language | |
BMB package manager | |
Syntax highlighting | |
VS Code extension |
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Write, type-check and run AILANG in a sandbox, with Z3-proved contracts and docs search.
AI-native programming language and toolchain for accountable, verifiable agent-driven development.
Gemmein docs, API reference, error explainers and a live integration check for coding agents.
Architecture compiler for AI code. 11 tools, 92 actions, 872 Lean4 proofs, 100/100 self-cert.
Related MCP Servers
- -licenseNot gradedqualityBmaintenanceEnables AI agents to safely run Pact 5 REPL tests, scan modules for critical language traps, estimate gas, generate contracts, and invoke formal verification via a standalone prover plugin.-
- AlicenseAqualityCmaintenanceGives coding agents in-memory access to the language's specifications, diagnostic and fault catalogue, verified code recipes, and university curriculum, plus toolchain tools to check, evaluate, and test source when a local binary is installed.8Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI coding agents to inspect and reverse-engineer large binaries through bounded stdio JSON-RPC 2.0 tools for graph queries, SSA facts, path solving, runtime grounding, and mod scaffolding.1AGPL 3.0
- AlicenseAqualityBmaintenanceEnables developers and AI agents to compress context, plan token budgets, rerank results, patch code, analyze ASTs and dependencies, isolate stack traces, compile polyglot types, solve deterministic math, schedule constraints, judge A/B tests, and diff agent memory checkpoints through 12 specialized tools.151MIT