
thmsmlr/livebook_tools
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
thmsmlr/livebook_toolsは、https://github.com/thmsmlr/livebook_tools.からインポートされたMCPサーバー候補です。
概要
thmsmlr/livebook_toolsは、https://github.com/thmsmlr/livebook_tools.からインポートされたMCPサーバー候補です。
概要(AI 翻訳)
Livebook Toolsは、.livemdファイルを扱う際に強力な機能を提供するCLIツールです。
主な特徴は以下の通りです:
- BYOE(Bring Your Own Editor) -
.livemdファイルをオープンなLivebookセッションに同期し、CursorのようなAI搭載のコードエディタで編集できます。 - MCP Server - AIコーディングエージェントをLivebookセッションに接続するためのシンプルなモデルコンテキストプロトコルサーバーです。以下で詳しく説明します。
- CLIからLivebookを実行する-
.livemdファイルをElixirスクリプトに変換し、.exsスクリプトのように上下に実行します。Livebookをcronジョブに変えたい場合に役立ちます。
設置
Livebook ToolsはElixirのエクリクサーです。
インストールするには、mix escript.installコマンドを使うことができます。
インストール後は、escriptディレクトリがパス上にあることを確認してください。
ランニングライブブック
Livebookツールが正しく動作するためには、分散Elixirを使って稼働中のLivebookサーバーに接続できる必要があります。
これを実現するには、Livebookの運用方法によります。
最も単純な形では、環境変数の2つを~/.bashrcまたは~/.zshrcファイルに追加するだけです。
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
LivebookTools
Livebook Tools is a CLI tool to give you superpowers while working with .livemd files.
Its primary features are:
- BYOE (Bring Your Own Editor) - Sync your
.livemdfiles to an open Livebook session so you can edit them in your AI powered code editor, like Cursor. - MCP Server - A simple model context protocol server for connecting AI coding agents to your Livebook sessions. More on this below.
- Run Livebooks from the CLI - Convert your
.livemdfiles to Elixir scripts and run them top to bottom as if they were a.exsscript. Useful if you want to turn a livebook into a cron job.
Installation
Livebook Tools is an Elixir escript.
To install it, you can use the mix escript.install command.
mix escript.install github thmsmlr/livebook_tools
Once installed, ensure that the escript directory is on your path.
# for normal elixir users
export PATH="$HOME/.mix/escripts:$PATH"
# for asdf elixir users
for escripts_dir in $(find "${ASDF_DATA_DIR:-$HOME/.asdf}/installs/elixir" -type d -name "escripts" 2>/dev/null); do
export PATH="$escripts_dir:$PATH"
done
Running Livebook
In order for Livebook tools to work properly, it needs to be able to connect to a running Livebook server using distributed Elixir.
To do this will depend on how you are running Livebook.
In its simplest form, all you need to do is add the two environment variables to your ~/.bashrc or ~/.zshrc file.
export LIVEBOOK_NODE="[email protected]"
export LIVEBOOK_COOKIE="secret"
Then when you run the Livebook tools or Livebook, both programs will discover these values and make sure that they can connect to each other.
If you’re running using Livebook Desktop, then you may need to add these values to the ~/.livebookdesktop.sh file as well.
For more information on Livebook Desktop, check out the Livebook HexDocs.
Setting up MCP Server
The MCP Server is a simple model context protocol server that allows you to connect AI coding agents to your Livebook sessions.
I have personally tested the implementation with Cursor, though it should work with any AI code editor that supports the MCP protocol.
The MCP server runs via STDIO, so all you have to do is tell Cursor to connect via the command and it’ll auto discover the tools and connect them to it’s coding agent.
For more information on MCP works with Cursor, check out the Cursor MCP docs.
Useful Tips
Sometimes you want to customize how the code runs, whether it’s running in Livebook or via the command line using livebook_tools run .
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →