Docs / Integrations
MCP

Use Prefsly with Kiro CLI

Give Kiro CLI access to one authorized Prefsly profile through remote MCP.

Set it up

  1. Install Kiro CLI with curl -fsSL https://cli.kiro.dev/install | bash, then add the remote server configuration below to ~/.kiro/settings/mcp.json. Use .kiro/settings/mcp.json instead if the connection should apply only to the current project.

    Kiro CLI MCP configuration

    {"mcpServers":{"prefsly":{"url":"https://www.prefsly.io/mcp"}}}
  2. Start Kiro CLI. It opens the Prefsly OAuth flow when connecting; if you need to retry authentication, run /mcp auth prefsly and complete Prefsly sign-in and profile consent.
  3. Run /mcp to confirm the Prefsly tools are available. Add the startup instruction below to ~/.kiro/steering/AGENTS.md to apply it across projects.

    Startup instruction for ~/.kiro/steering/AGENTS.md

    At the start of every new session, call the `prefsly` MCP tool `get_profile` and use its returned preferences throughout the session. If the call fails, tell me that prefsly.io preferences could not be loaded.
Good to know

Kiro CLI supports remote HTTP MCP servers and OAuth with dynamic client registration. For SSH or containers, Kiro uses device flow for its own sign-in; complete the Prefsly OAuth flow from a browser on the same machine when prompted.

Update or disconnect

For copied prompts, copy a new prompt after edits. For MCP, your next tool call sees the saved revision. Revoke a connection from Prefsly Connections when you no longer want a client to retrieve the profile.

Official source

Kiro MCP documentation ↗

Related Prefsly guides

Create and manage profilesMCP authentication optionsMCP troubleshootingPrivacy and sharing controls
Published by Prefsly · Last reviewed September 25, 2026 · All documentation