Skip to Content
Agent ClientsCoding agents

Connect Cline to Agent Authority

Connect Cline to SecureAuth Agent Authority with OAuth sign-in so every MCP tool call is checked and audited

When you finish, every MCP tool call Cline makes is checked against your policies and recorded in the audit log. Cline, the open-source coding agent for VS Code and the terminal, reaches your approved tools through one SecureAuth Agent Authority gateway URL, and each developer signs in as themselves.

The VS Code extension and the Cline CLI keep separate MCP settings, so set up each one you use.

Setup

  1. Add the MCP server. In the Cline CLI, run:

    cline mcp add secureauth https://your-gateway-url/gateway/mcp --transport http --yes

    This saves a streamable HTTP server to ~/.cline/data/settings/cline_mcp_settings.json.

    In the VS Code extension, open MCP Servers from the Cline panel's toolbar, then the Remote Servers tab. Enter secureauth as the Server Name and your gateway URL as the Server URL, choose Streamable HTTP, and click Add Server.

  2. Authenticate. In the CLI, run cline mcp, choose Authorize OAuth, and select secureauth. In VS Code, click Authenticate on the secureauth server. A browser window opens for sign-in, and Cline saves the token, so you sign in once.

  3. Start using. Cline lists the gateway's tools under the secureauth server and calls them as usual.

    The agent is auto-registered on first connect.

Cline connect steps in the console
The Cline steps in the console carry your gateway URL.

Connecting to just one MCP? To stay under an agent's tool limit, point the URL at a single MCP — /gateway/mcp/{slug} instead of /gateway/mcp. Grab the exact URL from the resource's detail page; see Scope a connection.

Next steps

Cline now reaches your tools through the secureauth MCP server. Next, write the policy that decides which tools it can call.

On this page