connect
Authenticate your AiDD account through browser login to enable AI-powered task extraction from Apple Notes and sync prioritized items across productivity services like Google Tasks, Todoist, and Notion.
Instructions
Connect to AiDD account via browser authentication
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"type": "object"
}
Implementation Reference
- src/index-aidd.ts:1070-1116 (handler)The handler function that executes the 'connect' tool logic, handling authentication via email/password or default device-based method, interacting with backendClient.authManager.private async handleConnect(args?: any) { try { const authManager = (this.backendClient as any).authManager; let success = false; // If email/password provided, use email authentication if (args?.email && args?.password) { success = await authManager.signInWithEmail(args.email, args.password); if (!success) { return { content: [{ type: 'text', text: 'ā Failed to sign in with email/password. Please check your credentials.', } as TextContent], }; } } else { // Otherwise use default authentication (device-based) success = await this.backendClient.authenticate(); } if (success) { const info = authManager.getUserInfo(); return { content: [{ type: 'text', text: `ā Connected to AiDD\n\nš§ Email: ${info.email || 'Unknown'}\nš Subscription: ${info.subscription || 'FREE'}\nš User ID: ${info.userId || 'Unknown'}\n\nReady to manage your tasks!`, } as TextContent], }; } else { return { content: [{ type: 'text', text: 'ā Failed to connect to AiDD. Please try again or provide email/password.', } as TextContent], }; } } catch (error) { return { content: [{ type: 'text', text: `ā Error connecting to AiDD: ${error instanceof Error ? error.message : 'Unknown error'}`, } as TextContent], }; } }
- src/index-aidd.ts:394-406 (schema)Input schema defining optional email and password parameters for the 'connect' tool.inputSchema: { type: 'object', properties: { email: { type: 'string', description: 'Your AiDD account email (optional - for email/password auth)', }, password: { type: 'string', description: 'Your AiDD account password (optional - for email/password auth)', }, }, },
- src/index-aidd.ts:392-407 (registration)Tool registration in the getTools() array, including name, description, and input schema.name: 'connect', description: 'Connect to your AiDD account with email/password or OAuth', inputSchema: { type: 'object', properties: { email: { type: 'string', description: 'Your AiDD account email (optional - for email/password auth)', }, password: { type: 'string', description: 'Your AiDD account password (optional - for email/password auth)', }, }, }, },
- src/index-aidd.ts:105-106 (handler)Dispatch case in the tool calling switch statement that routes 'connect' calls to the handleConnect handler.case 'connect': return await this.handleConnect(args);