Skip to content

Document recommended pattern for role/identity propagation in MCP tool execution #1452

@ericstj

Description

@ericstj

The MCP C# SDK does not provide a built-in mechanism to propagate caller identity or role into MCP tool execution. Production servers like Azure Data API Builder implement a custom HTTP header convention (X-MS-API-ROLE) via IHttpContextAccessor.

The SDK documentation should describe the recommended approach for role-aware MCP servers, covering both HTTP and stdio transports.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions