Skip to main content
Glama

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

NameRequiredDescriptionDefault

No arguments

Input Schema (JSON Schema)

{ "properties": {}, "type": "object" }

Implementation Reference

  • 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], }; } }
  • 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)', }, }, },
  • 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)', }, }, }, },
  • Dispatch case in the tool calling switch statement that routes 'connect' calls to the handleConnect handler.
    case 'connect': return await this.handleConnect(args);

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AiDD-app/mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server