Skip to content

mcp: send background progress logs in the data parameter - #90

Merged
rikvanriel merged 1 commit into
facebookexperimental:mainfrom
rikvanriel:riel/mcp-log-notification-data
Sep 18, 2026
Merged

rikvanriel merged 1 commit into
facebookexperimental:mainfrom
rikvanriel:riel/mcp-log-notification-data

Conversation

@rikvanriel

Copy link
Copy Markdown
Contributor

The background indexing task reports its progress with notifications/message, and none of those messages reach the client. The parameters of that notification are level, logger and data, and the payload builds them with a message key instead, so data is absent.

A client that validates incoming notifications rejects the payload and drops it, which leaves the indexing progress invisible and puts a warning and a traceback in the client log for every progress line:

pydantic_core._pydantic_core.ValidationError: 1 validation error for LoggingMessageNotification
params.data
  Field required [type=missing, input_value={'level': 'info', 'messag...Indexing complete'}, input_type=dict]

Build the payload with data, the parameter the notification defines for the logged text.

Fixes: a58b5b6 ("semcode-mcp: add indexing visibility and status reporting")
Assisted-by: Hermes:openrouter-auto

The background indexing task reports its progress with
notifications/message, and none of those messages reach the client. The
parameters of that notification are level, logger and data, and the
payload builds them with a message key instead, so data is absent.

A client that validates incoming notifications rejects the payload and
drops it, which leaves the indexing progress invisible and puts a warning
and a traceback in the client log for every progress line:

    pydantic_core._pydantic_core.ValidationError: 1 validation error for LoggingMessageNotification
    params.data
      Field required [type=missing, input_value={'level': 'info', 'messag...Indexing complete'}, input_type=dict]

Build the payload with data, the parameter the notification defines for
the logged text.

Fixes: a58b5b6 ("semcode-mcp: add indexing visibility and status reporting")
Assisted-by: Hermes:openrouter-auto
Signed-off-by: Rik van Riel <riel@surriel.com>
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Sep 18, 2026
@rikvanriel
rikvanriel merged commit bb44fec into facebookexperimental:main Sep 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant