Skip to content

[Bug] Azure-hosted plugins fail in marketplace with HTTP/SSH and .git extension requirements #14499

Closed

Description

@Arigatouz

Bug Description
I have a problem and I don’t know how to fix it. Every time I create a plugin on GitHub and add it to the marketplace, it works fine. But if I host it on Azure, it doesn’t work.
First, it can’t be accessed through HTTP; it must use SSH, and the bash command is disabled in the plugin marketplace.
Second, it requires the end of the link to have .git, and this is not the Azure convention.
Now what should I do?

Environment Info

  • Platform: darwin
  • Terminal: webstorm
  • Version: 2.0.72
  • Feedback ID: 28214775-da89-4e69-affc-fd3dc03b7470

Errors

│  • https://example.com/marketplace.json                                                                                                                                                        │
│  • ./path/to/marketplace                                                                                                                                                                       │
│                                                                                                                                                                                                │
│  [email protected]:v3/^^^^^^^                                                                                                                                                 │
│                                                                                                                                                                                                │
│ Invalid marketplace config: [                                                                                                                                                                  │
│   {                                                                                                                                                                                            │
│     "code": "invalid_string",                                                                                                                                                                  │
│     "validation": {                                                                                                                                                                            │
│       "endsWith": ".git"                                                                                                                                                                       │
│     },                                                                                                                                                                                         │
│     "message": "Invalid input: must end with \".git\"",                                                                                                                                        │
│     "path": [                                                                                                                                                                                  │
│       "0000000-marketplace-plugin",                                                                                                                                                           │
│       "source",                                                                                                                                                                                │
│       "url"                                                                                                                                                                                    │
│     ]                                                                                                                                                                                          │
│   }                                                                                                                                                                                            │
│ ]       

Activity

  1. added
    bug
    has repro
    platform:macos
    on Dec 18, 2025
  2. github-actions commented on Jan 19, 2026

    @github-actions

    This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

  3. added
    autoclose
    on Jan 19, 2026
  4. Arigatouz commented on Jan 19, 2026

    @Arigatouz
    Author

    It is still an issue

  5. removed
    autoclose
    on Jan 19, 2026
  6. CMBaines commented on Jan 30, 2026

    @CMBaines

    When attempting to add a plugin marketplace hosted on Azure DevOps, Claude Code fails to recognize the URL as a git repository. This prevents using Azure DevOps as a remote marketplace source.

    Steps to Reproduce

    1. Host a valid marketplace on Azure DevOps with .claude-plugin/marketplace.json at the repo root
    2. Try to add the marketplace:

    /plugin marketplace add https://dev.azure.com/myorg/myproject/_git/my-marketplace

    Result: Error: Invalid marketplace schema from URL: : Invalid input: expected object, received string

    1. Try with .git suffix (as documentation suggests):

    /plugin marketplace add https://dev.azure.com/myorg/myproject/_git/my-marketplace.git

    Result: Error: Failed to clone marketplace repository... TF401019: The Git repository with name or identifier my-marketplace.git does not exist

    Root Cause Analysis

    Claude Code's URL detection logic appears to:

    1. If URL ends with .git → treat as git repo and clone
    2. Otherwise → try HTTP fetch first

    The problem: Azure DevOps URLs don't end with .git, so Claude Code tries HTTP fetch and gets HTML (the web UI) instead of JSON. But adding .git
    doesn't work either because Azure DevOps interprets it as part of the repository name (unlike GitHub which handles the .git suffix gracefully).

    Evidence

    • git clone https://dev.azure.com/myorg/myproject/_git/my-marketplace works fine from command line
    • git clone https://dev.azure.com/myorg/myproject/_git/my-marketplace.git fails with "repo not found"
    • Local path ./my-marketplace works after cloning manually

    Expected Behavior

    Claude Code should recognize Azure DevOps URL patterns and treat them as git repositories:

    • https://dev.azure.com/{org}/{project}/_git/{repo}
    • https://{org}.visualstudio.com/{project}/_git/{repo}

    Workaround

    Currently the only workaround is to clone the repo locally and use a local path:
    git clone https://dev.azure.com/myorg/myproject/_git/my-marketplace
    /plugin marketplace add ./my-marketplace

    This defeats the purpose of a remote marketplace for team distribution.

    Environment

    • Claude Code version: Latest
    • OS: Windows 11
    • Git host: Azure DevOps

    Suggested Fix

    Add URL pattern matching for Azure DevOps URLs (similar to how GitHub URLs are handled) so they're recognized as git repositories without requiring the
    .git suffix.


  7. added
    stale
    on Feb 14, 2026
  8. nickels commented on Feb 21, 2026

    @nickels

    We're experiencing the same issue with Azure DevOps-hosted plugin marketplaces.

    Our setup:

    • Azure DevOps URL: https://dev.azure.com/{org}/{project}/_git/{repo}
    • Repository has a valid .claude-plugin/marketplace.json at root
    • HTTPS credentials are configured and working (git ls-remote succeeds)

    The core conflict:

    • Without .git suffix → Claude Code treats it as an HTTP endpoint, fetches HTML, fails with Invalid marketplace schema from URL: : Invalid input: expected object, received string
    • With .git suffix → Claude Code correctly tries git clone, but Azure DevOps rejects it: TF401019: The Git repository with name or identifier repo.git does not exist

    Azure DevOps categorically rejects the .git suffix in URLs — it interprets repo.git as a literal repository name rather than stripping the suffix like GitHub/GitLab do.

    Suggested fixes (any would resolve this):

    1. Detect known git hosting URL patterns (e.g. dev.azure.com/*/_git/*) alongside the .git suffix heuristic
    2. Support an explicit source type flag: /plugin marketplace add --git <url>
    3. Try git ls-remote <url> as a fallback probe when the URL doesn't end in .git but also fails JSON parsing
    4. Support extraKnownMarketplaces in settings with a url source type that doesn't require .git suffix
  9. bubuding0809 commented on Feb 24, 2026

    @bubuding0809

    This is indeed still an issue!

  10. removed
    stale
    on Feb 24, 2026
  11. abuchmueller commented on Feb 24, 2026

    @abuchmueller

    Also experiencing this with Azure DevOps. Our marketplace repo at dev.azure.com works fine with git clone and git ls-remote over SSH, but Claude Code's URL detection logic fails in both directions:

    • HTTPS URL without .git → fetched as HTTP, gets HTML instead of JSON → expected object, received string
    • SSH URL with .git appended → Azure DevOps rejects it: TF401019: The Git repository with name or identifier repo.git does not exist

    Currently using the local clone workaround (claude plugin add ~/local-path), but this defeats the purpose of a shared marketplace for team distribution.

    +1 for any of the suggested fixes, especially detecting dev.azure.com/*/_git/* as a git repo pattern.

  12. TDeschampsGenetec commented on Feb 24, 2026

    @TDeschampsGenetec

    +1 would be helpful for our team

  13. 3 remaining items

  14. Nicheen commented on Mar 2, 2026

    @Nicheen

    TEMPORARY FIX

    I was able to get this working by appending .git to the repository name.

    For example, renaming:
    claude-plugin → claude-plugin.git

    It seems like the marketplace expects the .git extension when resolving Azure-hosted repos. Once I made this change, everything worked as expected. Hopefully this helps someone else running into the same issue!

  15. Arigatouz commented on Mar 3, 2026

    @Arigatouz
    Author

    @Nicheen, that is exactly how I did it since it was a blocker to me, but it looks silly

  16. imjoem commented on Mar 9, 2026

    @imjoem

    +1 would be helpful to have this fixed

  17. rousegavin commented on Mar 9, 2026

    @rousegavin

    +1

  18. ryanfk commented on Mar 19, 2026

    @ryanfk

    Trying to host plugins for copilot-cli and claude-code out of the same repo. Copliot-cli handles ADO repos natively. Used a pipeline to publish the clause marketplace file to blob storage, and publish the plugins as npm packages. It works but comes with a lot of extra setup.

  19. ryanfk commented on Mar 19, 2026

    @ryanfk

    TEMPORARY FIX

    I was able to get this working by appending .git to the repository name.

    For example, renaming: claude-plugin → claude-plugin.git

    It seems like the marketplace expects the .git extension when resolving Azure-hosted repos. Once I made this change, everything worked as expected. Hopefully this helps someone else running into the same issue!

    This worked and did not break copilot-cli either!

  20. lquartier-work commented on May 6, 2026

    @lquartier-work

    +1, Still an Issue.

  21. glenn-zarb commented on Jun 8, 2026

    @glenn-zarb

    +1, Still an Issue.

  22. AlexPascu001 commented on Jun 19, 2026

    @AlexPascu001

    +1, Still an issue

  23. glenn-zarb commented on Jun 24, 2026

    @glenn-zarb

    +1, Still an issue

  24. bcherny commented on Aug 19, 2026

    @bcherny
    Collaborator

    The .git-suffix requirement was addressed in 2.1.72 — changelog: "Added support for marketplace git URLs without .git suffix (Azure DevOps, AWS CodeCommit)" (https://github.com/anthropics/claude-code/blob/main/CHANGELOG.md). Azure DevOps HTTPS URLs of the form https://dev.azure.com/org/project/_git/repo can be added directly with /plugin marketplace add <url>.

    Closing — if adding an Azure-hosted marketplace still fails on a current version, reply with the version and the exact error and this can be reopened.

    🤖 Generated with Claude Code

  25. github-actions commented on Oct 9, 2026

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  26. locked as resolved and limited conversation to collaborators on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughas reproplatform:macos

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions