> ## 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.

# createProxy

```ts theme={null}
function createProxy(config, name?): Promise<FastMCP>;
```

Defined in: [server/proxy.ts:268](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/server/proxy.ts#L268)

Create a FastMCP instance that proxies all requests to a remote MCP server.
The returned instance can be mounted onto a parent server via `parent.mount(proxy)`.

Component lists (tools, resources, prompts) are kept in sync via:

* Change notifications from the backend (immediate resync)
* TTL-based lazy resync on each list request (configurable via `cacheTtl`, default 30 s)

## Parameters

### config

[`ProxyTransport`](/api/server/type-aliases/ProxyTransport)

### name?

`string`

## Returns

`Promise`\<[`FastMCP`](/api/server/classes/FastMCP)>
