> ## Documentation Index
> Fetch the complete documentation index at: https://colin-feat-client-cache-mode.mintlify.site/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/8976c37f79efa6b87809b884f29a1f235a8c4ad1/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`
