Protocolo de contexto de modelos (MCP)
Integração do SmallPict com Claude Desktop, Cursor, Google Antigravity e agentes de IA.
O SmallPict oferece suporte nativo ao padrão aberto Model Context Protocol (MCP), permitindo que agentes de inteligência artificial gerenciem ativos visuais diretamente.
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
Ferramentas MCP integradas
| Ferramenta | Descrição | Parâmetros |
|---|---|---|
smallpict_optimize | Otimiza arquivos locais ou remotos para AVIF/WebP. | path, url, format, quality, max_width |
smallpict_get_quota | Consulta saldo de cotas e consumo atual. | Nenhum (usa chave configurada) |
smallpict_purge_cdn | Invalida arquivos na rede global de borda da CDN. | urls (lista de links) |
Configuração para assistentes de IA
1. Claude Desktop
Adicione ao arquivo claude_desktop_config.json:
{ "mcpServers": { "smallpict": { "command": "npx", "args": [ "-y", "@smallpict/mcp" ], "env": { "SMALLPICT_API_KEY": "sp_sdk_your_key_here" } } }}2. Cursor IDE
Em Cursor Settings > Features > MCP:
- Nome: SmallPict
- Tipo:
command - Comando:
npx -y @smallpict/mcp - Variável:
SMALLPICT_API_KEY=sp_sdk_your_key_here
3. Google Antigravity
No arquivo de configuração (~/.gemini/antigravity/mcp/smallpict.json):
{ "command": "npx", "args": [ "-y", "@smallpict/mcp" ], "env": { "SMALLPICT_API_KEY": "sp_sdk_your_key_here" }}