MCP search_documents: "Invalid integer for parameter: id" error #243

Closed
opened 2026-01-25 00:35:10 +00:00 by jack · 0 comments
Owner

Problem

The MCP tool search_documents returns an error when called:

{"error":"BadRequestError","message":"Invalid integer for parameter: id","code":"BAD_REQUEST"}

Test Call:

mcp__plugin_claude-mem_mcp-search__search_documents({
  query: "React hooks",
  limit: 5
})

Analysis

The error suggests a routing issue where the backend is trying to parse query or another string parameter as an integer id. This could indicate:

  1. The route is matching a different endpoint (e.g., /api/search/:id)
  2. The search_documents endpoint isn't properly registered
  3. Parameter parsing issue in the route handler

Expected Behavior

The endpoint should search the documents table for cached documentation and return matching results.

## Problem The MCP tool `search_documents` returns an error when called: ```json {"error":"BadRequestError","message":"Invalid integer for parameter: id","code":"BAD_REQUEST"} ``` **Test Call:** ```typescript mcp__plugin_claude-mem_mcp-search__search_documents({ query: "React hooks", limit: 5 }) ``` ## Analysis The error suggests a routing issue where the backend is trying to parse `query` or another string parameter as an integer `id`. This could indicate: 1. The route is matching a different endpoint (e.g., `/api/search/:id`) 2. The search_documents endpoint isn't properly registered 3. Parameter parsing issue in the route handler ## Expected Behavior The endpoint should search the `documents` table for cached documentation and return matching results.
jack closed this issue 2026-01-25 08:45:08 +00: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
customable/claude-mem#243
No description provided.