MetorialDocs

Install an integration into Claude Code, Cursor or Codex

Run metorial install <client> <integration-id> to add an integration to Claude Code, Cursor, Codex and 17 other MCP clients, and see what it writes.

To add one of your integrations to an AI client, run metorial install <client-identifier> <integration-id>, for example metorial install claude-code <integration-id>. The CLI creates a long-lived token for that integration and registers its MCP endpoint in the client, either by running the client's own command or by editing its config file.

What you'll learn

  • Which clients the CLI supports and how to check yours
  • What metorial install writes for each client, and where
  • How to list and revoke the tokens it creates

Before you start

Check which clients you can install into

metorial client list
Supported Clients

  Client               Method   Transport        Installed  Usable
  -------------------  -------  ---------------  ---------  ------
  Claude Desktop       file     streamable_http  yes        yes
  claude

  Claude Code          command  streamable_http  yes        yes
  claude-code

  Codex                command  streamable_http  yes        yes
  codex

  Cursor               file     streamable_http  yes        yes
  cursor

  Gemini CLI           command  streamable_http  no         no
  gemini-cli
  ...

The output is shortened here. The full table lists 20 clients. The second line of each row is the identifier you pass to install. Installed and Usable show whether the CLI found the client on this machine. This command needs no sign-in.

Install the integration

Get the integration ID

Run metorial list and copy the ID or endpoint alias of the integration.

Run install

metorial install claude-code <integration-id>
metorial install cursor <integration-id>
metorial install codex <integration-id>

The CLI prints Integration Installed with the client, the method, the token ID, and either the config file it changed or the command it ran. The key in the endpoint URL is shortened in this output.

Restart the client

Restart the client, or reload its MCP servers, so it picks up the new entry. The server is named after the integration's endpoint alias.

What install writes

The endpoint is the integration's MCP URL with the token added as ?key=<token>. All clients use streamable HTTP.

Clients with the command method are configured through their own CLI:

IdentifierThe CLI runs
claude-codeclaude mcp add --transport http <name> <url>
codexcodex mcp add <name> --url <url>
gemini-cligemini mcp add --transport http <name> <url>
vscode, vscode-insiderscode --add-mcp '{"name":"<name>","type":"http","url":"<url>"}' (or code-insiders)

Clients with the file method get an entry merged into their config file. Existing entries are kept.

IdentifierConfig file
cursor~/.cursor/mcp.json
claudeClaude/claude_desktop_config.json in your app config directory
windsurf~/.codeium/windsurf/mcp_config.json
codex-config~/.codex/config.toml
clineCode/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json in your app config directory
roocodeCode/User/globalStorage/rooveterinaryinc.roo-cline/settings/mcp_settings.json in your app config directory
opencode~/.opencode/opencode.jsonc
goose~/.config/goose/config.yaml
amazonq~/.aws/amazonq/mcp.json
librechatLibreChat/librechat.yaml in your home directory, or in LIBRECHAT_CONFIG_DIR

The app config directory is ~/Library/Application Support on macOS, %APPDATA% on Windows, and $XDG_CONFIG_HOME or ~/.config on Linux. The identifiers amazon-bedrock, bolttai, enconvo, tome and witsy are file based too. metorial install prints the exact path as Config File.

For most file clients the entry looks like this:

{
  "mcpServers": {
    "<name>": {
      "url": "https://<endpoint-host>/...?key=<token>",
      "type": "http"
    }
  }
}

Note

The token in the URL is a secret. Do not commit a config file that contains it. For a setup you can share with a team, use your portal's Magic MCP URL, which signs each person in through the browser. See Clients.

Install into a client that is not listed

install custom creates the token and prints the endpoint without touching any client:

metorial install custom <integration-id>

The output is titled Custom MCP Token Created and shows the Endpoint URL and the Token in full. Paste the URL into any client that accepts a remote MCP server over HTTP.

List and revoke tokens

Every install creates one token named "Metorial CLI". To see them and remove one:

metorial tokens list
metorial tokens revoke <token-id>

The list shows ID, Name, Integration and Created. After revoke, the CLI prints Revoked token <token-id> and the client that used it can no longer connect. Revoke a token when you remove a client, lose a laptop, or share a config by mistake.

Check it worked

Open the client and ask it to list its MCP tools, or look at its MCP server list. The new server should be connected and show the integration's tools. metorial tokens list should show a new token for the integration.

Troubleshooting

metorial: unknown client "<id>". Available clients: ...

The identifier is wrong. Copy it from the second line of the row in metorial client list.

metorial: <Client> is not installed or cannot be used on this system.

The CLI could not find the client. For command clients, the client's own CLI (claude, codex, gemini, code) must be on your PATH. For Codex, codex-config writes the config file directly and does not need the codex command.

Next steps