Skip to content

feat: add SEP-414 trace context meta accessors#910

Open
DaleSeo wants to merge 1 commit into
mainfrom
sep-414
Open

feat: add SEP-414 trace context meta accessors#910
DaleSeo wants to merge 1 commit into
mainfrom
sep-414

Conversation

@DaleSeo

@DaleSeo DaleSeo commented Jun 17, 2026

Copy link
Copy Markdown
Member

Closes #886

Motivation and Context

SEP-414 reserves the _meta keys traceparent, tracestate, and baggage for W3C trace context propagation. While the values could already be stored in _meta, the SDK didn't provide typed support, which meant callers had to hardcode the key strings. This update adds get_ and set_ accessors on Meta and includes matching helpers on RequestParamsMeta and public key constants.

How Has This Been Tested?

Added integration tests

Breaking Changes

None.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

@DaleSeo DaleSeo self-assigned this Jun 17, 2026
@github-actions github-actions Bot added T-dependencies Dependencies related changes T-test Testing related changes T-config Configuration file changes T-core Core library changes T-model Model/data structure changes labels Jun 17, 2026
@DaleSeo DaleSeo marked this pull request as ready for review June 18, 2026 11:22
@DaleSeo DaleSeo requested a review from a team as a code owner June 18, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T-config Configuration file changes T-core Core library changes T-dependencies Dependencies related changes T-model Model/data structure changes T-test Testing related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement SEP-414: W3C Trace Context propagation in _meta

1 participant