get_ideas
Retrieve all ideas within the addTaskManager MCP Server, helping users organize and access creative concepts using the ADD (Assess-Decide-Do) framework for task and project management.
Instructions
Get all ideas.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:1243-1271 (handler)Primary handler for the 'get_ideas' tool. Formats and returns list of ideas from CloudKit service or mock data.private async getIdeas() { return this.withCloudKitOrMock( 'getIdeas', async () => { // CloudKit production implementation const ideas = await this.cloudKitService.getIdeas(); let response = `All ideas:\n`; if (ideas.length === 0) { response += 'No ideas found. Time to brainstorm! 💡'; } else { response += ideas.map((idea: any) => { const name = idea.fields?.ideaName?.value || 'Unnamed Idea'; const realmId = idea.fields?.realmId?.value || 1; const realmName = realmId === 1 ? 'Assess' : 'Unknown'; return `- ${name} (${idea.recordName}) [${realmName}]`; }).join('\n'); } return { content: [{ type: 'text', text: response }] }; }, async () => { // Mock implementation const mockIdeas = [{ recordName: 'idea_789', ideaName: 'Brilliant Idea Z' }]; return { content: [{ type: 'text', text: `Found ${mockIdeas.length} ideas:\n${mockIdeas.map(i => `- ${i.ideaName} (${i.recordName})`).join('\n')}` }] }; } ); }
- src/index.ts:570-573 (registration)MCP tool registration for 'get_ideas' including name, description, and empty input schema.name: 'get_ideas', description: 'Get all ideas.', inputSchema: { type: 'object', properties: {} } },
- Helper method in CloudKitService that queries all 'Ideas' records from CloudKit, sorted by lastModified descending. Called by main handler.async getIdeas(): Promise<ZenTaskticIdea[]> { return this.queryRecords<ZenTaskticIdea>('Ideas', { sortBy: [{ fieldName: 'lastModified', ascending: false }] }); }
- src/index.ts:133-149 (schema)TypeScript interface defining the structure of ZenTaskticIdea records used by the getIdeas handler.export interface ZenTaskticIdea { recordName?: string; recordType: 'Ideas'; // Note: entity name is 'Ideas' in Core Data fields: { ideaName: { value: string }; // Max 1500 chars, combines original title & body realmId: { value: number }; // Integer 16, default 0 (usually REALM_ASSESS_ID) uniqueId: { value: string }; // UUID lastModified: { value: number }; // Timestamp // References (relationships in Core Data) collection?: { value: CKReference }; // Reference to Collections record realm?: { value: CKReference }; // Reference to Realms record tasks?: { value: CKReference[] }; // Tasks derived from this idea // removed createdAt, use lastModified or CloudKit system creationDate }; }