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
-
Add the MCP server. In the Cline CLI, run:
cline mcp add secureauth https://your-gateway-url/gateway/mcp --transport http --yesThis 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
secureauthas the Server Name and your gateway URL as the Server URL, choose Streamable HTTP, and click Add Server. -
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. -
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.

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.
- Create a policy – control which tools Cline can call.
- Monitor activity – watch its tool calls appear in the dashboard and audit log.
- Audit log – filter and search every tool call Cline makes.
