Skip to main content
Glama
yvanfreitas

MCP Test Server

by yvanfreitas

create_task

Generate and manage task entries by specifying a title, status, and assigned user on the MCP Test Server for streamlined task tracking and organization.

Instructions

Create a new task

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
assignedToNoID of user assigned to this task
statusNoTask statuspending
titleYesTask title

Implementation Reference

  • Executes the core logic for the 'create_task' tool: validates input, generates new task ID, adds to mock data store, returns success response with new task.
    static create(taskData) { const { title, status = 'pending', assignedTo } = taskData; if (!title) { return { success: false, message: 'Title is required' }; } const newTask = { id: Math.max(...tasks.map(t => t.id)) + 1, title, status, assignedTo: assignedTo || null }; tasks.push(newTask); return { success: true, message: 'Task created successfully', data: newTask }; }
  • Defines the input schema for the 'create_task' tool, including properties for title (required), status, and assignedTo.
    { name: 'create_task', description: 'Create a new task', inputSchema: { type: 'object', properties: { title: { type: 'string', description: 'Task title' }, status: { type: 'string', description: 'Task status', enum: ['pending', 'in-progress', 'completed'], default: 'pending' }, assignedTo: { type: 'number', description: 'ID of user assigned to this task' } }, required: ['title'] } },
  • mcp-server.js:62-63 (registration)
    Registers and dispatches the 'create_task' tool call to TaskService.create within the MCP server's tool request handler.
    case 'create_task': return createMcpResponse(TaskService.create(args));

Other Tools

Related 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/yvanfreitas/MCP-test'

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