Model Context Protocol (MCP) voor AI
Koppel SmallPict aan Claude Desktop, Cursor, Google Antigravity en AI-agenten.
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 global edge delivery.
- 01
Client Application
WordPress / SDK / API
Uploads raw image binary with HMAC-SHA256 signature and UUID v4 idempotency key.
Origin Request
- 02
smallPict Edge CDN
Global Edge PoPs
Checks global edge cache. On cache HIT, delivers AVIF/WebP in <20ms worldwide.
Cache & Delivery
- 03
SmallPict API Gateway
Authentication & Quotas
Validates HMAC credentials, verifies quota limits, and scopes access to customer_id.
Auth & Scoping
- 04
Optimization Engine
High-Speed Native Encoder
Multi-threaded quantization transcode to AVIF & WebP with no visible quality loss and much smaller files.
Transcoding
- 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
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 SmallPict 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" }}