# cortex mcp-mount

Source: https://usecns.dev/cortex-cli-mcp-mount/

[Start here](https://usecns.dev/manual-cortex/)
[CLI commands](https://usecns.dev/commands-cortex/)
[Configuration & integration](https://usecns.dev/cortex-topics/)

Usage: `cortex mcp-mount <ID> (--mcp-url <URL> | --command <EXECUTABLE>) [OPTIONS] [COMMON_OPTIONS]`.

* `--id <ID>`: overrides positional ID; missing ID is an error.
* `--mcp-url <URL>` or `--url <URL>`: HTTP transport; mcp-url wins over url. A URL chooses HTTP even when command is also given.
* `--command <EXECUTABLE>`: stdio transport when no URL. CLI passes missing command through; server validates it.
* `--args <TEXT>`: stdio arguments, split on literal spaces (default empty array); not a shell quoting parser.
* `--prefix <TEXT>`: optional tool prefix, including explicit empty value; omitted leaves defaulting to the server.

POST `/api/v1/mcp/outbound`. Mounting can start an external executable/contact a server and makes its tools available to agents. Treat it as granting code/tool access, not a harmless catalog edit.

See [CLI conventions](https://usecns.dev/cortex-cli-usage/) for shared configuration and exit behavior, or [browse all commands](https://usecns.dev/commands-cortex/).