create_task
Add new tasks to project boards in FluentBoards project management system by specifying board ID, title, and optional details.
Instructions
Create a new task
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| board_id | Yes | Board ID | |
| title | Yes | Task title | |
| description | No | Task description | |
| stage_id | No | Stage ID (optional) |
Implementation Reference
- src/tools/tasks.ts:37-70 (registration)Registers the MCP 'create_task' tool with input schema validation using Zod and the handler function that builds task data and posts to the project tasks API endpoint.server.tool( "create_task", "Create a new task", { board_id: z.number().int().positive().describe("Board ID"), title: z.string().min(1).describe("Task title"), description: z.string().optional().describe("Task description"), stage_id: z .number() .int() .positive() .optional() .describe("Stage ID (optional)"), }, async (args) => { const { board_id, title, description, stage_id } = args; const taskData: any = { title, board_id, }; if (description) { taskData.description = formatText(description); } if (stage_id) { taskData.stage_id = stage_id; } const response = await api.post(`/projects/${board_id}/tasks`, { task: taskData }); return formatResponse(response.data); } );
- src/index.ts:23-23 (registration)Top-level registration call that invokes registerTaskTools on the MCP server, thereby registering the create_task tool among other task tools.registerTaskTools(server);
- src/types/index.ts:21-26 (schema)Zod schema for CreateTask type definition, matching the input parameters of the create_task tool.export const CreateTaskSchema = z.object({ board_id: z.number().int().positive(), title: z.string().min(1), description: z.string().optional(), stage_id: z.number().int().positive().optional(), });