Skip to content

mcp: add support for logging level (SEP-2575)#997

Merged
guglielmo-san merged 3 commits into
mainfrom
guglielmoc/SEP-2275_add_logging_capability
Jun 8, 2026
Merged

mcp: add support for logging level (SEP-2575)#997
guglielmo-san merged 3 commits into
mainfrom
guglielmoc/SEP-2275_add_logging_capability

Conversation

@guglielmo-san
Copy link
Copy Markdown
Contributor

Description

This PR adds the support for logging feature in meta.

Fixes #966

@guglielmo-san guglielmo-san marked this pull request as ready for review June 8, 2026 09:05
@guglielmo-san guglielmo-san merged commit 00d3642 into main Jun 8, 2026
9 checks passed
@guglielmo-san guglielmo-san deleted the guglielmoc/SEP-2275_add_logging_capability branch June 8, 2026 13:57
guglielmo-san added a commit that referenced this pull request Jun 8, 2026
Conflicts:
- mcp/server.go: union of the removed-in-new-protocol method list, keeping
  both branch additions (methodSubscribe, methodUnsubscribe) and main's
  addition (methodSetLevel) from PR #997.
- mcp/client_test.go: kept all five branch-side TestInMemory_E2E_Discover*
  tests and main's new TestClientConnectDiscover_UnsupportedVersionNegotiation
  from PR #989 (retry on advised supportedVersions). Conflict was textual
  (adjacent functions) not semantic.

Additional fix to make PR #989's negotiation test pass on this branch:
exempt server/discover from the dispatcher's unsupported-version gate so
that a probing client with an unsupported MCP-Protocol-Version can still
reach the discover handler and learn the server's supportedVersions via
the UnsupportedProtocolVersionError Data payload. Without this exemption,
the gate at server.go:1561 short-circuited before the handler ran, leaving
the client with no Supported list to negotiate from.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement SEP-2575: Make MCP Stateless

2 participants