ClaudeSmalltalk

io.github.johnmci由 GitHub 帳號 johnmci 發布v1.2.1更新於 Oct 24, 2026

MCP server for AI interaction with live Smalltalk images

發布方自己的服務:Claude Platform Docs

已驗證STDIO僅桌面開發者工具AI 與機器學習

概覽

AI 產生的概覽

讓助理透過委派的本地 LLM 瀏覽、求值並編輯執行中的 Squeak 或 Cuis Smalltalk 映像中的程式碼。

可以做什麼
向 Claude Desktop 暴露一個工具 smalltalk_task,把 Smalltalk 工作委派給另外設定的 LLM。該代理擁有 14 個 VM 工具:求值運算式、瀏覽類別、讀取與寫入方法原始碼、定義或刪除類別與方法、列出類別與分類、走訪繼承階層,以及儲存映像。這些工具也可透過 st 命令列使用。
適用情境
當你希望助理檢查或修改執行中的 Smalltalk 映像時使用,例如瀏覽類別、求值運算式,或對 Squeak、Cuis 進行自主程式碼審查。適合已在 Smalltalk 環境中工作的開發者。
執行需求
在 macOS 桌面本機執行的程序,透過 uv 或 python3 啟動,需要 Python 3.10+ 與 httpx(MQTT 另需 paho-mqtt)。需要 Squeak 6.0 或 Cuis 的 VM 與映像、包含 VM 路徑的 smalltalk-mcp.json 設定,以及 LLM 供應商:本機 Ollama,或付費的 Anthropic、OpenAI、xAI 金鑰。預設使用 TCP;MQTT 需要 broker。
安裝前請注意
該代理可以定義與刪除類別和方法,並就地儲存映像,因此變更會寫入你執行中的映像。付費供應商會把 Smalltalk 原始碼傳送到雲端 API;只有 Ollama 搭配 TCP 才保持本機。macOS TCC 會阻擋 ~/Documents、~/Desktop 與 ~/Downloads,請把 VM 與映像檔放在 /Applications 或家目錄。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 ClaudeSmalltalk,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

ClaudeSmalltalk

Connect Claude Desktop to a live Smalltalk programming environment. Browse classes, evaluate expressions, define methods, and run autonomous code review — all against a running Squeak or Cuis image.

Developed by John M McIntosh, Corporate Smalltalk Consulting Ltd. 2026

What It Does

The Squeak VM provides 14 MCP tools — evaluate code, browse classes, read/write methods, navigate hierarchies, and save the image. Claude Desktop accesses them via smalltalk_task, which delegates all Smalltalk interaction to a locally-configured LLM (Ollama for free/local, or Anthropic/OpenAI/xAI) — no source code leaves your machine.

You → Claude Desktop → smalltalk_task → Your LLM → Live Smalltalk Image (TCP)                        (MCP server)     (Ollama)    (Squeak or Cuis)

The agent isolates Smalltalk reasoning from your chat model. Claude Desktop triggers the work, but a separate model (which can be local and free) does the actual Smalltalk coding.

Quick Start

1. Get a Smalltalk VM and Image

Squeak (recommended):

  • Download Squeak 6.0 — the All-in-One package includes VM and image
  • Follow SQUEAK-SETUP.md to install the MCP server into the image

Cuis Smalltalk:

macOS note: Place the VM and image files in /Applications/ or your home directory. Files in ~/Documents/ or ~/Desktop/ may be blocked by macOS privacy restrictions (TCC). See macOS Permissions below.

2. Create a Configuration File and Install

Follow CLAUDE-README-MCPB.md — it covers creating your smalltalk-mcp.json config and installing the desktop extension.

Copy a starter config from examples/ and set your VM paths:

bash
cp examples/smalltalk-mcp-ollama.json smalltalk-mcp.json# Edit vm.binary and vm.image to match your install

The VM auto-starts on first use — no manual launch needed. Token auth is handled automatically.

See examples/ for Anthropic, OpenAI, xAI, and MQTT variants.

3. Configure Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

json
{  "mcpServers": {    "smalltalkAgent": {      "command": "uv",      "args": ["run", "/path/to/ClaudeSmalltalk/smalltalk_agent_mcp.py"],      "env": {        "SMALLTALK_MCP_CONFIG": "/path/to/smalltalk-mcp.json"      }    }  }}

Requires Python 3.10+. Dependencies (httpx) are resolved automatically by uv. Install uv if you don't have it by following the official installation instructions there (for example via your package manager where available). If you choose to use an install script, review it first and follow any checksum or signature verification steps described in the uv documentation.

Alternatively, if you prefer not to use uv, you can use python3 as the command — but you'll need to install httpx yourself (pip install httpx or pip3 install httpx). For MQTT transport, also: pip install paho-mqtt.

4. Verify It Works

Open Claude Desktop and ask:

"List all Smalltalk classes that start with String"

Available Tools

Claude Desktop (1 tool)

ToolDescription
smalltalk_taskDelegate any Smalltalk task to a locally-configured LLM. No source code leaves your machine.

VM Tools (14, available to the agent)

ToolDescription
smalltalk_evaluateExecute Smalltalk code and return result
smalltalk_browseGet class metadata (superclass, ivars, methods)
smalltalk_method_sourceView source code of a method
smalltalk_define_classCreate or modify a class definition
smalltalk_define_methodAdd or update a method
smalltalk_delete_methodRemove a method from a class
smalltalk_delete_classRemove a class from the system
smalltalk_list_classesList classes matching a prefix
smalltalk_hierarchyGet superclass chain
smalltalk_subclassesGet immediate subclasses
smalltalk_list_categoriesList all system categories
smalltalk_classes_in_categoryList classes in a category
smalltalk_save_imageSave the current image in place
smalltalk_save_as_new_versionSave image/changes as next version number

All 14 tools are also available directly via the st CLI (openclaw/smalltalk.py).

Configuration Reference

Supported LLM Providers

ProviderAPICostConfig key
Ollama/v1/chat/completionsFree (local)"provider": "ollama"
Anthropic/v1/messages (httpx)Paid"provider": "anthropic"
OpenAI/v1/chat/completionsPaid"provider": "openai"
xAI/v1/chat/completionsPaid"provider": "xai"

All providers use httpx (included as a dependency) — no additional packages to install.

Transport Options

TransportHowUse Case
tcpToken-authenticated TCP to Squeak VMRecommended — VM is its own server
mqttMQTT broker to remote imageRemote images, Cuis with MQTT handler

tcp is the default. The Squeak VM runs MCPTcpTransport and listens on a local port. The agent auto-starts the VM on first use, generates a UUID token, and connects per-request with JSON-RPC + token auth.

mqtt connects through an MQTT broker. Used for remote images or Cuis with the MQTT LLM handler.

macOS Permissions

macOS Transparency, Consent, and Control (TCC) restricts which directories applications can access.

Safe locations (no extra permissions needed):

  • /Applications/ — recommended for VM and image files
  • ~/ (home directory root) — works for config files

Restricted locations (will cause errors):

  • ~/Documents/, ~/Desktop/, ~/Downloads/

Other Integration Options

OptionArchitectureGuide
OpenClawTelegram/Discord ↔ OpenClaw ↔ SqueakOPENCLAW-SETUP.md

Security

The extension only connects to a local Smalltalk image over TCP (localhost only). No source code is sent to cloud APIs when using Ollama.

With Ollama + TCP transport, no Smalltalk source code leaves your machine.

Dual security audit details: SECURITY.md

Files

FileDescription
Claude.SmalltalkInterface.mcpbDesktop extension — double-click to install
CLAUDE-README-MCPB.mdSetup guide bundled with the extension
smalltalk_agent_mcp.pyMCP server (stdio JSON-RPC for Claude Desktop)
smalltalk_agent.pyAgent with tool-calling loop, TcpBridge + MqttBridge
openclaw/smalltalk.pyst CLI — direct TCP access to all 14 tools
openclaw/mqtt_bridge.pyMQTT CLI bridge for Cuis/remote images
smalltalk-mcp-example.jsonStarter config — copy and edit
SKILL.mdDrag into Claude Desktop for Smalltalk best practices
MCP-Server-Squeak.stMCP server fileIn for Squeak 6.0 (TCP transport)
MCP-Server.pck.stMCP server package for Cuis
examples/Config examples for all providers and transports

License

MIT License — see LICENSE

來源:README.md,提交 e7bea13

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.2.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Claude 整合