Skip to content

Evaluate SDK middleware for protocol/tracing #1024

Open

Description

@olaservo

Context

TypeScript SDK PR #1406 adds message middleware support:
modelcontextprotocol/typescript-sdk#1406

This adds sendMiddleware and receiveMiddleware options to Protocol, allowing transformation of JSON-RPC messages before sending and after receiving.

Potential Uses in Inspector V2

Use Case How Middleware Helps
Protocol capture receiveMiddleware could capture all messages for Protocol page without modifying client logic
Request tracing sendMiddleware could inject trace IDs for parent-child correlation
Protocol extensions Add custom capabilities to initialize (e.g., inspector metadata)
Plugin architecture Plugins could register middleware to intercept/modify messages
Debugging Inject timestamps, add debugging headers

Action Items

Related

Activity

  1. cliffhall commented on Aug 1, 2026

    @cliffhall
    Member

    Triage: Priority = Low

    Scored 4/16 with the priority rubric added to AGENTS.md in #1891, as part of the backlog triage in #1872. Added to project board #28 with Status Incoming — meaning filed and scored but not yet approved for work. A maintainer decides whether it moves to Todo.

    Axis Score Reasoning
    Severity / impact 2/5 An evaluation, not a change. The outcome may be 'no'.
    Urgency / staleness 2/5 No deadline. The SDK PR it depends on sets its own pace.
    Signal bonuses +0 none apply
    Total 4 Lands in the Low band (5 or below).

    Related issues. One connected issue:

    Scores are a starting point, not a verdict — the rubric is meant to be overruled when it's plainly wrong, provided the reason is written down.

  2. added this to the v2.5.0 milestone on Aug 5, 2026
  3. modified the milestones: v2.5.0, v2.6.0 on Aug 27, 2026
  4. modified the milestones: v2.6.0, v2.7.0 on Sep 5, 2026
  5. changed the title [-]Evaluate SDK middleware for history/tracing[/-] [+]Evaluate SDK middleware for protocol/tracing[/+] on Sep 11, 2026
  6. modified the milestones: v2.7.0, v2.8.0, v2.9.0 on Sep 11, 2026
  7. modified the milestones: v2.9.0, v2.10.0 on Sep 24, 2026
  8. modified the milestones: v2.10.0, v2.11.0 on Oct 5, 2026
  9. modified the milestones: v2.11.0, v2.12.0 on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature requestv2Issues and PRs for v2

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions