request_permission
Grant or manage access permissions for users on the Anki MCP server to enable authorized interactions and secure data handling.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/miscellaneous.ts:355-371 (handler)Handler and registration for the 'request_permission' tool. It calls ankiClient.miscellaneous.requestPermission() to request permission from AnkiConnect and returns the result as text content.server.tool('request_permission', {}, async () => { try { const permission = await ankiClient.miscellaneous.requestPermission(); return { content: [ { type: 'text', text: `Permission request result: ${JSON.stringify(permission, null, 2)}`, }, ], }; } catch (error) { throw new Error( `Failed to request permission: ${error instanceof Error ? error.message : String(error)}` ); } });
- src/tools/miscellaneous.ts:355-355 (registration)Registers the 'request_permission' tool with empty input schema on the MCP server.server.tool('request_permission', {}, async () => {