Command Line Interface
Below are the available CLI commands for the AI Integration extension.
Revoke tokens
bin/magento mirasvit:mcp:revoke <username>
Revoke all MCP OAuth tokens for a specific admin user. This immediately disconnects all AI clients authorized by that user.
| Argument | Description |
|---|---|
| username | Admin username whose tokens should be revoked. Required. |
Example:
bin/magento mirasvit:mcp:revoke admin
All MCP tokens for user "admin" have been revoked.
Clean expired tokens
bin/magento mirasvit:mcp:clean-expired-tokens
Remove expired and revoked OAuth tokens and authorization codes from the database. This command runs the same cleanup logic as the daily cron job (mirasvit_mcp_clean_expired_tokens) that executes automatically at 3:00 AM.
Revoked tokens are kept for 7 days for audit purposes before being deleted.
Example output:
Cleaning expired MCP OAuth tokens...
Cleanup results:
Authorization codes deleted: 3
Access tokens deleted: 12
Refresh tokens deleted: 8
Revoked tokens deleted: 5
Done. Total items removed: 28