JSPM

lunar_mcp_project

1.0.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 1
    • Score
      100M100P100Q24110F
    • License ISC

    An MCP package for Duomi API image generation and editing.

    Package Exports

      This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lunar_mcp_project) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

      Readme

      Image Editor Script

      This script interacts with the Duomi API for image editing.

      Setup

      1. Open image_editor.py:

        import requests
        import time
        import json
        
        DUOMI_API_BASE_URL = "https://duomiapi.com/api/gemini"
        # Replace with your actual Authorization header
        AUTHORIZATION_TOKEN = "YOUR_AUTHORIZATION_TOKEN"
        
        # ... (rest of the script)
      2. Replace "YOUR_AUTHORIZATION_TOKEN" with your actual API authorization token.

      3. Update IMAGE_URLS: Replace ["https://example.com/your_image.png"] with the actual URL(s) of the image(s) you want to edit.

      4. Optional Configuration: Modify MODEL, PROMPT, ASPECT_RATIO, and IMAGE_SIZE variables in the main() function as needed.

      Usage

      Run the script from your terminal:

      python image_editor.py

      The script will:

      1. Initiate an image editing task.
      2. Print the task ID.
      3. Poll the API every 5 seconds to check the status of the task.
      4. Print the final status and any generated image URLs upon completion or failure.