common

package
v2.0.33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 0 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package common holds the constants shared by the MCP resource-server, middleware and authorization packages under pkg/mcp.

Index

Constants

View Source
const (
	ForwardedUriHeader    = "X-Forwarded-Uri"
	ForwardedMethodHeader = "X-Forwarded-Method"
)

ForwardedUriHeader and ForwardedMethodHeader carry the route under authorization to security-proxy-auth, matching its gateway-style contract.

View Source
const AuthReasonInsufficientScope = "insufficient_scope"

AuthReasonInsufficientScope is the stable RFC 6750 reason token put in authorization-refusal messages so clients can match on it.

View Source
const AuthorizationHeader = "Authorization"

AuthorizationHeader is the standard HTTP Authorization header, carrying the end user's bearer token on inbound MCP requests and on forwarded proxy-auth calls.

View Source
const ForwardedResourceHeader = "X-Forwarded-Resource"

ForwardedResourceHeader carries the MCP service's resource identifier so proxy-auth can confine a token to its bound audience (RFC 8707 aud).

View Source
const MCPPath = "/mcp"

MCPPath is the HTTP path the MCP Streamable transport listens on.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL