An MCP (Model Context Protocol) server that lets AI agents compile, run, and check Almide code.
| Tool | Description |
|---|---|
compile |
Compile .almd source to Rust or TypeScript |
run |
Compile and execute .almd source with arguments |
check |
Check for syntax/compilation errors with diagnostic hints |
emit-ast |
Parse source and return the AST as JSON |
| Resource | URI | Description |
|---|---|---|
| Grammar | almide://grammar |
EBNF grammar + stdlib reference |
- Node.js 18+
- almide compiler in PATH (or set
ALMIDE_BIN)
git clone https://github.com/almide/mcp-server.git
cd mcp-server
npm install
npm run buildAdd to ~/.claude.json:
{
"mcpServers": {
"almide": {
"command": "node",
"args": ["/path/to/mcp-server/dist/index.js"]
}
}
}Add to claude_desktop_config.json:
{
"mcpServers": {
"almide": {
"command": "node",
"args": ["/path/to/mcp-server/dist/index.js"],
"env": {
"ALMIDE_BIN": "/path/to/almide"
}
}
}
}Add to .cursor/mcp.json:
{
"mcpServers": {
"almide": {
"command": "node",
"args": ["/path/to/mcp-server/dist/index.js"]
}
}
}Once connected, an AI agent can:
# Check code for errors
almide.check({ code: 'module app\nfn add(a: Int, b: Int) -> Int = a + b' })
# Compile to Rust
almide.compile({ code: '...', target: 'rust' })
# Run code
almide.run({ code: '...', args: ['hello'] })
# Get AST
almide.emit-ast({ code: '...' })
| Variable | Description | Default |
|---|---|---|
ALMIDE_BIN |
Path to almide binary | almide (from PATH) |
MIT