Skip to main content
Glama
Goose App Maker MCP

Goose App Maker MCP

by michaelneale

Creador de aplicaciones Goose

Este servidor MCP (Protocolo de contexto de modelo) permite a los usuarios crear, administrar y servir aplicaciones web a través de Goose, que utilizan Goose para llamadas de API, acceso a datos y más.

Instalar

haga clic aquí para instalar en goose 🪿 🪿🪿🪿🪿🪿🪿🪿🪿🪿🪿

Características

  • Crear nuevas aplicaciones web a partir de instrucciones básicas

  • Almacene las aplicaciones en el directorio ~/.config/goose/app-maker-apps (cada aplicación en su propio subdirectorio)

  • Servir aplicaciones web localmente bajo demanda

  • Abra las aplicaciones web en el navegador predeterminado (y sin cromo si es posible)

  • Enumera todas las aplicaciones web disponibles

  • Crear aplicaciones que puedan usar Goose como un backend genérico.

Related MCP server: mcp-toolkit

Ejemplos

Cargar datos a través de Goose (reutilizando sus extensiones)

Captura de pantalla del 28/04/2025 a las 19:38 24 h

Captura de pantalla del 28/04/2025 a las 19:38:53

Goose realiza un seguimiento de tus aplicaciones:

Crea aplicaciones a pedido

Mostrar también datos tabulares o de lista enriquecidos

Uso de la fuente

p.ej. en ganso:

# Run directly from source
uv --directory $PWD run python main.py

IMPORTANTE: este MCP debe ejecutarse en la aplicación de escritorio Goose en este momento (ya que accede a goose-server/goosed)

Construcción y publicación

Opcional: Construir en un entorno limpio utilizando rayos UV.

uv venv .venv
source .venv/bin/activate
uv pip install build
python -m build

Publicación

  1. Actualizar la versión en pyproject.toml :

[project]
version = "x.y.z"  # Update this
  1. Construya el paquete:

