pharo-launcher-mcp
v1.1.0Pharo 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.
| Parameter | Type | Description |
|---|---|---|
destinationProfile * | object | Where 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 * | string | The image to copy. |
newImage * | string | The copy's name, which may be the image's. |
sourceProfile * | object | Where 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.
| Parameter | Type | Description |
|---|---|---|
image * | string | The image's name. |
newImage * | string |
image_create
Create an image from a template. It is not started: image_start starts it.
| Parameter | Type | Description |
|---|---|---|
image * | string | The image's name. |
template * | string | A template's name, as template_list lists it. |
category | string | The 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.
| Parameter | Type | Description |
|---|---|---|
image * | string | The image's name. |
image_info
Describe an image of this Launcher: its path, Pharo version, architecture, template and whether it runs.
| Parameter | Type | Description |
|---|---|---|
image * | string | The 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.
| Parameter | Type | Description |
|---|---|---|
nameFilter | string |
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.
| Parameter | Type | Description |
|---|---|---|
image * | string | The image's name. |
detached | boolean | |
displayMode | string | In a profile, how the VM shows the image: headless unless interactive. Outside a profile the Launcher decides, and this is refused. |
script | string | A 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.
| Parameter | Type | Description |
|---|---|---|
image | string | The image's name. |
pid | integer |
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.
| Parameter | Type | Description |
|---|---|---|
category | string |
template_update
Refresh the template list from the Pharo Launcher's sources.