Skip to main content
Glama
build.shβ€’1.72 kB
#!/bin/bash # LibreOffice MCP Extension Build Script # This script packages the extension into an .oxt file for installation set -e # Get script directory (works even if called from different location) SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" PLUGIN_DIR="$SCRIPT_DIR" BUILD_DIR="$SCRIPT_DIR/../build" EXTENSION_NAME="libreoffice-mcp-extension" VERSION="1.0.0" echo "πŸ—οΈ Building LibreOffice MCP Extension v${VERSION}" # Create build directory echo "πŸ“ Creating build directory..." mkdir -p "$BUILD_DIR" cd "$PLUGIN_DIR" # Clean previous builds rm -f "$BUILD_DIR/${EXTENSION_NAME}-${VERSION}.oxt" rm -f "$BUILD_DIR/${EXTENSION_NAME}.oxt" echo "πŸ“¦ Packaging extension files..." # Create the .oxt file (which is just a ZIP archive) zip -r "$BUILD_DIR/${EXTENSION_NAME}-${VERSION}.oxt" \ META-INF/ \ pythonpath/ \ *.xml \ *.xcu \ *.txt \ -x "*.pyc" "*/__pycache__/*" # Create a symlink for easier access (or copy if symlinks not supported) ln -sf "${EXTENSION_NAME}-${VERSION}.oxt" "$BUILD_DIR/${EXTENSION_NAME}.oxt" 2>/dev/null || \ cp "$BUILD_DIR/${EXTENSION_NAME}-${VERSION}.oxt" "$BUILD_DIR/${EXTENSION_NAME}.oxt" echo "βœ… Extension built successfully!" echo "πŸ“ Output: $BUILD_DIR/${EXTENSION_NAME}-${VERSION}.oxt" echo "" echo "πŸš€ To install the extension:" echo " 1. Open LibreOffice" echo " 2. Go to Tools > Extension Manager" echo " 3. Click 'Add' and select the .oxt file" echo " 4. Restart LibreOffice" echo "" echo "πŸ”§ Or install via command line:" echo " unopkg add \"$BUILD_DIR/${EXTENSION_NAME}-${VERSION}.oxt\"" echo "" echo "🌐 After installation, the MCP server will be available at:" echo " http://localhost:8765"

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jwingnut/mcp-libre'

If you have feedback or need assistance with the MCP directory API, please join our Discord server