# Clean previous builds
rm -rf dist/*
python -m build
  1. Publicar en PyPI:

# Install twine if needed
uv pip install twine

# Upload to PyPI
python -m twine upload dist/*

Cómo funciona

Este MCP ofrece aplicaciones, pero también les permite hablar con Goose a través de Goosed y su propia sesión:

Descripción general

El sistema implementa un patrón de solicitud-respuesta asíncrono y sin bloqueo que permite a las aplicaciones web enviar solicitudes a Goose y recibir respuestas sin bloquear el hilo principal. Esto se logra mediante una combinación de:

  1. Un punto final de bloqueo en el lado del servidor

  2. JavaScript asincrónico en el lado del cliente

  3. Un mecanismo de almacenamiento de respuestas con sincronización de subprocesos

Estructura de la aplicación web

Las aplicaciones web se crean (o descargan) a petición, basándose en recursos o plantillas. Cada aplicación web se almacena en su propio directorio, en ~/.config/goose/app-maker-apps con la siguiente estructura:

app-name/
├── goose-app-manifest.json     # App metadata
├── index.html        # Main HTML file
├── style.css         # CSS styles
├── script.js         # JavaScript code
└── goose_api.js      # allows the apps to access goose(d) for deeper backend functionality
└── ...               # Other app files

El archivo goose-app-manifest.json contiene metadatos sobre la aplicación, incluidos:

  • nombre: Nombre para mostrar de la aplicación

  • tipo: Tipo de aplicación (por ejemplo, "estática", "reacción", etc.)

  • Descripción: Breve descripción de la aplicación.

  • creado: Marca de tiempo cuando se creó la aplicación

  • archivos: Lista de archivos en la aplicación

1. Flujo de solicitud del lado del cliente

Cuando un cliente quiere obtener una respuesta de Goose:

┌─────────┐     ┌─────────────────┐     ┌───────────────┐     ┌──────────────┐
│ User    │────▶│ gooseRequestX() │────▶│ Goose API     │────▶│ waitForResp- │
│ Request │     │ (text/list/     │     │ (/reply)      │     │ onse endpoint │
└─────────┘     │  table)         │     └───────────────┘     └──────────────┘
                └─────────────────┘                                   │
                         ▲                                            │
                         │                                            │
                         └────────────────────────────────────────────┘
                                          Response
  1. El usuario inicia una solicitud (por ejemplo, al hacer clic en "Obtener respuesta de la lista")

  2. El cliente llama a una de las funciones de solicitud ( gooseRequestText , gooseRequestList o gooseRequestTable ).

  3. La función genera un responseId único y envía una solicitud a Goose con instrucciones para llamar app_response con este ID

  4. Luego, la función llama waitForResponse(responseId) que sondea el punto final /wait_for_response/{responseId}

  5. Este punto final se bloquea hasta que la respuesta esté disponible o se produzca un tiempo de espera.

  6. Cuando la respuesta está disponible, se devuelve al cliente y se muestra.

2. Procesamiento del lado del servidor

En el lado del servidor:

┌─────────────┐     ┌─────────────┐     ┌───────────────┐
│ HTTP Server │────▶│ app_response│────▶│ response_locks│
│ (blocking   │     │ (stores     │     │ (notifies     │
│  endpoint)  │◀────│  response)  │◀────│  waiters)     │
└─────────────┘     └─────────────┘     └───────────────┘
  1. El punto final /wait_for_response/{responseId} usa variables de condición para bloquear hasta que haya una respuesta disponible

  2. Cuando Goose procesa la solicitud, llama a la función app_response con los datos de respuesta y el responseId

  3. La función app_response almacena la respuesta en el diccionario app_responses y notifica a todos los hilos en espera mediante la variable de condición.

  4. Luego, la solicitud HTTP bloqueada se desbloquea y devuelve la respuesta al cliente.

3. Sincronización de subprocesos

El sistema utiliza threading.Condition de Python.Condición para la sincronización de subprocesos:

  1. Cuando un cliente solicita una respuesta que aún no está disponible, se crea una variable de condición para ese responseId

  2. El hilo del controlador HTTP espera esta condición con un tiempo de espera (30 segundos)

  3. Cuando la respuesta esté disponible, se notifica la condición.

  4. Si el tiempo de espera expira antes de que la respuesta esté disponible, se devuelve un error.

Componentes clave

Funciones del lado del cliente

  • gooseRequestText(query) : solicita una respuesta de texto

  • gooseRequestList(query) : solicita una respuesta de lista

  • gooseRequestTable(query, columns) : solicita una respuesta de tabla con las columnas especificadas

  • waitForResponse(responseId) : espera una respuesta con el ID dado

Funciones del lado del servidor

  • app_response(response_id, string_data, list_data, table_data) : almacena una respuesta y notifica a los que esperan

  • Controlador HTTP con punto final /wait_for_response/{responseId} : se bloquea hasta que la respuesta esté disponible

Available Tools

9 tools
app_createB
Create a new web application directory and copy starter files.
The starter files are for you to replace with actual content, you don't have to use them as is.
the goose_api.js file is a utility you will want to keep in case you need to do api calls as part of your app via goose.

Args:
    app_name: Name of the application (will be used as directory name)
    description: Brief description of the application (default: "")

Returns:
    A dictionary containing the result of the operation

After this, consider how you want to change the app to meet the functionality, look at the examples in resources dir if you like.
Or, you can replace the content with existing html/css/js files you have (just make sure to leave the goose_api.js file in the app dir)

Use the app_error tool once it is opened and user has interacted (or has started) to check for errors you can correct the first time, this is important to know it works.

Inputs: app_name (required), description. Returns: result

app_deleteC
Delete an existing web application.

Args:
    app_name: Name of the application to delete

Returns:
    A dictionary containing the result of the operation

Inputs: app_name (required). Returns: result

app_errorA
Report an error from the app or retrieve the list of errors.
This is useful while developing or debugging the app as it allows errors (or any messages) to be reported and monitored

Args:
    error_message: Optional error message to report. If None, returns the list of errors.
    clear: Optional, If True, clears the list of errors

Returns:
    A string containing the list of errors if error_message is None,
    otherwise a confirmation message.

Inputs: error_message, clear. Returns: result

app_listB
List all available web applications.

Returns:
    A dictionary containing the list of available apps and their details

Inputs: no named parameters. Returns: result

app_openA
Open an app in the default web browser. If the app is not currently being served,
it will be served first.
Can only open one app at a time.

Args:
    app_name: Name of the application to open

Returns:
    A dictionary containing the result of the operation

Inputs: app_name (required). Returns: result

app_refreshA
Refresh the currently open app in Chrome.
Only works on macOS with Google Chrome.

Returns:
    A dictionary containing the result of the operation

Inputs: no named parameters. Returns: result

app_responseA
Use this to return a response to the app that has been requested.
Provide only one of string_data, list_data, or table_data.

Args:
    string_data: Optional string response
    list_data: Optional list of strings response
    table_data: Optional table response with columns and rows
                Format: {"columns": ["col1", "col2", ...], "rows": [["row1col1", "row1col2", ...], ...]}

Returns:
    True if the response was stored successfully, False otherwise

Inputs: string_data, list_data, table_data. Returns: result

app_serveA
Serve an existing web application on a local HTTP server.
The server will automatically find an available port.

Can only serve one app at a time

Args:
    app_name: Name of the application to serve

Returns:
    A dictionary containing the result of the operation

Inputs: app_name (required). Returns: result

app_stop_serverB
Stop the currently running HTTP server.

Returns:
    A dictionary containing the result of the operation

Inputs: no named parameters. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 9 tools

    Disambiguation4/5

    Most tools have distinct purposes, but there is some potential confusion between app_open and app_serve, as both involve launching an app, and app_error's dual functionality for reporting and retrieving errors could be ambiguous. However, the descriptions clarify their specific roles, making them generally distinguishable.

    Naming Consistency5/5

    All tool names follow a consistent 'app_' prefix with a descriptive action in snake_case, such as app_create, app_delete, and app_list. This pattern is maintained throughout all nine tools, making them predictable and easy to understand.

    Tool Count5/5

    With 9 tools, the count is well-scoped for managing web applications, covering creation, deletion, listing, serving, opening, error handling, refreshing, responding, and stopping the server. Each tool serves a clear purpose without redundancy, fitting the domain appropriately.

    Completeness4/5

    The toolset provides comprehensive coverage for basic app lifecycle management, including CRUD operations and runtime interactions. A minor gap exists in the lack of an update tool for modifying existing apps, but agents can work around this by recreating apps or using other tools like app_response for content changes.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers