diff --git a/README.md b/README.md index d8bad49e..1947f42e 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ software development kit (SDK) for the Model Context Protocol (MCP). ## Package documentation -The SDK consists of three importable packages: +The SDK consists of several importable packages: - The [`github.com/modelcontextprotocol/go-sdk/mcp`](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/mcp) @@ -34,6 +34,10 @@ The SDK consists of three importable packages: [`github.com/modelcontextprotocol/go-sdk/auth`](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/auth) package provides some primitives for supporting oauth. +- The + [`github.com/modelcontextprotocol/go-sdk/oauthex`](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/oauthex) + package provides extensions to the OAuth protocol, such as ProtectedResourceMetadata. + ## Getting started To get started creating an MCP server, create an `mcp.Server` instance, add diff --git a/internal/readme/README.src.md b/internal/readme/README.src.md index 5ac7cb8d..dacc0882 100644 --- a/internal/readme/README.src.md +++ b/internal/readme/README.src.md @@ -20,7 +20,7 @@ software development kit (SDK) for the Model Context Protocol (MCP). ## Package documentation -The SDK consists of three importable packages: +The SDK consists of several importable packages: - The [`github.com/modelcontextprotocol/go-sdk/mcp`](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/mcp) @@ -33,6 +33,10 @@ The SDK consists of three importable packages: [`github.com/modelcontextprotocol/go-sdk/auth`](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/auth) package provides some primitives for supporting oauth. +- The + [`github.com/modelcontextprotocol/go-sdk/oauthex`](https://pkg.go.dev/github.com/modelcontextprotocol/go-sdk/oauthex) + package provides extensions to the OAuth protocol, such as ProtectedResourceMetadata. + ## Getting started To get started creating an MCP server, create an `mcp.Server` instance, add diff --git a/oauthex/oauthex.go b/oauthex/oauthex.go new file mode 100644 index 00000000..eb3a3e78 --- /dev/null +++ b/oauthex/oauthex.go @@ -0,0 +1,10 @@ +// Copyright 2025 The Go MCP SDK Authors. All rights reserved. +// Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. + +// Package oauthex implements extensions to OAuth2. +package oauthex + +import "github.com/modelcontextprotocol/go-sdk/internal/oauthex" + +type ProtectedResourceMetadata = oauthex.ProtectedResourceMetadata