loading…
Search for a command to run...
loading…
MCP server to communicate local Pharo Smalltalk image
MCP server to communicate local Pharo Smalltalk image
A local MCP server to communicate local Pharo Smalltalk image. It supports:
The easiest way to run the server without cloning the repository:
uvx --from git+https://github.com/mumez/pharo-smalltalk-interop-mcp-server.git pharo-smalltalk-interop-mcp-server
To set up for development:
git clone https://github.com/mumez/pharo-smalltalk-interop-mcp-server.git
cd pharo-smalltalk-interop-mcp-server
uv sync --dev
Using uvx (no installation required):
uvx --from git+https://github.com/mumez/pharo-smalltalk-interop-mcp-server.git pharo-smalltalk-interop-mcp-server
Using uv (after cloning the repository):
uv run pharo-smalltalk-interop-mcp-server
You can configure the server using environment variables:
PHARO_SIS_PORT: Port number for PharoSmalltalkInteropServer (default: 8086)Examples:
Using uvx:
PHARO_SIS_PORT=8086 uvx --from git+https://github.com/mumez/pharo-smalltalk-interop-mcp-server.git pharo-smalltalk-interop-mcp-server
Using uv:
PHARO_SIS_PORT=9999 uv run pharo-smalltalk-interop-mcp-server
Using uvx (recommended):
{
"mcpServers": {
"smalltalk-interop": {
"command": "uvx",
"args": [
"--from",
"git+https://github.com/mumez/pharo-smalltalk-interop-mcp-server.git",
"pharo-smalltalk-interop-mcp-server"
],
"env": {
"PHARO_SIS_PORT": "8086"
}
}
}
}
Using uv (after cloning):
{
"mcpServers": {
"smalltalk-interop": {
"command": "uv",
"args": [
"--directory",
"/your-path/to/pharo-smalltalk-interop-mcp-server",
"run",
"pharo-smalltalk-interop-mcp-server"
],
"env": {
"PHARO_SIS_PORT": "8086"
}
}
}
}
Note: The env section is optional and can be used to set environment variables for the MCP server.
Using uvx (recommended):
claude mcp add -s user smalltalk-interop -- uvx --from git+https://github.com/mumez/pharo-smalltalk-interop-mcp-server.git pharo-smalltalk-interop-mcp-server
Using uv (after cloning):
claude mcp add -s user smalltalk-interop -- uv --directory /path/to/pharo-smalltalk-interop-mcp-server run pharo-smalltalk-interop-mcp-server
This server provides 22 MCP tools that map to all PharoSmalltalkInteropServer APIs:
eval: Execute Smalltalk expressions and return resultsget_class_source: Retrieve source code of a classget_method_source: Retrieve source code of a specific methodget_class_comment: Retrieve comment/documentation of a classsearch_classes_like: Find classes matching a patternsearch_methods_like: Find methods matching a patternsearch_traits_like: Find traits matching a patternsearch_implementors: Find all implementors of a method selectorsearch_references: Find all references to a method selectorsearch_references_to_class: Find all references to a classlist_packages: List all packages in the imagelist_classes: List classes in a specific packagelist_extended_classes: List extended classes in a packagelist_methods: List methods in a packageexport_package: Export a package in Tonel formatimport_package: Import a package from specified pathinstall_project: Install a project using Metacello with optional load groupsrun_package_test: Run test suites for a packagerun_class_test: Run test suites for a specific classread_screen: UI screen reader for debugging Pharo interfaces with screenshot and structure extractionget_settings: Retrieve current server configurationapply_settings: Modify server configuration dynamicallyThe read_screen tool captures screenshots and extracts UI structure for debugging Pharo UI issues.
Parameters:
target_type (string, default: 'world'): UI type to inspect ('world' for morphs, 'spec' for windows, 'roassal' for visualizations)capture_screenshot (boolean, default: true): Include PNG screenshot in responseReturns: UI structure with screenshot and human-readable summary
Usage Examples:
# Inspect all morphs in World
read_screen(target_type='world')
# Inspect Spec presenter windows
read_screen(target_type='spec', capture_screenshot=false)
# Inspect Roassal visualizations without screenshot (faster)
read_screen(target_type='roassal', capture_screenshot=false)
Extracted Data Includes:
World (morphs):
Example output:
{
"totalMorphs": 12,
"displayedMorphCount": 1,
"morphs": [
{
"class": "MenubarMorph",
"visible": true,
"bounds": {"x": 0, "y": 0, "width": 976, "height": 18},
"backgroundColor": "(Color r: 0.883... alpha: 0.8)",
"owner": "WorldMorph",
"submorphCount": 8
}
]
}
Spec (presenters):
Example output:
{
"windowCount": 1,
"presenters": [
{
"class": "SpWindowPresenter",
"title": "Welcome",
"extent": "(700@550)",
"hasMenu": false,
"presenter": {
"class": "StWelcomeBrowser",
"childCount": 2,
"isVisible": true,
"children": []
}
}
]
}
Roassal (visualizations):
Example output:
{
"canvasCount": 1,
"canvases": [
{
"class": "RSAthensMorph",
"canvasClass": "RSCanvas",
"bounds": {"x": 203, "y": 145, "width": 490, "height": 467},
"backgroundColor": "Color blue",
"zoomLevel": "1.0",
"shapeCount": 5,
"shapes": [
{
"class": "RSCircle",
"color": "(Color r: 1.0 g: 0.0 b: 0.0 alpha: 0.2)",
"position": "([email protected])",
"extent": "([email protected])"
}
],
"edgeCount": 0,
"edges": [],
"nodeCount": 0
}
]
}
The get_settings and apply_settings tools provide dynamic server configuration management.
Retrieve the current server configuration.
Parameters: None
Returns: Dictionary containing current server settings
Usage Example:
# Get current settings
get_settings()
# Returns: {"stackSize": 100, "customKey": "customValue"}
Response Format:
{
"success": true,
"result": {
"stackSize": 100,
"customKey": "customValue"
}
}
Modify server configuration dynamically. Settings take effect immediately during the current session.
Parameters:
settings (dict): Dictionary containing settings to modifyReturns: Success confirmation message
Usage Example:
# Apply new settings
apply_settings(settings={"stackSize": 200, "customKey": "customValue"})
# Returns: "Settings applied successfully"
Common Settings:
| Setting | Type | Default | Description |
|---|---|---|---|
stackSize |
integer | 100 | Maximum stack trace depth for error reporting |
Note: The server accepts arbitrary key-value pairs beyond documented settings, allowing custom configuration options.
The project includes comprehensive unit tests with mock-based testing to avoid requiring a live Pharo instance:
# Run all tests
uv run pytest
# Run tests with verbose output
uv run pytest -v
# Run specific test file
uv run pytest tests/test_core.py -v
# Run linting
uv run ruff check
# Run formatting
uv run ruff format
# Run all pre-commit hooks
uv run pre-commit run --all-files
pharo-smalltalk-interop-mcp-server/
├── pharo_smalltalk_interop_mcp_server/
│ ├── __init__.py
│ ├── core.py # HTTP client and core functions
│ └── server.py # FastMCP server with tool definitions
├── tests/
│ ├── __init__.py
│ ├── test_core.py # Tests for core HTTP client functionality
│ └── test_server.py # Tests for MCP server integration
├── pyproject.toml # Project configuration
├── pytest.ini # Test configuration
└── README.md
The test suite uses mock-based testing to ensure:
Test coverage includes:
PharoClient class)Run in your terminal:
claude mcp add pharo-smalltalk-interop-mcp-server -- npx Yes, Pharo Smalltalk Interop Server MCP is free — one-click install via Unyly at no cost.
No, Pharo Smalltalk Interop Server runs without API keys or environment variables.
Self-hosted: the server runs locally on your machine via the install command above.
Open Pharo Smalltalk Interop Server on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Transcripts, channel stats, search
by YouTubeAI image generation using various models.
by modelcontextprotocolUnified GPU inference API with 30 AI services (LLM, image gen, video, TTS, whisper, embeddings, reranking, OCR) as MCP tools. Pay-per-use via x402 USDC or API k
by gpu-bridgeA powerful image generation tool using Google's Imagen 3.0 API through MCP. Generate high-quality images from text prompts with advanced photography, artistic,
by hamflxNot sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All media MCPs