mirror of
https://github.com/trycua/computer.git
synced 2026-01-01 11:00:31 -06:00
CUA Desktop Extension
This directory contains the build artifacts for the CUA Desktop Extension (.mcpb file).
Building the Extension
To build the extension, run the build script from the parent directory:
cd /path/to/libs/python/mcp-server
python3 build-extension.py
This will:
- Copy the MCP server code from
mcp_server/directory - Copy static files (manifest, icons, scripts)
- Create a
.mcpbzip archive indesktop-extension/cua-extension.mcpb - Set custom file icon (platform-specific):
- macOS: Uses
fileicon(install withbrew install fileicon) - Windows/Linux: Not yet supported
- macOS: Uses
Directory Structure
desktop-extension/
├── README.md # This file
├── manifest.json # Extension manifest
├── desktop_extension.png # Extension icon
├── requirements.txt # Python dependencies
├── run_server.sh # Server launcher script
├── setup.py # Dependency installer
└── cua-extension.mcpb # Generated extension archive
Source Files
The actual MCP server code lives in ../mcp_server/:
server.py- Main MCP server implementationsession_manager.py- Session management and resource pooling
Static Files
These files are maintained in this directory:
manifest.json- Extension metadata and configurationdesktop_extension.png- Extension iconrequirements.txt- Python package dependenciesrun_server.sh- Shell script to launch the serversetup.py- Python script to install dependencies
Generated Files
The .mcpb file is generated by the build script and is gitignored.
Installing the Extension
Once built, you can install the extension in Claude Desktop by:
- Opening Claude Desktop Settings
- Going to the Extensions section
- Dropping the
cua-extension.mcpbfile into the window - Following the installation prompts
For more information, see the Anthropic Desktop Extensions documentation.