set_api_key
Store and verify your Agnes API key to activate image generation and understanding. Optionally runs a quick check to confirm both capabilities work end-to-end.
Instructions
Set up this server with the user's API key. This is the whole install: save the key, then prove both capabilities actually work end to end.
Call this as soon as the user provides a key. Report the returned message back to them verbatim — it is the completion notice.
The key is verified before being written, so a typo fails here rather than on the first real request. It is stored in plain text at ~/.agnes-image-mcp-key on this machine only, and is sent only to Agnes. AGNES_API_KEY in the environment still wins if set.
Args: key: the Agnes API key, starting with "sk-". Free at https://agnes-ai.com. run_check: generate one small image and read it back to confirm both paths work. Takes 20-60s. Only skip it if the user is in a hurry.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| run_check | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |