# Copilot

## Add via CLI[​](#add-via-cli "Direct link to Add via CLI")

Run the interactive command and follow the prompts:

```
/mcp add
```

## Add via config file[​](#add-via-config-file "Direct link to Add via config file")

Alternatively, add the following entry under `mcpServers` in `~/.copilot/mcp-config.json`:

```
{

  "mcpServers": {

    "mobile-mcp": {

      "type": "local",

      "command": "npx",

      "args": ["@mobilenext/mobile-mcp@latest"],

      "tools": ["*"]

    }

  }

}
```

Save the file. Copilot will start Mobile MCP automatically when a mobile tool is invoked.
