Skip to main content

Sugar Extension

This tutorial covers how to add the Sugar MCP Server as a goose extension to delegate development tasks to an autonomous AI system that runs in the background.

TLDR

Launch the installer

When prompted, set SUGAR_PROJECT_ROOT to your project path.

Configuration

info

Note that you'll need Node.js installed on your system to run this command, as it uses npx.

info

Sugar requires Python 3.11+ and the Sugar CLI installed in your project. Install with pip install sugarai and initialize with sugar init.

  1. Launch the installer
  2. Click Yes to confirm the installation
  3. Set SUGAR_PROJECT_ROOT to your project directory (/path/to/your/project), or Sugar will use the current working directory
  4. Click Add Extension
  5. Click the button in the top-left to open the sidebar
  6. Navigate to the chat

Example Usage

Sugar lets you delegate development tasks to an autonomous AI that works in the background. Tasks are queued and executed independently, so you can continue working while Sugar handles them.

  1. Open a new session in goose Desktop

goose Prompt

Create a task to add input validation to the user registration form. Priority 4.

goose Output

Desktop

I'll create a Sugar task for adding input validation to the user registration form.

-------- createTask -------

Task created successfully:

  • ID: a1b2c3d4-5678-90ab-cdef-ghijklmnopqr
  • Title: Add input validation to the user registration form
  • Type: feature
  • Priority: P4 (High)
  • Status: pending

The task has been queued. Sugar will pick it up and work on it autonomously. You can check the status anytime with getStatus or listTasks.

Available Tools

Sugar exposes the following tools through MCP:

ToolDescription
createTaskCreate a new development task
listTasksList tasks with optional filtering
viewTaskView detailed task information
updateTaskUpdate task properties
removeTaskRemove a task from the queue
getStatusGet system status and metrics
runOnceExecute one autonomous development cycle
initSugarInitialize Sugar in a project