Skip to content

MCP Server Tool Reference

The Paquet Builder MCP Server exposes over 20 tools for managing installer projects programmatically. This page documents each tool’s purpose, parameters, and behavior.


ToolDescription
open_projectOpen an existing .pbpx project file
close_projectClose the current project
save_projectSave the project to disk
new_projectCreate a new blank project
list_recent_projectsList recently opened project files
get_project_infoGet a comprehensive project overview

Opens an existing Paquet Builder project file.

ParameterTypeRequiredDescription
pathstringYesFull path to the .pbpx project file

Returns: Project summary including title, company, version, output path, and key settings.

Closes the currently loaded project. No parameters.

Saves the current project to disk. Usually not needed since changes are auto-saved after every mutation.

Creates a new blank project.

ParameterTypeRequiredDescription
namestringYesProject title
output_pathstringNoOutput directory for the compiled package
install_dirstringNoDefault installation directory

Returns a list of recently opened project files with their paths. No parameters.

Returns a comprehensive overview of the current project: title, company, version, output settings, architecture, compression, signing status, component count, variable count, and more. No parameters.


Reads the current value of a project setting.

ParameterTypeRequiredDescription
keystringYesThe setting key (e.g., compressionlzma2, digitalsign, title)

Modifies a project setting. The change is applied and saved immediately.

ParameterTypeRequiredDescription
keystringYesThe setting key
valuestringYesThe new value

Returns detailed metadata about a setting: data type, allowed values, effects on other settings, dependencies, warnings, and documentation link.

ParameterTypeRequiredDescription
keystringYesThe setting key

Searches for settings matching a natural language description. Supports both English and French queries.

ParameterTypeRequiredDescription
intentstringYesNatural language description (e.g., "compression options", "options de signature")

Returns: A ranked list of matching settings with keys, labels, and descriptions.


Queries items in one of 6 collection domains.

ParameterTypeRequiredDescription
domainstringYesfiles, variables, localization, registry, shortcuts, or screens
querystringYeslist, details, search, or schema
idstringNoItem identifier (for details)
searchstringNoSearch term (for search)
limitnumberNoMaximum results to return
include_propertiesbooleanNoInclude full property details in list results
DomainDescription
filesComponents and their files (list components, view file lists, search files)
variablesProject variables (list, search, view details)
localizationResource strings and languages
registryRegistry entries created by the installer
shortcutsStart Menu and Desktop shortcuts
screensHTML content for installer screens (Welcome, License, Readme, Final)

Adds, updates, or deletes items in a collection. Changes are applied and saved immediately.

ParameterTypeRequiredDescription
domainstringYesCollection domain (same as above)
actionstringYesadd, update, delete, set_content, clear_content, or copy_content
targetsarrayNoTarget items (component names, variable names, etc.)
valuesobjectNoProperties to set or update
optionsobjectNoAdditional options (varies by domain and action)

Lists and inspects custom actions across the 15 available events.

ParameterTypeRequiredDescription
querystringYeslist, details, search, or schema
eventstringNoEvent name (e.g., afterextraction, initialization, finalization)
action_idstringNoAction identifier (for details)
searchstringNoSearch term
limitnumberNoMaximum results
All 15 event names
EventDescription
initializationPackage startup
afterwelcomeAfter the welcome screen
afterstartreadmeAfter the readme screen
beforeextractionBefore file extraction begins
afterextractionAfter files are extracted
aftershortcutsAfter shortcuts are created
aftersetupAfter setup execution
beforefinalscreenBefore the final screen
finalizationPackage cleanup
uninstinitUninstaller startup
uninstbeforeBefore uninstall operations
uninstafterAfter uninstall operations
uninstfinalizeUninstaller cleanup
dlgcomponentselectComponent selection dialog
dlgdestfolderDestination folder dialog

Adds, updates, deletes, moves, duplicates, or toggles custom actions.

ParameterTypeRequiredDescription
actionstringYesadd, update, delete, move, duplicate, set_enabled, or clear_event
eventstringYesTarget event name
action_idstringNoTarget action identifier
action_typestringNoAction class for add (e.g., TCreateShortcutInfo, TConditionalIfThenInfo)
valuesobjectNoProperties to set
insertstringNoInsert position: before or after
reference_action_idstringNoReference action for positioning
enabledbooleanNoEnable/disable state (for set_enabled)

Validates custom action configuration and control flow before applying changes.

ParameterTypeRequiredDescription
scopestringYesaction, event, or all
eventstringNoEvent to validate
action_idstringNoSpecific action to validate
action_typestringNoAction type (for property validation)
valuesobjectNoProperty values to check
deepbooleanNoInclude control flow validation (If/Then nesting, For/Next loops)

Triggers a full compilation of the current project. Returns success/failure status with basic build information (output path, file size). No parameters.

Retrieves the detailed compilation log from the last build, including all phases, errors, warnings, and timing information. No parameters.


Performs a full-text search across the Paquet Builder documentation.

ParameterTypeRequiredDescription
querystringYesSearch query
limitnumberNoMaximum results (default: 5)

Returns: Ranked results with file path, section title, text snippet, and relevance score.

Performs file operations on the local filesystem.

ParameterTypeRequiredDescription
actionstringYesread, write, list, or exists
pathstringYesFile or directory path
patternstringNoGlob pattern (for list)
contentstringNoFile content (for write)
appendbooleanNoAppend mode (for write)
limitnumberNoMax entries (for list)
offsetnumberNoOffset (for list)

Executes a directive file (.pbd) for batch project creation or modification.

ParameterTypeRequiredDescription
pathstringYesFull path to the .pbd directive file

Here is an example showing how an AI client might use the MCP tools to configure and build an installer:

  1. Open the project

    open_project("C:\\Projects\\myapp.pbpx")
    → "My Application 1.0 by Acme Software — 3 components, 142 files"
  2. Update settings

    set_setting("title", "My Application 2.0")
    → Setting updated and saved
    set_setting("compressionlzma2", "1")
    → LZMA2 compression enabled
  3. Add a component

    collection_mutate(domain="files", action="add",
    targets=["Plugins"],
    values={"title": "Plugins", "description": "Optional plugins"})
    → Component "Plugins" created
  4. Add a custom action

    custom_actions_mutate(action="add", event="afterextraction",
    action_type="TCreateShortcutInfo",
    values={"ShortcutName": "My Application",
    "ShortcutTarget": "%DESTPATH%\\myapp.exe"})
    → Shortcut action added to After Extraction
  5. Compile and check

    compile()
    → Build successful: C:\Output\Setup.exe (12.4 MB)
    get_build_log()
    → Full compilation log with timing and status