configure_api_key
Activate an API key for Maginary after creating it. On local servers the key is stored for reuse; on hosted servers, pass it as a Bearer token in each request.
Instructions
Activate an API key. Local (stdio) servers persist it; hosted does not.
Call this after ``manage_api_key(action='create')`` returns a ``raw_key``.
On a local server the key is saved to ``~/.config/maginary/api_key``
(chmod 600) and survives restarts. On the hosted server
(mcp.maginary.ai) nothing can be stored — auth is per-request: the
response will say ``persisted: false`` and the key must be sent as an
``Authorization: Bearer <key>`` header on every request (set it in the
MCP client's connection config).
Args:
api_key: The full API key string returned by ``manage_api_key``.
Returns:
Confirmation dict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||