MCP.so
登录
服务器

Babashka MCP Server

@bmorphism

A Model Context Protocol server for interacting with Babashka, a native Clojure interpreter for scripting

概览

What is Babashka MCP Server?

A Model Context Protocol server for interacting with Babashka, a native Clojure interpreter for scripting. It allows execution of Babashka code through MCP tools, caches recent results, and provides command history via resources.

How to use Babashka MCP Server?

Install dependencies with npm install, then build with npm run build. Configure the Babashka executable path via the BABASHKA_PATH environment variable (defaults to "bb"). Invoke the server through an MCP client using the execute tool with required code and optional timeout arguments.

Key features of Babashka MCP Server

  • Execute arbitrary Babashka code through MCP tools
  • Cache recent command results for fast retrieval
  • Access command history via resource URIs
  • Configurable command timeouts (default 30 seconds)

Use cases of Babashka MCP Server

  • Run Clojure scripts from an MCP-capable agent or IDE
  • Automate tasks using Babashka’s lightweight scripting
  • Interactively test and debug Babashka expressions

FAQ from Babashka MCP Server

What is Babashka?

Babashka is a native Clojure interpreter designed for scripting, with fast startup and support for common Clojure features.

How do I install Babashka?

Install via package managers like Homebrew (macOS), a curl script (Linux), or Scoop (Windows). See the official Babashka installation guide.

What tools does the server expose?

It exposes a single tool named execute, which takes code (string) and optional timeout (milliseconds, default 30000).

How can I configure the Babashka path?

Set the environment variable BABASHKA_PATH to the path of your Babashka executable. The default is "bb".

Does Babashka support tail call optimization?

Babashka supports explicit TCO using the recur special form, but does not implement automatic tail call optimization.

标签

来自「其他」的更多内容