assess_create_context
Create a new context in the Assess realm to organize tasks and projects within the addTaskManager MCP Server, ensuring structured task management under the ADD framework.
Instructions
Create a new context in Assess realm.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contextName | Yes | Context name (max 30 chars) |
Implementation Reference
- src/index.ts:319-328 (registration)Registration of the 'assess_create_context' tool including its name, description, and input schema in the ListTools response.name: 'assess_create_context', description: 'Create a new context in Assess realm.', inputSchema: { type: 'object', properties: { contextName: { type: 'string', description: 'Context name (max 30 chars)' } }, required: ['contextName'] } },
- src/index.ts:680-682 (handler)Dispatch handler in the CallToolRequestSchema switch statement that validates arguments and calls the createContext method.case 'assess_create_context': this.validateArgs(args, ['contextName']); return await this.createContext(args.contextName);
- src/index.ts:1332-1336 (handler)Core handler function implementing the tool logic: generates a unique CloudKit recordName using UUID and returns a mock success response (in production would save to CloudKit using CloudKitService.saveRecord).private async createContext(contextName: string) { const recordName = `context_${uuidv4()}`; // Mock context creation via CloudKit return { content: [{ type: 'text', text: `Context "${contextName}" created with recordName: ${recordName}` }] }; }
- src/index.ts:151-163 (schema)TypeScript interface defining the structure of ZenTaskticContext records for CloudKit storage, used in production implementations.interface ZenTaskticContext { recordName?: string; recordType: 'Contexts'; fields: { contextName: { value: string }; // Max 30 chars, min 1 uniqueId: { value: string }; // UUID lastModified: { value: number }; // Timestamp // References (relationships in Core Data) projects?: { value: CKReference[] }; // List of references to Project records tasks?: { value: CKReference[] }; // List of references to Task records }; }