Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P3Nice to haves, rare edge casesdocumentationImprovements or additions to documentationready for workHas enough information to start

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions