Skip to content

Tenant flag is ignored #617

@emjot13-bosch

Description

@emjot13-bosch

Hey, I tested those versions:

2.2.1, 2.2.0, 2.0.0

The issue appeared in 2.2.1 and 2.2.0 but not in 2.0.0.

Logs (the actual values were removed by me):

npx -y -d @azure-devops/[email protected] <org> --tenant <tenant>
npm info using [email protected]
npm info using [email protected]
npm http fetch GET 200 https://registry.npmjs.org/@azure-devops%2fmcp 514ms (cache revalidated)
Failed to fetch tenant for ADO org <org>: Error: Failed to fetch tenant for organization <org>: TypeError: fetch failed
    at fetchTenantFromApi (file:///home/jar4wz/.nvm/versions/node/v22.20.0/lib/node_modules/@azure-devops/mcp/dist/org-tenants.js:38:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async getOrgTenant (file:///home/jar4wz/.nvm/versions/node/v22.20.0/lib/node_modules/@azure-devops/mcp/dist/org-tenants.js:54:26)
    at async main (file:///home/jar4wz/.nvm/versions/node/v22.20.0/lib/node_modules/@azure-devops/mcp/dist/index.js:78:23)

My assumption is that it shouldn't be even fetched when I pass this as command line argument.
And as I said, with 2.0.0 it works fine (I was able to run the tools successfully).
I saw that the logic for that has been changed after 2.0.0, so it makes sense.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions