Kiro icon indicating copy to clipboard operation
Kiro copied to clipboard

Kiro CLI fails to connect to Atlassian Rovo MCP: "missing field 'scopes'" during OAuth metadata deserialization

Open hahanein opened this issue 9 months ago โ€ข 14 comments

Before opening, please confirm:

Operating System

Linux (x86_64)

Kiro Version

1.25.1

Bug Description

Kiro CLI fails to load the Atlassian Rovo MCP server from the MCP registry with a deserialization error. During the OAuth handshake with mcp.atlassian.com, kiro-cli parses a metadata response and fails because a scopes field is missing.

Error from logs:

ERROR chat_cli::cli::chat::tool_manager: 1844: Error loading server atlassian-rovo-mcp: McpError(ErrorData { code: ErrorCode(-32002), message: "missing field `scopes` at line 4 column 1", data: None })

The same MCP server connects and works correctly via Amazon Q Developer in VSCode, confirming the server itself is functional and the issue is specific to kiro-cli's parsing.

Steps to Reproduce

  1. Have Atlassian Rovo MCP configured via MCP registry (organization-managed profile with registry URL)
  2. Run kiro-cli chat
  3. Observe the server fails to load with the missing field 'scopes' error

Expected Behavior

Kiro CLI should treat the scopes field as optional and successfully connect to the Atlassian MCP server, as Amazon Q in VSCode does.

Conversation ID

No response

Additional Context

  • Related: #5452 (also Atlassian MCP failures post-1.25.0, but different error messages)
  • Related: #3911 (OAuth discovery issues, different root cause)
  • The MCP registry JSON itself loads fine โ€” the error occurs when kiro-cli attempts the OAuth handshake with mcp.atlassian.com

hahanein avatar Feb 12 '26 07:02 hahanein

๐Ÿค– Potential Duplicate Detected

This issue appears to be similar to:

What happens next?

  • โฐ This issue will be automatically closed in 3 days
  • ๐Ÿท๏ธ If this is not a duplicate, you can prevent automatic closure by adding a comment or reacting with ๐Ÿ‘Ž to this message.
  • ๐Ÿ’ฌ Comment on the original issue if you have additional information

Why is this marked as duplicate? Both report MCP server loading failures after Kiro CLI 1.25.0 update, specifically mentioning Atlassian MCP issues, though with different specific error messages

github-actions[bot] avatar Feb 12 '26 07:02 github-actions[bot]

Thank you for your feedback! ๐Ÿ™

The ๐Ÿ‘Ž reaction has been noted. The duplicate label has been removed and this issue has been sent back for maintainer review.

A maintainer will review this issue shortly.

github-actions[bot] avatar Feb 12 '26 07:02 github-actions[bot]

Also seeing this issue. Looks like OpenAI's codex started seeing a similar issue that was reported yesterday (Feb 11th): https://github.com/openai/codex/issues/11465.

According to the associated PR (https://github.com/openai/codex/pull/11539), the issue is that https://github.com/modelcontextprotocol/rust-sdk/pull/598 in 0.14 broke some MCP oauth, but it was subsequently fixed in 0.15 (https://github.com/modelcontextprotocol/rust-sdk/pull/641).

jcancilla-r7 avatar Feb 12 '26 14:02 jcancilla-r7

+1

lopezfelipe avatar Feb 12 '26 15:02 lopezfelipe

hey @hahanein and @jcancilla-r7, Thank you for the detailed report and the additional context. Linking this to the upstream rust-sdk fix in v0.15. We've noted this and shared it with the team.

In the meantime, we've released CLI version 1.26.0 which includes several fixes. Could you please update to the latest version and verify if this issue still persists?

AnilMaktala avatar Feb 13 '26 19:02 AnilMaktala

@AnilMaktala I tried 1.26.0 - the issue persists.

hahanein avatar Feb 16 '26 07:02 hahanein

@AnilMaktala Switching to 1.26.1 seems to have resolved the issue for me now.

Image

jcancilla-r7 avatar Feb 18 '26 11:02 jcancilla-r7

I am on 1.26.2 and the issue persists for me.

@jcancilla-r7 Did you do something in addition to updating kiro-cli and starting it?

hahanein avatar Feb 19 '26 06:02 hahanein

I'm using kiro-cli on 1.26.2 and I'm facing similar problems to authenticate with Atlassian MCP.

On Kiro IDE there is a button that I can interact and make authentication work, however I don't see any way to trigger mcp authentication in kiro-cli.

Image

brunoarruda-hotmart avatar Mar 02 '26 14:03 brunoarruda-hotmart

I'm on kiro-cli 1.28.3 and facing a similar issue. But this works on Kiro IDE and Amazon Q Vscode Extension.

akhilkondappa avatar Mar 31 '26 09:03 akhilkondappa

I found a workaround where you can use NPX and the mcp-remote package and it will automatically open a browser window to authenticate properly:

"atlassian-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.atlassian.com/v1/mcp"
      ]
    }

svozza avatar Apr 08 '26 09:04 svozza

Same issue affects the Slack MCP integration as well (not just Atlassian Rovo).

When installing as a custom Slack app, it fails with:

Invalid permissions requested
No scopes requested

Appears to be the same root cause - Kiro isn't sending scopes in the OAuth authorization request, so Slack rejects the install.

Environment: Kiro CLI 0.11.133 on macOS (arm64)

ndedic avatar Jun 08 '26 08:06 ndedic

This issue also affects Datadog's MCP server (https://mcp.datadoghq.com/v1/mcp), but with a different strict-parsing symptom: resource identifier matching rejects valid URLs that have query parameters.

The problem:

Datadog uses a ?toolsets= query parameter to select which tool groups to expose (e.g. https://mcp.datadoghq.com/v1/mcp?toolsets=software-delivery). The server's /.well-known/oauth-protected-resource correctly returns the resource identifier without query params:

{ "resource": "https://mcp.datadoghq.com/v1/mcp" }

Kiro compares the full configured URL (with ?toolsets=...) against this resource field using an exact string match. They don't match, so OAuth fails silently.

Per RFC 3986 ยง3.4, query parameters are request-time data โ€” not part of the resource's identity. The server is behaving correctly; Kiro's comparison is too strict.

Workaround:

We use Datadog's local stdio proxy binary (datadog_mcp_cli) which handles OAuth independently, and pass the toolset selection via DD_MCP_TOOLSETS env var instead of the URL. This works but defeats the purpose of Kiro's native HTTP transport.

Suggested fix:

Strip query parameters (and fragments) from both the configured URL and the discovery resource field before comparing. The resource identity is scheme + authority + path only.

dsb012a avatar Jul 13 '26 15:07 dsb012a

This also seems to be broken with the PartnerCentral MCP server configuration too.

  • https://partnercentral-agents-mcp.us-east-1.api.aws/mcp

Using NPX and the mcp-remote allowed me to keep moving forward.

darren-mills-cstg avatar Sep 07 '26 18:09 darren-mills-cstg