Skip to content

Option to send additional data (in addition to params) when sending request/message/notification #712

@E1adi

Description

@E1adi

Feature Request: Support for Custom Parameters in MCP Client Requests

Summary

Enable the inclusion of arbitrary custom parameters in MCP client requests, beyond those required by the invoked action.

Use Case

In many scenarios, it's useful to pass additional contextual data—such as tenant IDs, trace tokens, feature flags, or other metadata—alongside the standard payload. These parameters can enhance server-side processing, logging, routing, and decision-making.

Proposal

Introduce a mechanism to attach custom key-value pairs to requests. These should be transmitted to the server and accessible during request handling.
Benefits

  • 🧩 Adds flexibility for diverse service architectures
  • 📈 Improves observability and traceability
  • 🔄 Future-proofs the protocol for evolving need

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions