pharo-launcher-mcp

v1.1.0
@evref-bl/pharo-launcher-mcp Checked 7 hours ago Published 4 days ago

Pharo Launcher as a Node library and an MCP server: its images, templates and the processes running them.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

config

Say which Pharo Launcher this server runs, and where its images are.

image_copy_between_profiles

Copy an image from one images directory to another, such as from a user's own Launcher into a profile. config prints this server's own stateRoot. Every directory must exist: the copy creates none.

ParameterTypeDescription
destinationProfile *objectWhere a profile keeps its images: its stateRoot, the directory that holds its images/ directory, or an images directory itself as imagesDir. One of the two.
image *stringThe image to copy.
newImage *stringThe copy's name, which may be the image's.
sourceProfile *objectWhere a profile keeps its images: its stateRoot, the directory that holds its images/ directory, or an images directory itself as imagesDir. One of the two.

image_copy

Copy an image of this Launcher under a new name.

ParameterTypeDescription
image *stringThe image's name.
newImage *string

image_create

Create an image from a template. It is not started: image_start starts it.

ParameterTypeDescription
image *stringThe image's name.
template *stringA template's name, as template_list lists it.
categorystringThe template's category, when its name is in several.

image_delete

Delete an image, its directory and the logs of its starts. Nothing asks for a confirmation. A running image is refused: stop it first with process_kill.

ParameterTypeDescription
image *stringThe image's name.

image_info

Describe an image of this Launcher: its path, Pharo version, architecture, template and whether it runs.

ParameterTypeDescription
image *stringThe image's name.

image_list

List this Launcher's images, each with its Pharo version, architecture, template and whether it runs. nameFilter keeps the images whose name contains it.

ParameterTypeDescription
nameFilterstring

image_start

Start an image, optionally with a script for it to run. Unless detached, the call waits for the image to quit. When the call's time is up, a profile's image is stopped; outside a profile the call stops waiting, and the image goes on.

ParameterTypeDescription
image *stringThe image's name.
detachedboolean
displayModestringIn a profile, how the VM shows the image: headless unless interactive. Outside a profile the Launcher decides, and this is refused.
scriptstringA script for the image to run. A relative path is read from this server's working directory.

process_kill

Kill a process running an image of this Launcher, by pid or by image. A pid stops that process alone; an image stops every process running it.

ParameterTypeDescription
imagestringThe image's name.
pidinteger

process_list

List the Pharo processes running an image of this Launcher, by image and pid.

template_category_list

List the template categories.

template_list

List the templates of a category, by default the Launcher's default one.

ParameterTypeDescription
categorystring

template_update

Refresh the template list from the Pharo Launcher's sources.