assess_create_collection
Create a new collection in the Assess realm for organizing tasks and projects within the addTaskManager MCP Server, supporting structured task management through the ADD framework.
Instructions
Create a new collection in Assess realm.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| collectionName | Yes | Collection name |
Implementation Reference
- src/index.ts:1326-1330 (handler)The handler function that implements the assess_create_collection tool. It generates a unique recordName using uuidv4() and returns a mock success response indicating the collection was created.private async createCollection(collectionName: string) { const recordName = `collection_${uuidv4()}`; // Mock collection creation via CloudKit return { content: [{ type: 'text', text: `Collection "${collectionName}" created with recordName: ${recordName}` }] }; }
- src/index.ts:677-679 (registration)Registration of the tool handler in the CallToolRequestSchema switch statement, which validates arguments and calls the createCollection method.case 'assess_create_collection': this.validateArgs(args, ['collectionName']); return await this.createCollection(args.collectionName);
- src/index.ts:308-317 (schema)Tool schema definition including input validation schema for collectionName, registered in ListToolsRequestSchema response.name: 'assess_create_collection', description: 'Create a new collection in Assess realm.', inputSchema: { type: 'object', properties: { collectionName: { type: 'string', description: 'Collection name' } }, required: ['collectionName'] } },
- src/index.ts:165-179 (schema)TypeScript interface defining the structure of a Collections record for CloudKit operations, relevant to the tool's data model.interface ZenTaskticCollection { recordName?: string; recordType: 'Collections'; fields: { collectionName: { value: string }; // Collection name uniqueId: { value: string }; // UUID, max 58 chars creationDate?: { value: number }; // Timestamp lastModified: { value: number }; // Timestamp // References (relationships in Core Data) ideas?: { value: CKReference[] }; // List of references to Ideas records projects?: { value: CKReference[] }; // List of references to Projects records tasks?: { value: CKReference[] }; // List of references to Task records }; }