[GH-ISSUE #2144] MCP create-list tool ignores parentId parameter #1322

Closed
opened 2026-03-02 11:56:31 +03:00 by kerem · 0 comments
Owner

Originally created by @milojarow on GitHub (Nov 16, 2025).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/2144

Bug Description

The create-list MCP tool accepts parentId as a parameter in its schema but doesn't actually pass it to the API request
body, making it impossible to create nested lists via MCP.

Location

apps/mcp/src/lists.ts lines 98-122

Current Code (lines 108-115)

async ({ name, icon }): Promise<CallToolResult> => {  // parentId not destructured
  const res = await karakeepClient.POST("/lists", {
    body: {
      name,
      icon,
      // parentId missing
    },
  });

Fix

  async ({ name, icon, parentId }): Promise<CallToolResult> => {
    const res = await karakeepClient.POST("/lists", {
      body: {
        name,
        icon,
        parentId,
      },
    });

Steps to Reproduce

  1. Call MCP create-list tool with parentId parameter set to existing list ID
  2. Tool returns success message
  3. New list is created but without parent (flat instead of nested)
  4. Verify via get-lists - shows Parent ID: null

Impact

Cannot create hierarchical/nested lists programmatically via MCP interface.

Originally created by @milojarow on GitHub (Nov 16, 2025). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/2144 ## Bug Description The `create-list` MCP tool accepts `parentId` as a parameter in its schema but doesn't actually pass it to the API request body, making it impossible to create nested lists via MCP. ## Location `apps/mcp/src/lists.ts` lines 98-122 ## Current Code (lines 108-115) ```typescript async ({ name, icon }): Promise<CallToolResult> => { // parentId not destructured const res = await karakeepClient.POST("/lists", { body: { name, icon, // parentId missing }, }); ``` Fix ``` async ({ name, icon, parentId }): Promise<CallToolResult> => { const res = await karakeepClient.POST("/lists", { body: { name, icon, parentId, }, }); ``` Steps to Reproduce 1. Call MCP create-list tool with parentId parameter set to existing list ID 2. Tool returns success message 3. New list is created but without parent (flat instead of nested) 4. Verify via get-lists - shows Parent ID: null Impact Cannot create hierarchical/nested lists programmatically via MCP interface.
kerem closed this issue 2026-03-02 11:56:31 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#1322
No description provided.