OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

MCP Server advertises 'logging' capability but 'logging/setLevel' is unimplemented

Open Graphmaxer opened this issue 9 months ago • 2 comments

Affected module MCP Server

Describe the bug The MCP Server is saying that is logging capabilities is available but the tool logging/setLevel is not implemented according to the specs https://modelcontextprotocol.io/specification/draft/server/utilities/logging.

This is causing issues to use this MCP inside VSCode for example

Image

To Reproduce Use MCP Inspector (https://modelcontextprotocol.io/docs/tools/inspector) to test OpenMetadata MCP and we see that the initialize is working, returning capabilities logging: {}

Image

Then according the MCP specs, a tool logging/setLevel is called

Image

But not implemented

{
  "cause": null,
  "stackTrace": [
    ...
  ],
  "jsonRpcError": null,
  "message": "Failed to handle request: Missing handler for request type: logging/setLevel",
  "suppressed": [],
  "localizedMessage": "Failed to handle request: Missing handler for request type: logging/setLevel"
}

Expected behavior The tool logging/setLevel should be implemented or the capabilities logging not present

Version:

  • OS: Linux
  • OpenMetadata version: 1.12.1
  • OpenMetadata Ingestion package version: 1.12.1

Graphmaxer avatar Feb 27 '26 16:02 Graphmaxer

Hi @Graphmaxer, thanks for reporting this! We've looked into the issue and determined that implementing logging/setLevel isn't feasible with our current MCP server architecture.

OpenMetadata's MCP server uses a stateless HTTP transport - each request is an independent HTTP request/response with no persistent connection between client and server. MCP's logging capability requires a push-based notification model: after logging/setLevel is called, the server must continuously push notifications/message events back to the client. This fundamentally requires a persistent, bidirectional connection (SSE or WebSockets), which doesn't exist in our architecture.

The underlying Java MCP SDK confirms this - McpStatelessAsyncServer intentionally has no handler for logging/setLevel because push notifications are impossible in stateless mode.

So instead, we're removing the logging capability advertisement entirely. This way, spec-compliant clients like VSCode won't attempt to call logging/setLevel in the first place, and the error goes away.

In the future, we can revisit adding logging support if there's any architectural changes.

Vishnuujain avatar Mar 06 '26 16:03 Vishnuujain

Just upgraded to OpenMetadata 1.12.2 and this works well within Github Copilot via VSCode 👍

Image

Graphmaxer avatar Mar 18 '26 09:03 Graphmaxer