Skip to main content
Glama

task_create

Create new tasks with titles, project assignments, and due dates to organize developer workflows within AI Ops Hub's task management system.

Instructions

Создать новую задачу

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYesЗаголовок задачи
projectNoПроект
dueNoСрок выполнения (YYYY-MM-DD)

Implementation Reference

  • Core handler function that implements the task_create tool logic: loads existing tasks from markdown file, generates new task with ID, persists the updated list, and returns the new task.
    async createTask(title: string, project?: string, due?: string): Promise<Task> { try { console.log(`✅ Создание задачи: ${title}`); const tasks = await this.loadTasks(); const newTask: Task = { id: this.getNextId(tasks), title, project, due, created_at: new Date().toISOString(), }; tasks.push(newTask); await this.saveTasks(tasks); console.log(`✅ Задача создана: ${title} (ID: ${newTask.id})`); return newTask; } catch (error) { console.error('Ошибка создания задачи:', error); throw new Error(`Ошибка создания задачи: ${error}`); } }
  • Input schema definition for the task_create tool in the stdio MCP server's listTools response.
    name: 'task_create', description: 'Создать новую задачу', inputSchema: { type: 'object', properties: { title: { type: 'string', description: 'Заголовок задачи', }, project: { type: 'string', description: 'Проект', }, due: { type: 'string', description: 'Срок выполнения (YYYY-MM-DD)', }, }, required: ['title'], }, },
  • Dispatch handler in stdio MCP server's CallToolRequestSchema that invokes TaskService.createTask for task_create tool calls.
    case 'task_create': return { content: await this.taskService.createTask(args.title as string, args.project as string, args.due as string) };
  • TypeScript interface defining the structure of Task objects used and returned by the task_create handler.
    export interface Task { id: number; title: string; project?: string; due?: string; created_at: string; completed_at?: string; }
  • Dispatch handler in HTTP transport's /call endpoint that invokes TaskService.createTask for task_create tool calls.
    case 'task_create': result = await this.taskService.createTask(args.title, args.project, args.due); break;

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/Galiusbro/MCP'

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