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

# fly mcp wrap

\[experimental] Wrap an MCP stdio program. Options passed after double dashes ("--") will be passed to the MCP program. If user is specified, HTTP authentication will be required.

## Usage

```
fly mcp wrap [flags]
```

## Options

```
      --bearer-token string   Bearer token to authenticate with. Defaults to the value of the FLY_MCP_BEARER_TOKEN environment variable.
  -h, --help                  help for wrap
  -m, --mcp string            Path to the stdio MCP program to be wrapped.
      --password string       Password to authenticate with. Defaults to the value of the FLY_MCP_PASSWORD environment variable.
  -p, --port int              Port to listen on. (default 8080)
      --private               Use private networking.
      --user string           User to authenticate with. Defaults to the value of the FLY_MCP_USER environment variable.
```

## Global Options

```
  -t, --access-token string   Fly API Access Token
      --debug                 Print additional logs and traces
      --verbose               Verbose output
```

## See Also

* [fly mcp](/flyctl/cmd/fly_mcp)	 - flyctl Model Context Protocol.
