Connect Kiro CLI to Agent Authority
Connect Kiro CLI to SecureAuth Agent Authority with OAuth sign-in so every MCP tool call is checked and audited
When you finish, every MCP tool call Kiro CLI makes is checked against your policies and recorded in the audit log. Kiro CLI, AWS's coding agent for the terminal, reaches your approved tools through one SecureAuth Agent Authority gateway URL, and each developer signs in as themselves.
Setup
-
Add the MCP server. Add the following to
~/.kiro/settings/mcp.json:{ "mcpServers": { "secureauth": { "url": "https://your-gateway-url/gateway/mcp", "headers": { "User-Agent": "kiro-cli" } } } }The
User-Agentheader lets the gateway list the agent as Kiro CLI instead of Unknown. -
Start Kiro CLI.
kiro-cli -
Authenticate. Kiro CLI shows secureauth requires OAuth. Press Ctrl+Y, then open the sign-in URL it prints, which it also copies to your clipboard. Kiro CLI shows secureauth connected and saves the token, so you sign in once.
-
Start using. Kiro CLI asks before each
secureauthtool call 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
Kiro CLI now reaches your tools through the secureauth server in ~/.kiro/settings/mcp.json.
Next, write the policy that decides which tools it can call.
- Create a policy – control which tools Kiro CLI can call.
- Monitor activity – watch its tool calls appear in the dashboard and audit log.
- Audit log – filter and search every tool call Kiro CLI makes.
