Протокол Model Context Protocol (MCP) для ИИ
Интеграция SmallPict с Claude Desktop, Cursor, Google Antigravity и ИИ-ассистентами.
SmallPict поддерживает открытый стандарт Model Context Protocol (MCP), позволяя ассистентам искусственного интеллекта оптимизировать графику с помощью текстовых команд.
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
Доступные инструменты MCP
| Инструмент | Назначение | Параметры |
|---|---|---|
smallpict_optimize | Оптимизирует локальные файлы или URL в форматы AVIF/WebP. | path, url, format, quality, max_width |
smallpict_get_quota | Запрашивает остаток квоты и текущий расход. | Нет (использует настроенный ключ) |
smallpict_purge_cdn | Удаляет файлы из глобального периферийного кэша CDN. | urls (список ссылок) |
Настройка в ИИ-редакторах
1. Claude Desktop
Добавьте в файл claude_desktop_config.json:
{ "mcpServers": { "smallpict": { "command": "npx", "args": [ "-y", "@smallpict/mcp" ], "env": { "SMALLPICT_API_KEY": "sp_sdk_your_key_here" } } }}2. Cursor IDE
В Cursor Settings > Features > MCP:
- Имя: SmallPict
- Тип:
command - Команда:
npx -y @smallpict/mcp - Переменная окружения:
SMALLPICT_API_KEY=sp_sdk_your_key_here
3. Google Antigravity
В файле конфигурации (~/.gemini/antigravity/mcp/smallpict.json):
{ "command": "npx", "args": [ "-y", "@smallpict/mcp" ], "env": { "SMALLPICT_API_KEY": "sp_sdk_your_key_here" }}