Skip to content

fix(mcp): WatchlistPost fails with unknown field "id" in response #93

@electather

Description

@electather

Summary

When using the MCP server to add a movie to the watchlist, the tool fails with:

WatchlistPost failed: ... (HTTP json: unknown field "id")

Steps to Reproduce

Use the MCP WatchlistPost tool to add a movie to the watchlist (e.g. Spiderhead, tmdbId: 615469, mediaType: movie).

Expected Behavior

The movie is added to the watchlist successfully.

Actual Behavior

The tool returns an error: HTTP json: unknown field "id".

The Overseerr API responds with a full request object that includes an "id" field (and other fields such as requestedBy, media, createdAt, etc.), but the Go client model used to deserialize the response does not include this field, causing the unmarshal to fail.

Example API response:

{
  "ratingKey": "",
  "title": "Spiderhead",
  "tmdbId": 615469,
  "mediaType": "movie",
  "requestedBy": { ... },
  "media": { ... },
  "id": 3,
  "createdAt": "2026-03-18T23:05:55.550Z",
  "updatedAt": "2026-03-18T23:05:55.550Z"
}

Root Cause (suspected)

The generated pkg/api model for the WatchlistPost response is missing the id field (and possibly other fields like createdAt, updatedAt). The strict JSON decoder rejects unknown fields instead of ignoring them.

Environment

  • request_id: req_011CZBPDTds8HD8bZDuEWcrx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions