# CLI Agents (Claude Code, Cline) MCP Integration

## Configuration Steps

For CLI-based AI agents like **Claude Code**, or VS Code extensions like **Cline** and **Roo Code**, you need to manually add the MCP configuration to their respective JSON config files.

1. Copy the "MoreLogin-mcp" configuration from the MoreLogin desktop client.
2. Open the specific tool's configuration file:
  - **Claude Code**: Edit `~/.claude.json` (or the local project configuration file).
  - **Cline (VS Code)**: Open VS Code Settings, search for "Cline: MCP", and edit the `cline_mcp_settings.json` file.
3. Paste the configuration under the `mcpServers` object:


```json
{
  "mcpServers": {
    "morelogin-mcp": {
      "command": "/path/to/executable",
      "args": ["/path/to/mcp-server-script.js"],
      "env": {}
    }
  }
}
```

*(Make sure to use the exact JSON generated by your MoreLogin client.)*

1. Save the file and restart your agent.