Skip to main content
Glama
0Thomas1

Kanban MCP Server

by 0Thomas1

add-tag

Add tags to Kanban tasks to organize and categorize work items for better workflow management and tracking.

Instructions

add tags to a tasks

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
task_tagYes
task_idYes

Implementation Reference

  • src/index.ts:169-193 (registration)
    Registration of the 'add-tag' MCP tool. Includes input schema (task_id: string, task_tag: string), inline handler that calls addTaskTag utility and returns success/error message.
    server.tool("add-tag", "add tags to a tasks",{
        task_tag: z.string(),
        task_id: z.string()
    },async (params)=>{
        try {
            await mongooseUtils.addTaskTag(params.task_id,params.task_tag);
            return{
                content: [
              {
                type: "text",
                text: `Added tag "${params.task_tag}" to tasks"${params.task_id}" successfully.`,
              },
            ],
            }
        } catch {
            return{
                content: [
              {
                type: "text",
                text: `Failed to add tag "${params.task_tag}" to tasks"${params.task_id}".`,
              },
            ],
            }
        }
    });
  • Core implementation of adding a tag to a task. Finds task by ID, adds lowercase tag if not already present, and persists to MongoDB.
    export async function addTaskTag(taskId: string, tag: string) {
      try {
        const task = await Task.findById(taskId);
        if (!task) {
          throw new Error("Task not found");
        }
    
        if (!task.tags.includes(tag.toLowerCase())) {
          task.tags.push(tag.toLowerCase());
          await task.save();
        }
      } catch {
        throw new Error("Failed to add tag");
      }
    }
Install Server

Other 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/0Thomas1/Kanban-MCP'

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