Magidoc

McpApiKey
Object

Metadata for a user's MCP API key. The plaintext value is never exposed here — it is returned only once at issuance via updateUser's mcpApiKeyPlaintext field.

Fields

#

createdAt

When the MCP API key was issued.

databaseId

Identifies the primary key from the data store.

deletedAt

Identifies the date and time when the object was deleted.

id

ID !
Non-null

ID of the object.

lastUsedAt

When the MCP API key was last used to validate a request.

nameForLog

Object name to be identified in Audit Logs.

path

Non-null

The relative path of the object.

permissions

Non-null

A list of Permissions associated with the currently authenticated User and the McpApiKey.

revokedAt

When the MCP API key was revoked (null if active).

settings

Non-null

The settings associated with the object.

tokenPrefix

A short display-safe prefix of the token (e.g. "mcp_ab12cd34...") to help the user identify the key.

updatedAt

Identifies the date and time when the object was last updated.

url

Non-null

The url of the object.

Interfaces

#

Also implements NodeInterface .

Usages

#

References

#

  • Field mcpApiKey from User