> ## Documentation Index
> Fetch the complete documentation index at: https://fastmcp-ts.docs.prefect.io/llms.txt
> Use this file to discover all available pages before exploring further.

# oauthProxy

```ts theme={null}
function oauthProxy(options): OAuthServerProvider;
```

Defined in: [server/auth/oauth/proxy.ts:31](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/server/auth/oauth/proxy.ts#L31)

Creates an OAuth provider that proxies to an existing upstream OAuth server using
pre-registered credentials.

MCP clients interact with this proxy using Dynamic Client Registration. The proxy
presents a DCR-compliant interface while internally using its own fixed credentials
(`upstreamCredentials`) when communicating with the upstream authorization server.

## Parameters

### options

[`OAuthProxyOptions`](/api/server/interfaces/OAuthProxyOptions)

## Returns

`OAuthServerProvider`
