Skip to content
smallPict

Protocole Model Context Protocol (MCP)

Connexion de SmallPict avec Claude Desktop, Cursor, Google Antigravity et les agents IA.

SmallPict prend en charge le standard ouvert Model Context Protocol (MCP) initié par Anthropic, permettant à vos assistants de code IA de manipuler vos actifs graphiques par simple requête textuelle.

End-to-End Image Processing & Edge CDN Flow

Sub-50ms image optimization lifecycle from client upload to global edge delivery.

  1. 01

    Client Application

    WordPress / SDK / API

    Uploads raw image binary with HMAC-SHA256 signature and UUID v4 idempotency key.

    Origin Request

  2. 02

    smallPict Edge CDN

    Global Edge PoPs

    Checks global edge cache. On cache HIT, delivers AVIF/WebP in <20ms worldwide.

    Cache & Delivery

  3. 03

    SmallPict API Gateway

    Authentication & Quotas

    Validates HMAC credentials, verifies quota limits, and scopes access to customer_id.

    Auth & Scoping

  4. 04

    Optimization Engine

    High-Speed Native Encoder

    Multi-threaded quantization transcode to AVIF & WebP with no visible quality loss and much smaller files.

    Transcoding

  5. 05

    Secure Storage & Sync

    Encrypted Cloud Storage

    Stores optimized output, invalidates outdated cache tags, and warms the edge cache.

    Persistent Sync

Zero Data Interception: End-to-end HMAC validation & SHA256 integrity check

Engine: smallPict


Outils MCP disponibles

OutilDescriptionParamètres
smallpict_optimizeOptimise un fichier local ou une URL distante en AVIF/WebP.path, url, format, quality, max_width
smallpict_get_quotaRécupère le solde de quota et l'historique d'utilisation.Aucun (utilise la clé configurée)
smallpict_purge_cdnPurge instantanément des URLs sur le CDN Edge SmallPict.urls (liste d'adresses)

Configuration pour les éditeurs IA

1. Claude Desktop

Dans votre fichier claude_desktop_config.json :

JSON
{  "mcpServers": {    "smallpict": {      "command": "npx",      "args": [        "-y",        "@smallpict/mcp"      ],      "env": {        "SMALLPICT_API_KEY": "sp_sdk_your_key_here"      }    }  }}

2. Cursor IDE

Dans Cursor Settings > Features > MCP :

  • Nom : SmallPict
  • Type : command
  • Commande : npx -y @smallpict/mcp
  • Variable d'environnement : SMALLPICT_API_KEY=sp_sdk_your_key_here

3. Google Antigravity

Dans le fichier de configuration (~/.gemini/antigravity/mcp/smallpict.json) :

JSON
{  "command": "npx",  "args": [    "-y",    "@smallpict/mcp"  ],  "env": {    "SMALLPICT_API_KEY": "sp_sdk_your_key_here"  }}