Mlx Coda — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Mlx Coda (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Model Context Protocol server for ML Offload System
Unified interface for LLM inference management via Model Context Protocol (MCP). Control your ML models directly from Claude Desktop, VSCode, Zed Editor, or Amazon Bedrock.
verbose: true)Cost Savings: ~80% reduction in API costs (Amazon/Anthropic billing)
http://localhost:9000(See /etc/nixos/modules/ml/offload for setup)
node --version # Should be 18.0.0 or higher# Clone or navigate to this directory
cd ~/dev/mlx-mcp
# Install dependencies
npm install
# Build TypeScript
npm run build# Optional: Change ML Offload API URL (default: http://localhost:9000)
export ML_OFFLOAD_API_URL="http://localhost:9000"Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"mlx": {
"command": "node",
"args": ["/home/kernelcore/dev/mlx-mcp/dist/index.js"],
"env": {
"ML_OFFLOAD_API_URL": "http://localhost:9000"
}
}
}
}Restart Claude Desktop and you'll see MLX tools available!
.continue/config.json:{
"experimental": {
"modelContextProtocol": true
},
"mcpServers": {
"mlx": {
"command": "node",
"args": ["/home/kernelcore/dev/mlx-mcp/dist/index.js"]
}
}
}Add to Zed settings (~/.config/zed/settings.json):
{
"context_servers": {
"mlx-mcp": {
"command": "node",
"args": ["/home/kernelcore/dev/mlx-mcp/dist/index.js"]
}
}
}Use with Bedrock Agent runtime via stdio:
import subprocess
import json
# Start MCP server
process = subprocess.Popen(
["node", "/home/kernelcore/dev/mlx-mcp/dist/index.js"],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE
)
# Send MCP request
request = {
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "list_models",
"arguments": {}
}
}
process.stdin.write((json.dumps(request) + "\n").encode())
process.stdin.flush()
# Read response
response = process.stdout.readline()
print(json.loads(response))format, backend, limitmodel_id/var/lib/ml-models for new modelsmodel_id, backend, priority (optional), gpu_layers (optional)backendbackend, model_id, gpu_layers (optional)"List all GGUF models smaller than 5GB"
→ Calls: list_models with format filter
"What's the VRAM usage right now?"
→ Calls: get_vram_status
"Load mistral-7b-q4 on llamacpp with 28 GPU layers"
→ Calls: load_model with specific params
"Show me model 12's details"
→ Calls: get_model_info with model_id=12
"Scan for new models I just added"
→ Calls: trigger_model_scan
"Switch ollama to the new qwen model (ID 18)"
→ Calls: switch_model with backend=ollama, model_id=18# Watch mode (auto-rebuild on changes)
npm run dev
# Build
npm run build
# Run
npm startProblem: MCP server can't reach ML Offload API
Solution:
# Check if ML Offload API is running
curl http://localhost:9000/health
# If not, enable it in NixOS config:
# /etc/nixos/hosts/kernelcore/configuration.nix
kernelcore.ml.offload.enable = true;
kernelcore.ml.offload.api.enable = true;
# Rebuild NixOS
sudo nixos-rebuild switchProblem: MCP tools not showing up
Solution:
dist/index.js exists (run npm run build)Problem: Can't execute server
Solution:
chmod +x /home/kernelcore/dev/mlx-mcp/dist/index.js┌─────────────────────────────────────────────────────────────┐
│ AI Assistant (Claude/VSCode/Zed) │
└────────────────────────┬────────────────────────────────────┘
│ MCP Protocol (stdio)
│
┌────────────────────────▼────────────────────────────────────┐
│ MLX MCP Server (TypeScript) │
│ - Tool handlers │
│ - Request/Response formatting │
│ - Error handling │
└────────────────────────┬────────────────────────────────────┘
│ HTTP REST API
│
┌────────────────────────▼────────────────────────────────────┐
│ ML Offload Manager API (Rust + Axum) │
│ - Model Registry (SQLite) │
│ - VRAM Intelligence (nvidia-smi) │
│ - Backend Orchestration │
└────────────────────────┬────────────────────────────────────┘
│
┌────────────────┼────────────────┐
│ │ │
▼ ▼ ▼
┌────────┐ ┌─────────┐ ┌──────┐
│ Ollama │ │llama.cpp│ │ vLLM │
└────────┘ └─────────┘ └──────┘MIT - See LICENSE file
/etc/nixos/docs/Made with ❤️ by kernelcore
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.