Model Context Protocol (MCP) voor AI
Koppel SmallPict aan Claude Desktop, Cursor, Google Antigravity en AI-agenten.
Koppeling via het Model Context Protocol (MCP)
SmallPict biedt ingebouwde ondersteuning voor het open Model Context Protocol (MCP), waarmee AI-assistenten via natuurlijke opdrachten afbeeldingsbewerkingen kunnen uitvoeren.
End-to-End Image Processing & Edge CDN Flow
Sub-50ms image optimization lifecycle from client upload to Cloudflare Enterprise edge delivery.
Client Application
WordPress / SDK / API
Uploads raw image binary with HMAC-SHA256 signature and UUID v4 idempotency key.
Cloudflare Edge CDN
Global Edge PoPs
Checks global edge cache. On cache HIT, delivers AVIF/WebP in <20ms worldwide.
SmallPict Go Gateway
AWS Lambda / API Gateway
Validates HMAC credentials, verifies quota limits, and scopes access to customer_id.
libvips SIMD Worker
High-Speed C-Engine
Multi-threaded quantization transcode to AVIF & WebP with 0 visual loss and ~88% compression.
S3 Pipeline & Storage
Global Object Store
Stores optimized output, invalidates outdated cache tags, and hydrates Cloudflare Edge.
🛠️ Beschikbare MCP-tools
| Tool | Beschrijving | Belangrijkste parameters |
|---|---|---|
smallpict_optimize | Optimaliseert lokale of externe afbeeldingen naar AVIF/WebP. | path, url, format, quality, max_width |
smallpict_get_quota | Vraagt het resterende quotum en actuele verbruik op. | Geen (gebruikt ingestelde sleutel) |
smallpict_purge_cdn | Wist bestanden direct uit de wereldwijde Cloudflare Edge-cache. | urls (lijst met URL's) |
⚙️ Configuratie voor AI-tools
1. Claude Desktop
Voeg toe aan uw claude_desktop_config.json:
{ "mcpServers": { "smallpict": { "command": "npx", "args": [ "-y", "@smallpict/mcp" ], "env": { "SMALLPICT_API_KEY": "sp_sdk_your_key_here" } } }}2. Cursor IDE
Onder Cursor Settings > Features > MCP:
- Naam: SmallPict
- Type:
command - Commando:
npx -y @smallpict/mcp - Omgevingsvariabele:
SMALLPICT_API_KEY=sp_sdk_your_key_here
3. Google Antigravity
In het configuratiebestand (~/.gemini/antigravity/mcp/smallpict.json):
{ "command": "npx", "args": [ "-y", "@smallpict/mcp" ], "env": { "SMALLPICT_API_KEY": "sp_sdk_your_key_here" }}