Prompts Reference

MCP prompts for common Contree workflows. Prompts provide structured instructions that guide AI agents through multi-step tasks.

Quick Reference

Prompt

Description

Key Parameters

prepare-environment

Prepare container environment with CHECK-PREPARE-EXECUTE flow

task, base, project, packages

run-python

Run Python code in isolated container

code

run-shell

Run shell command in isolated container

command, image

sync-and-run

Sync local files and run command

source, command, image

install-packages

Install packages and create reusable image

packages, image

parallel-tasks

Run multiple tasks in parallel

tasks, image

build-project

Build project: install deps and run tests

source, install_cmd, test_cmd

debug-failure

Diagnose failed operation

operation_id

inspect-image

Explore container image contents

image

multi-stage-build

Multi-stage build with rollback points

source, install_cmd, build_cmd, test_cmd

Using Prompts

With MCP Clients

MCP-compatible clients can invoke prompts directly:

{
  "prompt": "prepare-environment",
  "args": {
    "task": "Train ML model",
    "base": "python:3.11-slim",
    "packages": "numpy pandas scikit-learn"
  }
}

Prompt Output

Prompts return structured instructions that guide the agent through:

  1. Step-by-step workflows - Ordered operations with clear dependencies

  2. Tool selection - Which Contree tools to use and when

  3. Parameter guidance - Correct values for each tool call

  4. Best practices - Following the CHECK-PREPARE-EXECUTE pattern

Categories

Environment Setup

Code Execution

Building and Testing

Operations