mcp-preflight — Claude Code skill: what it does, how to install
Routes assistant requests across ImageKit DAM, Admin, and DevTools MCP servers. Prevents calling the wrong endpoint for media, storage, or documentation tasks.
npx skills add imagekit-developer/skills --skill mcp-preflight -a claude-codeWhat mcp-preflight does
This skill guides the agent to the right ImageKit hosted MCP server. Media operations such as file discovery, uploads, metadata updates, and cache clearing target DAM. Origin management for external storage like S3 or Azure, URL endpoints, and account usage metrics go to Admin. DevTools handles documentation queries and URL transformation generation.
Both DAM and Admin require their own connection and ImageKit account login. DevTools needs no credentials. Missing tools mean the specific server was not linked or lacks granted permissions.
The skill bans inlining raw file bytes or base64 into chat context. It instructs the model to filter searches on the remote server and generate image URLs with transformation_builder instead of assembling query strings manually.
What it helps with
- route agent commands to the correct ImageKit MCP endpoint
- configure external cloud storage origins via Admin MCP
- build image transformation URLs without manual string crafting
- look up SDK parameters and API features through DevTools search
Example prompts for the agent
- Check our ImageKit bandwidth usage via the Admin MCP server
- Build a resized image transformation URL using DevTools
- Find all catalog assets tagged hero in the DAM media library
How to install mcp-preflight
1Skills CLI (Vercel)
npx skills add imagekit-developer/skills --skill mcp-preflight -a claude-code2Manually: put the files in place
~/.claude/skills/mcp-preflight/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/mcp-preflight/
1Skills CLI (Vercel)
npx skills add imagekit-developer/skills --skill mcp-preflight -a codex2Manually: put the files in place
.agents/skills/mcp-preflight/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add imagekit-developer/skills --skill mcp-preflight -a cursor2Manually: put the files in place
.cursor/skills/mcp-preflight/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install imagekit-developer/skills mcp-preflight2Manually: put the files in place
.github/skills/mcp-preflight/SKILL.md1Skills CLI (Vercel)
npx skills add imagekit-developer/skills --skill mcp-preflight -a gemini-cli2Platform CLI
gemini skills install https://github.com/imagekit-developer/skills --path skills/mcp-preflightManually: put the files in place
.devin/skills/mcp-preflight/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add imagekit-developer/skills --skill mcp-preflight -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about mcp-preflight
How to install mcp-preflight in Claude Code?
Run npx skills add imagekit-developer/skills --skill mcp-preflight -a claude-code. Alternatively, add the configuration file to ~/.claude/skills/mcp-preflight/SKILL.md.
What does mcp-preflight do?
It directs the coding assistant to the appropriate ImageKit MCP server between DAM, Admin, and DevTools. It also enforces operational guidelines like server-side search filtering and preventing raw file bytes in chat.
Do all ImageKit MCP servers require an account login?
Only DAM and Admin demand individual connections and active authentication. The DevTools server, which powers search_docs and transformation_builder, works without logging in.
Source text
SKILL.md · MIT
--- name: mcp-preflight description: "Routing guide for ImageKit's MCP servers (DAM, Admin, DevTools). Use before any ImageKit MCP call. DAM: media library search, upload, organize, share. Admin: origins, external storage, URL endpoints, account usage, usage analytics. DevTools: docs search and transformation URLs." --- # MCP Preflight ImageKit has three hosted MCP servers. Call the one that matches the job. | Job | Server | Then | |-----|--------|------| | Search, upload, organize, tag, share, metadata, collections, path policies, public links, cache purge | DAM (`https://imagekit.io/mcp/dam`) | See skills below when the task is search, upload, sharing, or AI tasks | | Origins / external storage (S3, GCS, Azure, web server, …) | Admin (`https://imagekit.io/mcp/admin`) | `list_origins`, `create_origin`, `get_origin`, `update_origin`, `delete_origin` | | URL endpoints | Admin | `list_url_endpoints`, `create_url_endpoint`, `get_url_endpoint`, `update_url_endpoint`, `delete_url_endpoint` | | Account usage totals or usage analytics | Admin | `get_account_usage`, `get_account_usage_analytics` | | "How do I…", API/SDK details, whether a feature exists | DevTools `search_docs` | Read the `search-docs` skill first | | Build a transformation URL | DevTools `transformation_builder` | Read the `transformation-builder` skill first | | Integrate ImageKit into an app, CMS, or framework | — | Read `imagekit-integrations` to pick the SDK/plugin, then `search_docs` for details | DAM and Admin each need a separate connection and ImageKit sign-in. DevTools does not. If a tool you need is missing, the user has not connected that server (or has not granted that permission). ## When a skill actually helps Most DAM and Admin tools are self-explanatory. Read a companion skill only for the cases below — they have calling conventions that the tool schema does not make obvious. | Task | Skill | |------|--------| | Search / filter / list assets | `search-assets` — Lucene `searchQuery`, and you must discover custom metadata fields and tags before guessing | | Upload a file | `upload-files` — picker vs signed upload; never put file bytes in chat | | Who can access a file, folder, or collection; grant or revoke access | `asset-access-control` — file/folder ACL tools are not the same as collection ACL tools | | Create or apply AI tagging / metadata / QC workflows | `ai-tasks` — payload shape, vocabularies, and how they attach to saved extensions | | Which SDK, plugin, or widget to use for a stack | `imagekit-integrations` — then `search_docs` for implementation details | ## Rules 1. **DAM for the media library. Admin for origins, URL endpoints, usage, and usage analytics.** Do not search DAM for origins or usage, and do not look for file tools on Admin. 2. **Never inline file bytes** (no base64, no paths as file contents). See `upload-files`. 3. **Filter search on the server** with `search_media_library`. See `search-assets`. 4. **Use `transformation_builder`** instead of hand-crafting transformation URLs. 5. **Use `search_docs`** before writing ImageKit integration code. Do not rely on training data for method names or parameters. If you need to pick an SDK or plugin first, read `imagekit-integrations`.
© imagekit-developer · MIT · imagekit-developer/skills