McpAttributes

MCP (Model Context Protocol) specific attributes following OpenTelemetry semantic conventions. Based on: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/registry/attributes/mcp.md https://github.com/open-telemetry/semantic-conventions/blob/main/model/mcp/common.yaml

These attributes are used for instrumenting MCP client operations including:

  • Tools operations

  • Session management

  • Protocol version information

  • TODO: Resources and prompts operations

Types

Link copied to clipboard
sealed interface Mcp : Attribute
Link copied to clipboard
sealed interface Network : Attribute

Network transport and protocol attributes for MCP operations.