@aqajooon/mcp-server-azure-devops 0.0.0-stage → 0.1.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +318 -2
- package/dist/clients/azure-devops.d.ts +105 -0
- package/dist/clients/azure-devops.js +501 -0
- package/dist/clients/azure-devops.js.map +1 -0
- package/dist/features/environments/feature.d.ts +24 -0
- package/dist/features/environments/feature.js +48 -0
- package/dist/features/environments/feature.js.map +1 -0
- package/dist/features/environments/index.d.ts +10 -0
- package/dist/features/environments/index.js +42 -0
- package/dist/features/environments/index.js.map +1 -0
- package/dist/features/environments/schema.d.ts +7 -0
- package/dist/features/environments/schema.js +28 -0
- package/dist/features/environments/schema.js.map +1 -0
- package/dist/features/libraries/feature.d.ts +27 -0
- package/dist/features/libraries/feature.js +47 -0
- package/dist/features/libraries/feature.js.map +1 -0
- package/dist/features/libraries/index.d.ts +10 -0
- package/dist/features/libraries/index.js +42 -0
- package/dist/features/libraries/index.js.map +1 -0
- package/dist/features/libraries/schema.d.ts +7 -0
- package/dist/features/libraries/schema.js +27 -0
- package/dist/features/libraries/schema.js.map +1 -0
- package/dist/features/organizations/__test__/test-helpers.d.ts +13 -0
- package/dist/features/organizations/__test__/test-helpers.js +38 -0
- package/dist/features/organizations/__test__/test-helpers.js.map +1 -0
- package/dist/features/organizations/index.d.ts +13 -0
- package/dist/features/organizations/index.js +63 -0
- package/dist/features/organizations/index.js.map +1 -0
- package/dist/features/organizations/list-organizations/feature.d.ts +13 -0
- package/dist/features/organizations/list-organizations/feature.js +101 -0
- package/dist/features/organizations/list-organizations/feature.js.map +1 -0
- package/dist/features/organizations/list-organizations/index.d.ts +2 -0
- package/dist/features/organizations/list-organizations/index.js +19 -0
- package/dist/features/organizations/list-organizations/index.js.map +1 -0
- package/dist/features/organizations/list-organizations/schema.d.ts +2 -0
- package/dist/features/organizations/list-organizations/schema.js +6 -0
- package/dist/features/organizations/list-organizations/schema.js.map +1 -0
- package/dist/features/organizations/schemas.d.ts +6 -0
- package/dist/features/organizations/schemas.js +10 -0
- package/dist/features/organizations/schemas.js.map +1 -0
- package/dist/features/organizations/tool-definitions.d.ts +5 -0
- package/dist/features/organizations/tool-definitions.js +16 -0
- package/dist/features/organizations/tool-definitions.js.map +1 -0
- package/dist/features/organizations/types.d.ts +21 -0
- package/dist/features/organizations/types.js +8 -0
- package/dist/features/organizations/types.js.map +1 -0
- package/dist/features/pipelines/artifacts.d.ts +11 -0
- package/dist/features/pipelines/artifacts.js +288 -0
- package/dist/features/pipelines/artifacts.js.map +1 -0
- package/dist/features/pipelines/download-pipeline-artifact/feature.d.ts +3 -0
- package/dist/features/pipelines/download-pipeline-artifact/feature.js +222 -0
- package/dist/features/pipelines/download-pipeline-artifact/feature.js.map +1 -0
- package/dist/features/pipelines/download-pipeline-artifact/index.d.ts +2 -0
- package/dist/features/pipelines/download-pipeline-artifact/index.js +19 -0
- package/dist/features/pipelines/download-pipeline-artifact/index.js.map +1 -0
- package/dist/features/pipelines/download-pipeline-artifact/schema.d.ts +7 -0
- package/dist/features/pipelines/download-pipeline-artifact/schema.js +23 -0
- package/dist/features/pipelines/download-pipeline-artifact/schema.js.map +1 -0
- package/dist/features/pipelines/get-pipeline/feature.d.ts +10 -0
- package/dist/features/pipelines/get-pipeline/feature.js +46 -0
- package/dist/features/pipelines/get-pipeline/feature.js.map +1 -0
- package/dist/features/pipelines/get-pipeline/index.d.ts +2 -0
- package/dist/features/pipelines/get-pipeline/index.js +19 -0
- package/dist/features/pipelines/get-pipeline/index.js.map +1 -0
- package/dist/features/pipelines/get-pipeline/schema.d.ts +9 -0
- package/dist/features/pipelines/get-pipeline/schema.js +29 -0
- package/dist/features/pipelines/get-pipeline/schema.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-log/feature.d.ts +3 -0
- package/dist/features/pipelines/get-pipeline-log/feature.js +57 -0
- package/dist/features/pipelines/get-pipeline-log/feature.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-log/index.d.ts +2 -0
- package/dist/features/pipelines/get-pipeline-log/index.js +19 -0
- package/dist/features/pipelines/get-pipeline-log/index.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-log/schema.d.ts +13 -0
- package/dist/features/pipelines/get-pipeline-log/schema.js +40 -0
- package/dist/features/pipelines/get-pipeline-log/schema.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run/feature.d.ts +3 -0
- package/dist/features/pipelines/get-pipeline-run/feature.js +76 -0
- package/dist/features/pipelines/get-pipeline-run/feature.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run/index.d.ts +2 -0
- package/dist/features/pipelines/get-pipeline-run/index.js +19 -0
- package/dist/features/pipelines/get-pipeline-run/index.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run/schema.d.ts +6 -0
- package/dist/features/pipelines/get-pipeline-run/schema.js +19 -0
- package/dist/features/pipelines/get-pipeline-run/schema.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-sources/feature.d.ts +26 -0
- package/dist/features/pipelines/get-pipeline-run-sources/feature.js +105 -0
- package/dist/features/pipelines/get-pipeline-run-sources/feature.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-sources/index.d.ts +2 -0
- package/dist/features/pipelines/get-pipeline-run-sources/index.js +19 -0
- package/dist/features/pipelines/get-pipeline-run-sources/index.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-sources/schema.d.ts +6 -0
- package/dist/features/pipelines/get-pipeline-run-sources/schema.js +19 -0
- package/dist/features/pipelines/get-pipeline-run-sources/schema.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/feature.d.ts +47 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/feature.js +185 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/feature.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/index.d.ts +2 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/index.js +19 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/index.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/schema.d.ts +7 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/schema.js +21 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/schema.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/feature.d.ts +41 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/feature.js +450 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/feature.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/index.d.ts +2 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/index.js +19 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/index.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/schema.d.ts +6 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/schema.js +19 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/schema.js.map +1 -0
- package/dist/features/pipelines/helpers.d.ts +3 -0
- package/dist/features/pipelines/helpers.js +29 -0
- package/dist/features/pipelines/helpers.js.map +1 -0
- package/dist/features/pipelines/index.d.ts +22 -0
- package/dist/features/pipelines/index.js +216 -0
- package/dist/features/pipelines/index.js.map +1 -0
- package/dist/features/pipelines/list-pipeline-runs/feature.d.ts +3 -0
- package/dist/features/pipelines/list-pipeline-runs/feature.js +98 -0
- package/dist/features/pipelines/list-pipeline-runs/feature.js.map +1 -0
- package/dist/features/pipelines/list-pipeline-runs/index.d.ts +2 -0
- package/dist/features/pipelines/list-pipeline-runs/index.js +19 -0
- package/dist/features/pipelines/list-pipeline-runs/index.js.map +1 -0
- package/dist/features/pipelines/list-pipeline-runs/schema.d.ts +28 -0
- package/dist/features/pipelines/list-pipeline-runs/schema.js +50 -0
- package/dist/features/pipelines/list-pipeline-runs/schema.js.map +1 -0
- package/dist/features/pipelines/list-pipelines/feature.d.ts +10 -0
- package/dist/features/pipelines/list-pipelines/feature.js +42 -0
- package/dist/features/pipelines/list-pipelines/feature.js.map +1 -0
- package/dist/features/pipelines/list-pipelines/index.d.ts +2 -0
- package/dist/features/pipelines/list-pipelines/index.js +19 -0
- package/dist/features/pipelines/list-pipelines/index.js.map +1 -0
- package/dist/features/pipelines/list-pipelines/schema.d.ts +9 -0
- package/dist/features/pipelines/list-pipelines/schema.js +23 -0
- package/dist/features/pipelines/list-pipelines/schema.js.map +1 -0
- package/dist/features/pipelines/pipeline-timeline/feature.d.ts +3 -0
- package/dist/features/pipelines/pipeline-timeline/feature.js +95 -0
- package/dist/features/pipelines/pipeline-timeline/feature.js.map +1 -0
- package/dist/features/pipelines/pipeline-timeline/index.d.ts +2 -0
- package/dist/features/pipelines/pipeline-timeline/index.js +19 -0
- package/dist/features/pipelines/pipeline-timeline/index.js.map +1 -0
- package/dist/features/pipelines/pipeline-timeline/schema.d.ts +31 -0
- package/dist/features/pipelines/pipeline-timeline/schema.js +51 -0
- package/dist/features/pipelines/pipeline-timeline/schema.js.map +1 -0
- package/dist/features/pipelines/tool-definitions.d.ts +5 -0
- package/dist/features/pipelines/tool-definitions.js +87 -0
- package/dist/features/pipelines/tool-definitions.js.map +1 -0
- package/dist/features/pipelines/trigger-pipeline/feature.d.ts +10 -0
- package/dist/features/pipelines/trigger-pipeline/feature.js +65 -0
- package/dist/features/pipelines/trigger-pipeline/feature.js.map +1 -0
- package/dist/features/pipelines/trigger-pipeline/index.d.ts +2 -0
- package/dist/features/pipelines/trigger-pipeline/index.js +8 -0
- package/dist/features/pipelines/trigger-pipeline/index.js.map +1 -0
- package/dist/features/pipelines/trigger-pipeline/schema.d.ts +15 -0
- package/dist/features/pipelines/trigger-pipeline/schema.js +45 -0
- package/dist/features/pipelines/trigger-pipeline/schema.js.map +1 -0
- package/dist/features/pipelines/types.d.ts +122 -0
- package/dist/features/pipelines/types.js +3 -0
- package/dist/features/pipelines/types.js.map +1 -0
- package/dist/features/projects/__test__/test-helpers.d.ts +13 -0
- package/dist/features/projects/__test__/test-helpers.js +35 -0
- package/dist/features/projects/__test__/test-helpers.js.map +1 -0
- package/dist/features/projects/get-project/feature.d.ts +11 -0
- package/dist/features/projects/get-project/feature.js +29 -0
- package/dist/features/projects/get-project/feature.js.map +1 -0
- package/dist/features/projects/get-project/index.d.ts +2 -0
- package/dist/features/projects/get-project/index.js +19 -0
- package/dist/features/projects/get-project/index.js.map +1 -0
- package/dist/features/projects/get-project/schema.d.ts +2 -0
- package/dist/features/projects/get-project/schema.js +6 -0
- package/dist/features/projects/get-project/schema.js.map +1 -0
- package/dist/features/projects/get-project-details/feature.d.ts +78 -0
- package/dist/features/projects/get-project-details/feature.js +185 -0
- package/dist/features/projects/get-project-details/feature.js.map +1 -0
- package/dist/features/projects/get-project-details/index.d.ts +2 -0
- package/dist/features/projects/get-project-details/index.js +8 -0
- package/dist/features/projects/get-project-details/index.js.map +1 -0
- package/dist/features/projects/get-project-details/schema.d.ts +2 -0
- package/dist/features/projects/get-project-details/schema.js +6 -0
- package/dist/features/projects/get-project-details/schema.js.map +1 -0
- package/dist/features/projects/index.d.ts +15 -0
- package/dist/features/projects/index.js +80 -0
- package/dist/features/projects/index.js.map +1 -0
- package/dist/features/projects/list-projects/feature.d.ts +10 -0
- package/dist/features/projects/list-projects/feature.js +25 -0
- package/dist/features/projects/list-projects/feature.js.map +1 -0
- package/dist/features/projects/list-projects/index.d.ts +2 -0
- package/dist/features/projects/list-projects/index.js +19 -0
- package/dist/features/projects/list-projects/index.js.map +1 -0
- package/dist/features/projects/list-projects/schema.d.ts +2 -0
- package/dist/features/projects/list-projects/schema.js +6 -0
- package/dist/features/projects/list-projects/schema.js.map +1 -0
- package/dist/features/projects/schemas.d.ts +30 -0
- package/dist/features/projects/schemas.js +76 -0
- package/dist/features/projects/schemas.js.map +1 -0
- package/dist/features/projects/tool-definitions.d.ts +5 -0
- package/dist/features/projects/tool-definitions.js +26 -0
- package/dist/features/projects/tool-definitions.js.map +1 -0
- package/dist/features/projects/types.d.ts +11 -0
- package/dist/features/projects/types.js +3 -0
- package/dist/features/projects/types.js.map +1 -0
- package/dist/features/pull-requests/add-pull-request-comment/feature.d.ts +13 -0
- package/dist/features/pull-requests/add-pull-request-comment/feature.js +161 -0
- package/dist/features/pull-requests/add-pull-request-comment/feature.js.map +1 -0
- package/dist/features/pull-requests/add-pull-request-comment/index.d.ts +1 -0
- package/dist/features/pull-requests/add-pull-request-comment/index.js +18 -0
- package/dist/features/pull-requests/add-pull-request-comment/index.js.map +1 -0
- package/dist/features/pull-requests/create-pull-request/feature.d.ts +12 -0
- package/dist/features/pull-requests/create-pull-request/feature.js +99 -0
- package/dist/features/pull-requests/create-pull-request/feature.js.map +1 -0
- package/dist/features/pull-requests/create-pull-request/index.d.ts +2 -0
- package/dist/features/pull-requests/create-pull-request/index.js +19 -0
- package/dist/features/pull-requests/create-pull-request/index.js.map +1 -0
- package/dist/features/pull-requests/create-pull-request/schema.d.ts +2 -0
- package/dist/features/pull-requests/create-pull-request/schema.js +6 -0
- package/dist/features/pull-requests/create-pull-request/schema.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request/feature.d.ts +6 -0
- package/dist/features/pull-requests/get-pull-request/feature.js +22 -0
- package/dist/features/pull-requests/get-pull-request/feature.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request/index.d.ts +2 -0
- package/dist/features/pull-requests/get-pull-request/index.js +19 -0
- package/dist/features/pull-requests/get-pull-request/index.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request/schema.d.ts +1 -0
- package/dist/features/pull-requests/get-pull-request/schema.js +6 -0
- package/dist/features/pull-requests/get-pull-request/schema.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request-changes/feature.d.ts +22 -0
- package/dist/features/pull-requests/get-pull-request-changes/feature.js +60 -0
- package/dist/features/pull-requests/get-pull-request-changes/feature.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request-changes/index.d.ts +1 -0
- package/dist/features/pull-requests/get-pull-request-changes/index.js +18 -0
- package/dist/features/pull-requests/get-pull-request-changes/index.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request-checks/feature.d.ts +51 -0
- package/dist/features/pull-requests/get-pull-request-checks/feature.js +259 -0
- package/dist/features/pull-requests/get-pull-request-checks/feature.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request-checks/index.d.ts +1 -0
- package/dist/features/pull-requests/get-pull-request-checks/index.js +18 -0
- package/dist/features/pull-requests/get-pull-request-checks/index.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request-comments/feature.d.ts +13 -0
- package/dist/features/pull-requests/get-pull-request-comments/feature.js +88 -0
- package/dist/features/pull-requests/get-pull-request-comments/feature.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request-comments/index.d.ts +1 -0
- package/dist/features/pull-requests/get-pull-request-comments/index.js +18 -0
- package/dist/features/pull-requests/get-pull-request-comments/index.js.map +1 -0
- package/dist/features/pull-requests/index.d.ts +21 -0
- package/dist/features/pull-requests/index.js +167 -0
- package/dist/features/pull-requests/index.js.map +1 -0
- package/dist/features/pull-requests/list-pull-requests/feature.d.ts +17 -0
- package/dist/features/pull-requests/list-pull-requests/feature.js +81 -0
- package/dist/features/pull-requests/list-pull-requests/feature.js.map +1 -0
- package/dist/features/pull-requests/list-pull-requests/index.d.ts +2 -0
- package/dist/features/pull-requests/list-pull-requests/index.js +19 -0
- package/dist/features/pull-requests/list-pull-requests/index.js.map +1 -0
- package/dist/features/pull-requests/list-pull-requests/schema.d.ts +1 -0
- package/dist/features/pull-requests/list-pull-requests/schema.js +6 -0
- package/dist/features/pull-requests/list-pull-requests/schema.js.map +1 -0
- package/dist/features/pull-requests/schemas.d.ts +157 -0
- package/dist/features/pull-requests/schemas.js +337 -0
- package/dist/features/pull-requests/schemas.js.map +1 -0
- package/dist/features/pull-requests/tool-definitions.d.ts +5 -0
- package/dist/features/pull-requests/tool-definitions.js +60 -0
- package/dist/features/pull-requests/tool-definitions.js.map +1 -0
- package/dist/features/pull-requests/types.d.ts +118 -0
- package/dist/features/pull-requests/types.js +3 -0
- package/dist/features/pull-requests/types.js.map +1 -0
- package/dist/features/pull-requests/update-pull-request/feature.d.ts +9 -0
- package/dist/features/pull-requests/update-pull-request/feature.js +250 -0
- package/dist/features/pull-requests/update-pull-request/feature.js.map +1 -0
- package/dist/features/pull-requests/update-pull-request/index.d.ts +1 -0
- package/dist/features/pull-requests/update-pull-request/index.js +18 -0
- package/dist/features/pull-requests/update-pull-request/index.js.map +1 -0
- package/dist/features/pull-requests/update-pull-request-thread-status/feature.d.ts +14 -0
- package/dist/features/pull-requests/update-pull-request-thread-status/feature.js +87 -0
- package/dist/features/pull-requests/update-pull-request-thread-status/feature.js.map +1 -0
- package/dist/features/pull-requests/update-pull-request-thread-status/index.d.ts +1 -0
- package/dist/features/pull-requests/update-pull-request-thread-status/index.js +18 -0
- package/dist/features/pull-requests/update-pull-request-thread-status/index.js.map +1 -0
- package/dist/features/repositories/__test__/test-helpers.d.ts +13 -0
- package/dist/features/repositories/__test__/test-helpers.js +35 -0
- package/dist/features/repositories/__test__/test-helpers.js.map +1 -0
- package/dist/features/repositories/create-branch/feature.d.ts +6 -0
- package/dist/features/repositories/create-branch/feature.js +33 -0
- package/dist/features/repositories/create-branch/feature.js.map +1 -0
- package/dist/features/repositories/create-branch/index.d.ts +1 -0
- package/dist/features/repositories/create-branch/index.js +18 -0
- package/dist/features/repositories/create-branch/index.js.map +1 -0
- package/dist/features/repositories/create-commit/feature.d.ts +6 -0
- package/dist/features/repositories/create-commit/feature.js +122 -0
- package/dist/features/repositories/create-commit/feature.js.map +1 -0
- package/dist/features/repositories/create-commit/index.d.ts +1 -0
- package/dist/features/repositories/create-commit/index.js +18 -0
- package/dist/features/repositories/create-commit/index.js.map +1 -0
- package/dist/features/repositories/get-all-repositories-tree/feature.d.ts +22 -0
- package/dist/features/repositories/get-all-repositories-tree/feature.js +303 -0
- package/dist/features/repositories/get-all-repositories-tree/feature.js.map +1 -0
- package/dist/features/repositories/get-all-repositories-tree/index.d.ts +2 -0
- package/dist/features/repositories/get-all-repositories-tree/index.js +19 -0
- package/dist/features/repositories/get-all-repositories-tree/index.js.map +1 -0
- package/dist/features/repositories/get-all-repositories-tree/schema.d.ts +2 -0
- package/dist/features/repositories/get-all-repositories-tree/schema.js +6 -0
- package/dist/features/repositories/get-all-repositories-tree/schema.js.map +1 -0
- package/dist/features/repositories/get-file-content/feature.d.ts +23 -0
- package/dist/features/repositories/get-file-content/feature.js +96 -0
- package/dist/features/repositories/get-file-content/feature.js.map +1 -0
- package/dist/features/repositories/get-file-content/index.d.ts +2 -0
- package/dist/features/repositories/get-file-content/index.js +19 -0
- package/dist/features/repositories/get-file-content/index.js.map +1 -0
- package/dist/features/repositories/get-file-content/schema.d.ts +2 -0
- package/dist/features/repositories/get-file-content/schema.js +6 -0
- package/dist/features/repositories/get-file-content/schema.js.map +1 -0
- package/dist/features/repositories/get-repository/feature.d.ts +12 -0
- package/dist/features/repositories/get-repository/feature.js +30 -0
- package/dist/features/repositories/get-repository/feature.js.map +1 -0
- package/dist/features/repositories/get-repository/index.d.ts +2 -0
- package/dist/features/repositories/get-repository/index.js +19 -0
- package/dist/features/repositories/get-repository/index.js.map +1 -0
- package/dist/features/repositories/get-repository/schema.d.ts +2 -0
- package/dist/features/repositories/get-repository/schema.js +6 -0
- package/dist/features/repositories/get-repository/schema.js.map +1 -0
- package/dist/features/repositories/get-repository-details/feature.d.ts +11 -0
- package/dist/features/repositories/get-repository-details/feature.js +67 -0
- package/dist/features/repositories/get-repository-details/feature.js.map +1 -0
- package/dist/features/repositories/get-repository-details/index.d.ts +2 -0
- package/dist/features/repositories/get-repository-details/index.js +19 -0
- package/dist/features/repositories/get-repository-details/index.js.map +1 -0
- package/dist/features/repositories/get-repository-details/schema.d.ts +2 -0
- package/dist/features/repositories/get-repository-details/schema.js +6 -0
- package/dist/features/repositories/get-repository-details/schema.js.map +1 -0
- package/dist/features/repositories/get-repository-tree/feature.d.ts +6 -0
- package/dist/features/repositories/get-repository-tree/feature.js +65 -0
- package/dist/features/repositories/get-repository-tree/feature.js.map +1 -0
- package/dist/features/repositories/get-repository-tree/index.d.ts +1 -0
- package/dist/features/repositories/get-repository-tree/index.js +18 -0
- package/dist/features/repositories/get-repository-tree/index.js.map +1 -0
- package/dist/features/repositories/index.d.ts +23 -0
- package/dist/features/repositories/index.js +207 -0
- package/dist/features/repositories/index.js.map +1 -0
- package/dist/features/repositories/list-branches/feature.d.ts +14 -0
- package/dist/features/repositories/list-branches/feature.js +56 -0
- package/dist/features/repositories/list-branches/feature.js.map +1 -0
- package/dist/features/repositories/list-branches/index.d.ts +2 -0
- package/dist/features/repositories/list-branches/index.js +19 -0
- package/dist/features/repositories/list-branches/index.js.map +1 -0
- package/dist/features/repositories/list-branches/schema.d.ts +8 -0
- package/dist/features/repositories/list-branches/schema.js +28 -0
- package/dist/features/repositories/list-branches/schema.js.map +1 -0
- package/dist/features/repositories/list-commits/feature.d.ts +6 -0
- package/dist/features/repositories/list-commits/feature.js +75 -0
- package/dist/features/repositories/list-commits/feature.js.map +1 -0
- package/dist/features/repositories/list-commits/index.d.ts +1 -0
- package/dist/features/repositories/list-commits/index.js +18 -0
- package/dist/features/repositories/list-commits/index.js.map +1 -0
- package/dist/features/repositories/list-repositories/feature.d.ts +10 -0
- package/dist/features/repositories/list-repositories/feature.js +25 -0
- package/dist/features/repositories/list-repositories/feature.js.map +1 -0
- package/dist/features/repositories/list-repositories/index.d.ts +2 -0
- package/dist/features/repositories/list-repositories/index.js +19 -0
- package/dist/features/repositories/list-repositories/index.js.map +1 -0
- package/dist/features/repositories/list-repositories/schema.d.ts +2 -0
- package/dist/features/repositories/list-repositories/schema.js +6 -0
- package/dist/features/repositories/list-repositories/schema.js.map +1 -0
- package/dist/features/repositories/list-tags/feature.d.ts +13 -0
- package/dist/features/repositories/list-tags/feature.js +52 -0
- package/dist/features/repositories/list-tags/feature.js.map +1 -0
- package/dist/features/repositories/list-tags/index.d.ts +2 -0
- package/dist/features/repositories/list-tags/index.js +19 -0
- package/dist/features/repositories/list-tags/index.js.map +1 -0
- package/dist/features/repositories/list-tags/schema.d.ts +8 -0
- package/dist/features/repositories/list-tags/schema.js +28 -0
- package/dist/features/repositories/list-tags/schema.js.map +1 -0
- package/dist/features/repositories/schemas.d.ts +101 -0
- package/dist/features/repositories/schemas.js +306 -0
- package/dist/features/repositories/schemas.js.map +1 -0
- package/dist/features/repositories/tool-definitions.d.ts +5 -0
- package/dist/features/repositories/tool-definitions.js +106 -0
- package/dist/features/repositories/tool-definitions.js.map +1 -0
- package/dist/features/repositories/types.d.ts +167 -0
- package/dist/features/repositories/types.js +3 -0
- package/dist/features/repositories/types.js.map +1 -0
- package/dist/features/search/index.d.ts +15 -0
- package/dist/features/search/index.js +65 -0
- package/dist/features/search/index.js.map +1 -0
- package/dist/features/search/schemas.d.ts +58 -0
- package/dist/features/search/schemas.js +159 -0
- package/dist/features/search/schemas.js.map +1 -0
- package/dist/features/search/search-code/feature.d.ts +10 -0
- package/dist/features/search/search-code/feature.js +178 -0
- package/dist/features/search/search-code/feature.js.map +1 -0
- package/dist/features/search/search-code/index.d.ts +2 -0
- package/dist/features/search/search-code/index.js +19 -0
- package/dist/features/search/search-code/index.js.map +1 -0
- package/dist/features/search/search-wiki/feature.d.ts +10 -0
- package/dist/features/search/search-wiki/feature.js +133 -0
- package/dist/features/search/search-wiki/feature.js.map +1 -0
- package/dist/features/search/search-wiki/index.d.ts +1 -0
- package/dist/features/search/search-wiki/index.js +18 -0
- package/dist/features/search/search-wiki/index.js.map +1 -0
- package/dist/features/search/search-work-items/feature.d.ts +10 -0
- package/dist/features/search/search-work-items/feature.js +119 -0
- package/dist/features/search/search-work-items/feature.js.map +1 -0
- package/dist/features/search/search-work-items/index.d.ts +1 -0
- package/dist/features/search/search-work-items/index.js +18 -0
- package/dist/features/search/search-work-items/index.js.map +1 -0
- package/dist/features/search/tool-definitions.d.ts +5 -0
- package/dist/features/search/tool-definitions.js +26 -0
- package/dist/features/search/tool-definitions.js.map +1 -0
- package/dist/features/search/types.d.ts +537 -0
- package/dist/features/search/types.js +3 -0
- package/dist/features/search/types.js.map +1 -0
- package/dist/features/service-connections/feature.d.ts +21 -0
- package/dist/features/service-connections/feature.js +51 -0
- package/dist/features/service-connections/feature.js.map +1 -0
- package/dist/features/service-connections/index.d.ts +10 -0
- package/dist/features/service-connections/index.js +42 -0
- package/dist/features/service-connections/index.js.map +1 -0
- package/dist/features/service-connections/schema.d.ts +8 -0
- package/dist/features/service-connections/schema.js +28 -0
- package/dist/features/service-connections/schema.js.map +1 -0
- package/dist/features/users/get-me/feature.d.ts +12 -0
- package/dist/features/users/get-me/feature.js +96 -0
- package/dist/features/users/get-me/feature.js.map +1 -0
- package/dist/features/users/get-me/index.d.ts +2 -0
- package/dist/features/users/get-me/index.js +19 -0
- package/dist/features/users/get-me/index.js.map +1 -0
- package/dist/features/users/get-me/schema.d.ts +2 -0
- package/dist/features/users/get-me/schema.js +6 -0
- package/dist/features/users/get-me/schema.js.map +1 -0
- package/dist/features/users/index.d.ts +17 -0
- package/dist/features/users/index.js +52 -0
- package/dist/features/users/index.js.map +1 -0
- package/dist/features/users/schemas.d.ts +5 -0
- package/dist/features/users/schemas.js +9 -0
- package/dist/features/users/schemas.js.map +1 -0
- package/dist/features/users/tool-definitions.d.ts +5 -0
- package/dist/features/users/tool-definitions.js +16 -0
- package/dist/features/users/tool-definitions.js.map +1 -0
- package/dist/features/users/types.d.ts +17 -0
- package/dist/features/users/types.js +3 -0
- package/dist/features/users/types.js.map +1 -0
- package/dist/features/wikis/create-wiki/feature.d.ts +49 -0
- package/dist/features/wikis/create-wiki/feature.js +56 -0
- package/dist/features/wikis/create-wiki/feature.js.map +1 -0
- package/dist/features/wikis/create-wiki/index.d.ts +2 -0
- package/dist/features/wikis/create-wiki/index.js +9 -0
- package/dist/features/wikis/create-wiki/index.js.map +1 -0
- package/dist/features/wikis/create-wiki/schema.d.ts +25 -0
- package/dist/features/wikis/create-wiki/schema.js +60 -0
- package/dist/features/wikis/create-wiki/schema.js.map +1 -0
- package/dist/features/wikis/create-wiki-page/feature.d.ts +18 -0
- package/dist/features/wikis/create-wiki-page/feature.js +95 -0
- package/dist/features/wikis/create-wiki-page/feature.js.map +1 -0
- package/dist/features/wikis/create-wiki-page/index.d.ts +2 -0
- package/dist/features/wikis/create-wiki-page/index.js +8 -0
- package/dist/features/wikis/create-wiki-page/index.js.map +1 -0
- package/dist/features/wikis/create-wiki-page/schema.d.ts +12 -0
- package/dist/features/wikis/create-wiki-page/schema.js +36 -0
- package/dist/features/wikis/create-wiki-page/schema.js.map +1 -0
- package/dist/features/wikis/get-wiki-page/feature.d.ts +33 -0
- package/dist/features/wikis/get-wiki-page/feature.js +68 -0
- package/dist/features/wikis/get-wiki-page/feature.js.map +1 -0
- package/dist/features/wikis/get-wiki-page/index.d.ts +2 -0
- package/dist/features/wikis/get-wiki-page/index.js +8 -0
- package/dist/features/wikis/get-wiki-page/index.js.map +1 -0
- package/dist/features/wikis/get-wiki-page/schema.d.ts +10 -0
- package/dist/features/wikis/get-wiki-page/schema.js +23 -0
- package/dist/features/wikis/get-wiki-page/schema.js.map +1 -0
- package/dist/features/wikis/get-wikis/feature.d.ts +25 -0
- package/dist/features/wikis/get-wikis/feature.js +37 -0
- package/dist/features/wikis/get-wikis/feature.js.map +1 -0
- package/dist/features/wikis/get-wikis/index.d.ts +2 -0
- package/dist/features/wikis/get-wikis/index.js +8 -0
- package/dist/features/wikis/get-wikis/index.js.map +1 -0
- package/dist/features/wikis/get-wikis/schema.d.ts +8 -0
- package/dist/features/wikis/get-wikis/schema.js +21 -0
- package/dist/features/wikis/get-wikis/schema.js.map +1 -0
- package/dist/features/wikis/index.d.ts +16 -0
- package/dist/features/wikis/index.js +141 -0
- package/dist/features/wikis/index.js.map +1 -0
- package/dist/features/wikis/list-wiki-pages/feature.d.ts +20 -0
- package/dist/features/wikis/list-wiki-pages/feature.js +79 -0
- package/dist/features/wikis/list-wiki-pages/feature.js.map +1 -0
- package/dist/features/wikis/list-wiki-pages/index.d.ts +2 -0
- package/dist/features/wikis/list-wiki-pages/index.js +8 -0
- package/dist/features/wikis/list-wiki-pages/index.js.map +1 -0
- package/dist/features/wikis/list-wiki-pages/schema.d.ts +10 -0
- package/dist/features/wikis/list-wiki-pages/schema.js +22 -0
- package/dist/features/wikis/list-wiki-pages/schema.js.map +1 -0
- package/dist/features/wikis/tool-definitions.d.ts +5 -0
- package/dist/features/wikis/tool-definitions.js +46 -0
- package/dist/features/wikis/tool-definitions.js.map +1 -0
- package/dist/features/wikis/update-wiki-page/feature.d.ts +12 -0
- package/dist/features/wikis/update-wiki-page/feature.js +63 -0
- package/dist/features/wikis/update-wiki-page/feature.js.map +1 -0
- package/dist/features/wikis/update-wiki-page/index.d.ts +2 -0
- package/dist/features/wikis/update-wiki-page/index.js +8 -0
- package/dist/features/wikis/update-wiki-page/index.js.map +1 -0
- package/dist/features/wikis/update-wiki-page/schema.d.ts +12 -0
- package/dist/features/wikis/update-wiki-page/schema.js +32 -0
- package/dist/features/wikis/update-wiki-page/schema.js.map +1 -0
- package/dist/features/work-items/__test__/fixtures.d.ts +9 -0
- package/dist/features/work-items/__test__/fixtures.js +28 -0
- package/dist/features/work-items/__test__/fixtures.js.map +1 -0
- package/dist/features/work-items/__test__/test-helpers.d.ts +13 -0
- package/dist/features/work-items/__test__/test-helpers.js +35 -0
- package/dist/features/work-items/__test__/test-helpers.js.map +1 -0
- package/dist/features/work-items/__test__/test-utils.d.ts +17 -0
- package/dist/features/work-items/__test__/test-utils.js +39 -0
- package/dist/features/work-items/__test__/test-utils.js.map +1 -0
- package/dist/features/work-items/attachment-schemas.d.ts +24 -0
- package/dist/features/work-items/attachment-schemas.js +46 -0
- package/dist/features/work-items/attachment-schemas.js.map +1 -0
- package/dist/features/work-items/create-work-item/feature.d.ts +12 -0
- package/dist/features/work-items/create-work-item/feature.js +107 -0
- package/dist/features/work-items/create-work-item/feature.js.map +1 -0
- package/dist/features/work-items/create-work-item/index.d.ts +2 -0
- package/dist/features/work-items/create-work-item/index.js +19 -0
- package/dist/features/work-items/create-work-item/index.js.map +1 -0
- package/dist/features/work-items/create-work-item/schema.d.ts +2 -0
- package/dist/features/work-items/create-work-item/schema.js +6 -0
- package/dist/features/work-items/create-work-item/schema.js.map +1 -0
- package/dist/features/work-items/create-work-item-attachment/feature.d.ts +11 -0
- package/dist/features/work-items/create-work-item-attachment/feature.js +107 -0
- package/dist/features/work-items/create-work-item-attachment/feature.js.map +1 -0
- package/dist/features/work-items/create-work-item-attachment/index.d.ts +2 -0
- package/dist/features/work-items/create-work-item-attachment/index.js +19 -0
- package/dist/features/work-items/create-work-item-attachment/index.js.map +1 -0
- package/dist/features/work-items/create-work-item-attachment/schema.d.ts +2 -0
- package/dist/features/work-items/create-work-item-attachment/schema.js +6 -0
- package/dist/features/work-items/create-work-item-attachment/schema.js.map +1 -0
- package/dist/features/work-items/delete-work-item-attachment/feature.d.ts +10 -0
- package/dist/features/work-items/delete-work-item-attachment/feature.js +51 -0
- package/dist/features/work-items/delete-work-item-attachment/feature.js.map +1 -0
- package/dist/features/work-items/delete-work-item-attachment/index.d.ts +2 -0
- package/dist/features/work-items/delete-work-item-attachment/index.js +19 -0
- package/dist/features/work-items/delete-work-item-attachment/index.js.map +1 -0
- package/dist/features/work-items/delete-work-item-attachment/schema.d.ts +2 -0
- package/dist/features/work-items/delete-work-item-attachment/schema.js +6 -0
- package/dist/features/work-items/delete-work-item-attachment/schema.js.map +1 -0
- package/dist/features/work-items/get-work-item/feature.d.ts +12 -0
- package/dist/features/work-items/get-work-item/feature.js +69 -0
- package/dist/features/work-items/get-work-item/feature.js.map +1 -0
- package/dist/features/work-items/get-work-item/index.d.ts +2 -0
- package/dist/features/work-items/get-work-item/index.js +19 -0
- package/dist/features/work-items/get-work-item/index.js.map +1 -0
- package/dist/features/work-items/get-work-item/schema.d.ts +2 -0
- package/dist/features/work-items/get-work-item/schema.js +6 -0
- package/dist/features/work-items/get-work-item/schema.js.map +1 -0
- package/dist/features/work-items/get-work-item-attachment/feature.d.ts +10 -0
- package/dist/features/work-items/get-work-item-attachment/feature.js +108 -0
- package/dist/features/work-items/get-work-item-attachment/feature.js.map +1 -0
- package/dist/features/work-items/get-work-item-attachment/index.d.ts +2 -0
- package/dist/features/work-items/get-work-item-attachment/index.js +19 -0
- package/dist/features/work-items/get-work-item-attachment/index.js.map +1 -0
- package/dist/features/work-items/get-work-item-attachment/schema.d.ts +2 -0
- package/dist/features/work-items/get-work-item-attachment/schema.js +6 -0
- package/dist/features/work-items/get-work-item-attachment/schema.js.map +1 -0
- package/dist/features/work-items/get-work-item-comments/feature.d.ts +10 -0
- package/dist/features/work-items/get-work-item-comments/feature.js +78 -0
- package/dist/features/work-items/get-work-item-comments/feature.js.map +1 -0
- package/dist/features/work-items/get-work-item-comments/index.d.ts +2 -0
- package/dist/features/work-items/get-work-item-comments/index.js +19 -0
- package/dist/features/work-items/get-work-item-comments/index.js.map +1 -0
- package/dist/features/work-items/get-work-item-comments/schema.d.ts +2 -0
- package/dist/features/work-items/get-work-item-comments/schema.js +6 -0
- package/dist/features/work-items/get-work-item-comments/schema.js.map +1 -0
- package/dist/features/work-items/index.d.ts +21 -0
- package/dist/features/work-items/index.js +181 -0
- package/dist/features/work-items/index.js.map +1 -0
- package/dist/features/work-items/list-work-items/feature.d.ts +10 -0
- package/dist/features/work-items/list-work-items/feature.js +92 -0
- package/dist/features/work-items/list-work-items/feature.js.map +1 -0
- package/dist/features/work-items/list-work-items/index.d.ts +2 -0
- package/dist/features/work-items/list-work-items/index.js +19 -0
- package/dist/features/work-items/list-work-items/index.js.map +1 -0
- package/dist/features/work-items/list-work-items/schema.d.ts +2 -0
- package/dist/features/work-items/list-work-items/schema.js +6 -0
- package/dist/features/work-items/list-work-items/schema.js.map +1 -0
- package/dist/features/work-items/manage-work-item-link/feature.d.ts +24 -0
- package/dist/features/work-items/manage-work-item-link/feature.js +91 -0
- package/dist/features/work-items/manage-work-item-link/feature.js.map +1 -0
- package/dist/features/work-items/manage-work-item-link/index.d.ts +2 -0
- package/dist/features/work-items/manage-work-item-link/index.js +8 -0
- package/dist/features/work-items/manage-work-item-link/index.js.map +1 -0
- package/dist/features/work-items/manage-work-item-link/schema.d.ts +2 -0
- package/dist/features/work-items/manage-work-item-link/schema.js +6 -0
- package/dist/features/work-items/manage-work-item-link/schema.js.map +1 -0
- package/dist/features/work-items/schemas.d.ts +99 -0
- package/dist/features/work-items/schemas.js +181 -0
- package/dist/features/work-items/schemas.js.map +1 -0
- package/dist/features/work-items/tool-definitions.d.ts +5 -0
- package/dist/features/work-items/tool-definitions.js +56 -0
- package/dist/features/work-items/tool-definitions.js.map +1 -0
- package/dist/features/work-items/types.d.ts +87 -0
- package/dist/features/work-items/types.js +3 -0
- package/dist/features/work-items/types.js.map +1 -0
- package/dist/features/work-items/update-work-item/feature.d.ts +12 -0
- package/dist/features/work-items/update-work-item/feature.js +155 -0
- package/dist/features/work-items/update-work-item/feature.js.map +1 -0
- package/dist/features/work-items/update-work-item/index.d.ts +2 -0
- package/dist/features/work-items/update-work-item/index.js +19 -0
- package/dist/features/work-items/update-work-item/index.js.map +1 -0
- package/dist/features/work-items/update-work-item/schema.d.ts +2 -0
- package/dist/features/work-items/update-work-item/schema.js +6 -0
- package/dist/features/work-items/update-work-item/schema.js.map +1 -0
- package/dist/http-server.d.ts +22 -0
- package/dist/http-server.js +137 -0
- package/dist/http-server.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +138 -0
- package/dist/index.js.map +1 -0
- package/dist/server.d.ts +21 -0
- package/dist/server.js +379 -0
- package/dist/server.js.map +1 -0
- package/dist/shared/api/client.d.ts +91 -0
- package/dist/shared/api/client.js +242 -0
- package/dist/shared/api/client.js.map +1 -0
- package/dist/shared/api/index.d.ts +1 -0
- package/dist/shared/api/index.js +18 -0
- package/dist/shared/api/index.js.map +1 -0
- package/dist/shared/auth/auth-factory.d.ts +53 -0
- package/dist/shared/auth/auth-factory.js +194 -0
- package/dist/shared/auth/auth-factory.js.map +1 -0
- package/dist/shared/auth/client-factory.d.ts +109 -0
- package/dist/shared/auth/client-factory.js +272 -0
- package/dist/shared/auth/client-factory.js.map +1 -0
- package/dist/shared/auth/index.d.ts +11 -0
- package/dist/shared/auth/index.js +18 -0
- package/dist/shared/auth/index.js.map +1 -0
- package/dist/shared/azure-devops-url.d.ts +17 -0
- package/dist/shared/azure-devops-url.js +120 -0
- package/dist/shared/azure-devops-url.js.map +1 -0
- package/dist/shared/config/index.d.ts +1 -0
- package/dist/shared/config/index.js +18 -0
- package/dist/shared/config/index.js.map +1 -0
- package/dist/shared/config/version.d.ts +4 -0
- package/dist/shared/config/version.js +8 -0
- package/dist/shared/config/version.js.map +1 -0
- package/dist/shared/enums/index.d.ts +40 -0
- package/dist/shared/enums/index.js +87 -0
- package/dist/shared/enums/index.js.map +1 -0
- package/dist/shared/errors/azure-devops-errors.d.ts +107 -0
- package/dist/shared/errors/azure-devops-errors.js +161 -0
- package/dist/shared/errors/azure-devops-errors.js.map +1 -0
- package/dist/shared/errors/handle-request-error.d.ts +32 -0
- package/dist/shared/errors/handle-request-error.js +121 -0
- package/dist/shared/errors/handle-request-error.js.map +1 -0
- package/dist/shared/errors/index.d.ts +1 -0
- package/dist/shared/errors/index.js +18 -0
- package/dist/shared/errors/index.js.map +1 -0
- package/dist/shared/test/test-helpers.d.ts +20 -0
- package/dist/shared/test/test-helpers.js +57 -0
- package/dist/shared/test/test-helpers.js.map +1 -0
- package/dist/shared/test/text-content.d.ts +10 -0
- package/dist/shared/test/text-content.js +20 -0
- package/dist/shared/test/text-content.js.map +1 -0
- package/dist/shared/types/config.d.ts +27 -0
- package/dist/shared/types/config.js +3 -0
- package/dist/shared/types/config.js.map +1 -0
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/index.js +18 -0
- package/dist/shared/types/index.js.map +1 -0
- package/dist/shared/types/request-handler.d.ts +21 -0
- package/dist/shared/types/request-handler.js +3 -0
- package/dist/shared/types/request-handler.js.map +1 -0
- package/dist/shared/types/tool-definition.d.ts +9 -0
- package/dist/shared/types/tool-definition.js +3 -0
- package/dist/shared/types/tool-definition.js.map +1 -0
- package/dist/shared/utils/to-json-schema.d.ts +6 -0
- package/dist/shared/utils/to-json-schema.js +12 -0
- package/dist/shared/utils/to-json-schema.js.map +1 -0
- package/dist/utils/environment.d.ts +21 -0
- package/dist/utils/environment.js +58 -0
- package/dist/utils/environment.js.map +1 -0
- package/docs/SOLUTION_SUMMARY.md +145 -0
- package/docs/authentication.md +293 -0
- package/docs/azure-identity-authentication.md +187 -0
- package/docs/ci-setup.md +61 -0
- package/docs/docker.md +135 -0
- package/docs/examples/README.md +33 -0
- package/docs/examples/azure-cli-authentication.env +25 -0
- package/docs/examples/azure-identity-authentication.env +33 -0
- package/docs/examples/pat-authentication.env +24 -0
- package/docs/important-knowledge/azure-devops-rest-api-research.md +88 -0
- package/docs/important-knowledge/llm-tldr-cli.md +37 -0
- package/docs/npm-trusted-publishers-migration.md +142 -0
- package/docs/release-troubleshooting.md +153 -0
- package/docs/testing/README.md +140 -0
- package/docs/testing/setup.md +72 -0
- package/docs/tools/README.md +76 -0
- package/docs/tools/core-navigation.md +114 -0
- package/docs/tools/organizations.md +73 -0
- package/docs/tools/pipelines.md +532 -0
- package/docs/tools/projects.md +114 -0
- package/docs/tools/pull-requests.md +1110 -0
- package/docs/tools/repositories.md +610 -0
- package/docs/tools/resources.md +133 -0
- package/docs/tools/search.md +165 -0
- package/docs/tools/user-tools.md +39 -0
- package/docs/tools/wiki.md +192 -0
- package/docs/tools/work-items.md +244 -0
- package/package.json +125 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-handler.js","sourceRoot":"","sources":["../../../src/shared/types/request-handler.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-definition.js","sourceRoot":"","sources":["../../../src/shared/types/tool-definition.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toJsonSchema = toJsonSchema;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/**
|
|
6
|
+
* Convert a Zod schema to JSON Schema draft-07 for MCP tool definitions.
|
|
7
|
+
* Replaces zod-to-json-schema after the Zod 4 upgrade.
|
|
8
|
+
*/
|
|
9
|
+
function toJsonSchema(schema) {
|
|
10
|
+
return zod_1.z.toJSONSchema(schema, { target: 'draft-07' });
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=to-json-schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-json-schema.js","sourceRoot":"","sources":["../../../src/shared/utils/to-json-schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB;;;GAGG;AACH,sBAA6B,MAAiB;IAC5C,OAAO,OAAC,CAAC,YAAY,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,CAGnD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utility functions and constants related to environment variables.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Extract organization name from Azure DevOps organization URL
|
|
6
|
+
*/
|
|
7
|
+
export declare function getOrgNameFromUrl(url?: string): string;
|
|
8
|
+
/**
|
|
9
|
+
* Default project name from environment variables
|
|
10
|
+
*/
|
|
11
|
+
export declare const defaultProject: string;
|
|
12
|
+
/**
|
|
13
|
+
* Default organization name derived from the organization URL
|
|
14
|
+
*/
|
|
15
|
+
export declare const defaultOrg: string;
|
|
16
|
+
/**
|
|
17
|
+
* REST api-version for features that call the REST API directly instead of
|
|
18
|
+
* going through azure-devops-node-api (which negotiates the version itself).
|
|
19
|
+
* Azure DevOps Server (on-prem) tops out at 7.0, so it needs an override.
|
|
20
|
+
*/
|
|
21
|
+
export declare const apiVersion: string;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.apiVersion = exports.defaultOrg = exports.defaultProject = void 0;
|
|
7
|
+
exports.getOrgNameFromUrl = getOrgNameFromUrl;
|
|
8
|
+
// Load environment variables
|
|
9
|
+
const dotenv_1 = __importDefault(require("dotenv"));
|
|
10
|
+
dotenv_1.default.config({ quiet: true });
|
|
11
|
+
/**
|
|
12
|
+
* Utility functions and constants related to environment variables.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Extract organization name from Azure DevOps organization URL
|
|
16
|
+
*/
|
|
17
|
+
function getOrgNameFromUrl(url) {
|
|
18
|
+
if (!url)
|
|
19
|
+
return 'unknown-organization';
|
|
20
|
+
let parsedUrl;
|
|
21
|
+
try {
|
|
22
|
+
parsedUrl = new URL(url);
|
|
23
|
+
}
|
|
24
|
+
catch {
|
|
25
|
+
return 'unknown-organization';
|
|
26
|
+
}
|
|
27
|
+
const hostname = parsedUrl.hostname.toLowerCase();
|
|
28
|
+
if (hostname === 'dev.azure.com') {
|
|
29
|
+
const segments = parsedUrl.pathname.split('/').filter(Boolean);
|
|
30
|
+
return segments[0] ?? 'unknown-organization';
|
|
31
|
+
}
|
|
32
|
+
if (hostname.endsWith('.visualstudio.com')) {
|
|
33
|
+
return hostname.split('.')[0] || 'unknown-organization';
|
|
34
|
+
}
|
|
35
|
+
const segments = parsedUrl.pathname.split('/').filter(Boolean);
|
|
36
|
+
if (segments.length === 0) {
|
|
37
|
+
return 'unknown-organization';
|
|
38
|
+
}
|
|
39
|
+
if (segments[0].toLowerCase() === 'tfs') {
|
|
40
|
+
return segments[1] ?? 'unknown-organization';
|
|
41
|
+
}
|
|
42
|
+
return segments[0] ?? 'unknown-organization';
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Default project name from environment variables
|
|
46
|
+
*/
|
|
47
|
+
exports.defaultProject = process.env.AZURE_DEVOPS_DEFAULT_PROJECT || 'no default project';
|
|
48
|
+
/**
|
|
49
|
+
* Default organization name derived from the organization URL
|
|
50
|
+
*/
|
|
51
|
+
exports.defaultOrg = getOrgNameFromUrl(process.env.AZURE_DEVOPS_ORG_URL);
|
|
52
|
+
/**
|
|
53
|
+
* REST api-version for features that call the REST API directly instead of
|
|
54
|
+
* going through azure-devops-node-api (which negotiates the version itself).
|
|
55
|
+
* Azure DevOps Server (on-prem) tops out at 7.0, so it needs an override.
|
|
56
|
+
*/
|
|
57
|
+
exports.apiVersion = process.env.AZURE_DEVOPS_API_VERSION || '7.1';
|
|
58
|
+
//# sourceMappingURL=environment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"environment.js","sourceRoot":"","sources":["../../src/utils/environment.ts"],"names":[],"mappings":";;;;;;;AAAA,6BAA6B;AAC7B,oDAA4B;AAC5B,gBAAM,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAE/B;;GAEG;AAEH;;GAEG;AACH,2BAAkC,GAAY;IAC5C,IAAI,CAAC,GAAG;QAAE,OAAO,sBAAsB,CAAC;IAExC,IAAI,SAAc,CAAC;IACnB,IAAI,CAAC;QACH,SAAS,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC;IAC3B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,sBAAsB,CAAC;IAChC,CAAC;IAED,MAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,CAAC;IAClD,IAAI,QAAQ,KAAK,eAAe,EAAE,CAAC;QACjC,MAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAC/D,OAAO,QAAQ,CAAC,CAAC,CAAC,IAAI,sBAAsB,CAAC;IAC/C,CAAC;IAED,IAAI,QAAQ,CAAC,QAAQ,CAAC,mBAAmB,CAAC,EAAE,CAAC;QAC3C,OAAO,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,sBAAsB,CAAC;IAC1D,CAAC;IAED,MAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAC/D,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC1B,OAAO,sBAAsB,CAAC;IAChC,CAAC;IAED,IAAI,QAAQ,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,KAAK,KAAK,EAAE,CAAC;QACxC,OAAO,QAAQ,CAAC,CAAC,CAAC,IAAI,sBAAsB,CAAC;IAC/C,CAAC;IAED,OAAO,QAAQ,CAAC,CAAC,CAAC,IAAI,sBAAsB,CAAC;AAC/C,CAAC;AAED;;GAEG;AACU,QAAA,cAAc,GACzB,OAAO,CAAC,GAAG,CAAC,4BAA4B,IAAI,oBAAoB,CAAC;AAEnE;;GAEG;AACU,QAAA,UAAU,GAAG,iBAAiB,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;AAE9E;;;;GAIG;AACU,QAAA,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,IAAI,KAAK,CAAC"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# Solution Summary: Re-triggering Failed Release 0.1.44
|
|
2
|
+
|
|
3
|
+
## Problem Statement
|
|
4
|
+
Release 0.1.44 was created on GitHub but the npm publish step failed. Attempting to re-run the workflow results in all publish steps being skipped because release-please thinks the release is already complete.
|
|
5
|
+
|
|
6
|
+
## Root Cause Analysis
|
|
7
|
+
1. ✅ Release `mcp-server-azure-devops-v0.1.44` was created on GitHub (2026-02-05T15:38:57Z)
|
|
8
|
+
2. ❌ npm package was NOT published (latest on npm is still 0.1.43)
|
|
9
|
+
3. 🔄 Subsequent workflow runs skip publish steps because:
|
|
10
|
+
- `release-please-manifest.json` shows version 0.1.44
|
|
11
|
+
- `package.json` shows version 0.1.44
|
|
12
|
+
- When these match, release-please sets `release_created=false`
|
|
13
|
+
- All publish steps have condition `if: steps.release.outputs.release_created`
|
|
14
|
+
|
|
15
|
+
## Solution Implemented
|
|
16
|
+
|
|
17
|
+
### 1. Enhanced Workflow with Manual Dispatch
|
|
18
|
+
Added `workflow_dispatch` trigger to `.github/workflows/release-please.yml` that allows:
|
|
19
|
+
- **Normal operation**: Push to main → automatic release-please flow (unchanged)
|
|
20
|
+
- **Manual re-publish**: Specify a tag → checkout and publish that specific tag to npm
|
|
21
|
+
|
|
22
|
+
### 2. New Manual Publish Job
|
|
23
|
+
Created a separate `manual-publish` job that:
|
|
24
|
+
- Only runs when a tag is manually specified via workflow_dispatch
|
|
25
|
+
- Checks out the exact code from the specified tag
|
|
26
|
+
- Installs dependencies, builds, and publishes to npm
|
|
27
|
+
- Does NOT create a new release or modify any version files
|
|
28
|
+
|
|
29
|
+
### 3. Comprehensive Documentation
|
|
30
|
+
Created `docs/release-troubleshooting.md` with:
|
|
31
|
+
- Explanation of the release process
|
|
32
|
+
- Common issues and their causes
|
|
33
|
+
- Step-by-step solutions for each scenario
|
|
34
|
+
- Verification commands
|
|
35
|
+
|
|
36
|
+
### 4. Updated CONTRIBUTING.md
|
|
37
|
+
Added reference to the troubleshooting guide in the Release Process section.
|
|
38
|
+
|
|
39
|
+
## How to Use (Immediate Action for 0.1.44)
|
|
40
|
+
|
|
41
|
+
To re-publish release 0.1.44 to npm:
|
|
42
|
+
|
|
43
|
+
1. Go to: https://github.com/Tiberriver256/mcp-server-azure-devops/actions/workflows/release-please.yml
|
|
44
|
+
2. Click "Run workflow" button (dropdown on the right side)
|
|
45
|
+
3. Enter tag: `mcp-server-azure-devops-v0.1.44`
|
|
46
|
+
4. Click "Run workflow"
|
|
47
|
+
|
|
48
|
+
The workflow will:
|
|
49
|
+
- ✅ Checkout tag `mcp-server-azure-devops-v0.1.44`
|
|
50
|
+
- ✅ Install dependencies with `npm ci`
|
|
51
|
+
- ✅ Build the package with `npm run build`
|
|
52
|
+
- ✅ Publish to npm with `npm publish --access public`
|
|
53
|
+
|
|
54
|
+
## Verification After Publishing
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
# Check if version 0.1.44 is now on npm
|
|
58
|
+
npm view @tiberriver256/mcp-server-azure-devops@0.1.44
|
|
59
|
+
|
|
60
|
+
# Check if latest version is now 0.1.44
|
|
61
|
+
npm view @tiberriver256/mcp-server-azure-devops version
|
|
62
|
+
|
|
63
|
+
# Try installing
|
|
64
|
+
npm install @tiberriver256/mcp-server-azure-devops@0.1.44
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
## Files Changed
|
|
68
|
+
|
|
69
|
+
1. `.github/workflows/release-please.yml`
|
|
70
|
+
- Added `workflow_dispatch` trigger with `tag` input
|
|
71
|
+
- Added conditional logic to `release-please` job
|
|
72
|
+
- Added new `manual-publish` job
|
|
73
|
+
|
|
74
|
+
2. `docs/release-troubleshooting.md` (NEW)
|
|
75
|
+
- Complete troubleshooting guide
|
|
76
|
+
- Step-by-step instructions
|
|
77
|
+
- Verification commands
|
|
78
|
+
|
|
79
|
+
3. `CONTRIBUTING.md`
|
|
80
|
+
- Added link to troubleshooting guide
|
|
81
|
+
|
|
82
|
+
## Benefits
|
|
83
|
+
|
|
84
|
+
1. **Immediate**: Can re-publish 0.1.44 right now without code changes
|
|
85
|
+
2. **No Side Effects**: Does not modify versions, CHANGELOG, or create new releases
|
|
86
|
+
3. **Reusable**: Can be used for any future failed publish scenarios
|
|
87
|
+
4. **Safe**: Only publishes the exact code from the specified tag
|
|
88
|
+
5. **Documented**: Clear instructions for maintainers
|
|
89
|
+
|
|
90
|
+
## Future Prevention
|
|
91
|
+
|
|
92
|
+
The enhanced workflow prevents this issue from recurring by providing a clear path to:
|
|
93
|
+
- Re-publish any failed release
|
|
94
|
+
- Manually publish hotfixes
|
|
95
|
+
- Recover from npm downtime or authentication issues
|
|
96
|
+
|
|
97
|
+
## Next Steps
|
|
98
|
+
|
|
99
|
+
1. ✅ Merge this PR to enable the manual workflow dispatch feature
|
|
100
|
+
2. ⏳ Run manual workflow with tag `mcp-server-azure-devops-v0.1.44`
|
|
101
|
+
3. ⏳ Verify package appears on npm
|
|
102
|
+
4. ⏳ Document success in this issue/PR
|
|
103
|
+
|
|
104
|
+
## Technical Details
|
|
105
|
+
|
|
106
|
+
### Workflow Logic
|
|
107
|
+
|
|
108
|
+
```yaml
|
|
109
|
+
on:
|
|
110
|
+
push:
|
|
111
|
+
branches: [main] # Normal automatic flow
|
|
112
|
+
workflow_dispatch: # Manual trigger
|
|
113
|
+
inputs:
|
|
114
|
+
tag:
|
|
115
|
+
description: 'Git tag to publish...'
|
|
116
|
+
required: false
|
|
117
|
+
|
|
118
|
+
jobs:
|
|
119
|
+
release-please:
|
|
120
|
+
# Only runs if NO tag specified (automatic flow)
|
|
121
|
+
if: ${{ github.event.inputs.tag == '' || github.event.inputs.tag == null }}
|
|
122
|
+
|
|
123
|
+
manual-publish:
|
|
124
|
+
# Only runs if tag IS specified (manual flow)
|
|
125
|
+
if: ${{ github.event.inputs.tag != '' && github.event.inputs.tag != null }}
|
|
126
|
+
steps:
|
|
127
|
+
- checkout tag
|
|
128
|
+
- npm ci
|
|
129
|
+
- npm run build
|
|
130
|
+
- npm publish
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### Why This Works
|
|
134
|
+
|
|
135
|
+
1. **Separate Job**: Manual publish is independent of release-please's state tracking
|
|
136
|
+
2. **Direct Checkout**: Uses git tag directly, bypassing manifest comparison
|
|
137
|
+
3. **No State Modification**: Doesn't touch version files or manifest
|
|
138
|
+
4. **Same Build Steps**: Uses identical build/publish steps as automatic flow
|
|
139
|
+
|
|
140
|
+
## Risk Assessment
|
|
141
|
+
|
|
142
|
+
- **Low Risk**: Changes only affect workflow triggering mechanism
|
|
143
|
+
- **No Code Changes**: TypeScript/JavaScript code remains unchanged
|
|
144
|
+
- **Backward Compatible**: Normal push-to-main flow unchanged
|
|
145
|
+
- **Well-Tested Pattern**: workflow_dispatch is a standard GitHub Actions feature
|
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
# Authentication Guide for Azure DevOps MCP Server
|
|
2
|
+
|
|
3
|
+
This guide provides detailed information about the authentication methods supported by the Azure DevOps MCP Server, including setup instructions, configuration examples, and troubleshooting tips.
|
|
4
|
+
|
|
5
|
+
## Supported Authentication Methods
|
|
6
|
+
|
|
7
|
+
The Azure DevOps MCP Server supports three authentication methods:
|
|
8
|
+
|
|
9
|
+
1. **Personal Access Token (PAT)** - Simple token-based authentication
|
|
10
|
+
2. **Azure Identity (DefaultAzureCredential)** - Flexible authentication using the Azure Identity SDK
|
|
11
|
+
3. **Azure CLI** - Authentication using your Azure CLI login
|
|
12
|
+
|
|
13
|
+
Azure DevOps Server (on-prem) supports PAT authentication only. Azure Identity and Azure CLI are supported for Azure DevOps Services.
|
|
14
|
+
|
|
15
|
+
## Method 1: Personal Access Token (PAT) Authentication
|
|
16
|
+
|
|
17
|
+
PAT authentication is the simplest method and works well for personal use or testing.
|
|
18
|
+
|
|
19
|
+
### Setup Instructions
|
|
20
|
+
|
|
21
|
+
1. **Generate a PAT in Azure DevOps**:
|
|
22
|
+
|
|
23
|
+
- Go to https://dev.azure.com/{your-organization}/_usersSettings/tokens
|
|
24
|
+
- Or click on your profile picture > Personal access tokens
|
|
25
|
+
- Select "+ New Token"
|
|
26
|
+
- Name your token (e.g., "MCP Server Access")
|
|
27
|
+
- Set an expiration date
|
|
28
|
+
- Select the following scopes:
|
|
29
|
+
- **Code**: Read & Write
|
|
30
|
+
- **Work Items**: Read & Write
|
|
31
|
+
- **Build**: Read & Execute
|
|
32
|
+
- **Project and Team**: Read
|
|
33
|
+
- **Graph**: Read
|
|
34
|
+
- **Release**: Read & Execute
|
|
35
|
+
- Click "Create" and copy the generated token
|
|
36
|
+
|
|
37
|
+
2. **Configure your `.env` file**:
|
|
38
|
+
```
|
|
39
|
+
AZURE_DEVOPS_AUTH_METHOD=pat
|
|
40
|
+
AZURE_DEVOPS_ORG_URL=https://dev.azure.com/your-organization
|
|
41
|
+
AZURE_DEVOPS_PAT=your-personal-access-token
|
|
42
|
+
AZURE_DEVOPS_DEFAULT_PROJECT=your-default-project
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Security Considerations
|
|
46
|
+
|
|
47
|
+
- PATs have an expiration date and will need to be renewed
|
|
48
|
+
- Store your PAT securely and never commit it to source control
|
|
49
|
+
- Consider using environment variables or a secrets manager in production
|
|
50
|
+
- Scope your PAT to only the permissions needed for your use case
|
|
51
|
+
|
|
52
|
+
## Method 2: Azure Identity Authentication (DefaultAzureCredential)
|
|
53
|
+
|
|
54
|
+
Azure Identity authentication uses the `DefaultAzureCredential` class from the `@azure/identity` package, which provides a simplified authentication experience by trying multiple credential types in sequence.
|
|
55
|
+
|
|
56
|
+
> Note: Azure Identity authentication is supported for Azure DevOps Services only.
|
|
57
|
+
|
|
58
|
+
### How DefaultAzureCredential Works
|
|
59
|
+
|
|
60
|
+
`DefaultAzureCredential` tries the following credential types in order:
|
|
61
|
+
|
|
62
|
+
1. Environment variables (EnvironmentCredential)
|
|
63
|
+
2. Managed Identity (ManagedIdentityCredential)
|
|
64
|
+
3. Azure CLI (AzureCliCredential)
|
|
65
|
+
4. Visual Studio Code (VisualStudioCodeCredential)
|
|
66
|
+
5. Azure PowerShell (AzurePowerShellCredential)
|
|
67
|
+
6. Interactive Browser (InteractiveBrowserCredential) - optional, disabled by default
|
|
68
|
+
|
|
69
|
+
This makes it ideal for applications that need to work in different environments (local development, Azure-hosted) without code changes.
|
|
70
|
+
|
|
71
|
+
### Setup Instructions
|
|
72
|
+
|
|
73
|
+
1. **Install the Azure Identity SDK**:
|
|
74
|
+
The SDK is already included as a dependency in the Azure DevOps MCP Server.
|
|
75
|
+
|
|
76
|
+
2. **Configure your `.env` file**:
|
|
77
|
+
|
|
78
|
+
```
|
|
79
|
+
AZURE_DEVOPS_AUTH_METHOD=azure-identity
|
|
80
|
+
AZURE_DEVOPS_ORG_URL=https://dev.azure.com/your-organization
|
|
81
|
+
AZURE_DEVOPS_DEFAULT_PROJECT=your-default-project
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
3. **Set up credentials based on your environment**:
|
|
85
|
+
|
|
86
|
+
a. **For service principals (client credentials)**:
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
AZURE_TENANT_ID=your-tenant-id
|
|
90
|
+
AZURE_CLIENT_ID=your-client-id
|
|
91
|
+
AZURE_CLIENT_SECRET=your-client-secret
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
b. **For managed identities in Azure**:
|
|
95
|
+
No additional configuration needed if running in Azure with a managed identity.
|
|
96
|
+
|
|
97
|
+
c. **For local development**:
|
|
98
|
+
|
|
99
|
+
- Log in with Azure CLI: `az login`
|
|
100
|
+
- Or use Visual Studio Code Azure Account extension
|
|
101
|
+
|
|
102
|
+
### Security Considerations
|
|
103
|
+
|
|
104
|
+
- Use managed identities in Azure for improved security
|
|
105
|
+
- For service principals, rotate client secrets regularly
|
|
106
|
+
- Store credentials securely using Azure Key Vault or environment variables
|
|
107
|
+
- Apply the principle of least privilege when assigning roles
|
|
108
|
+
|
|
109
|
+
## Method 3: Azure CLI Authentication
|
|
110
|
+
|
|
111
|
+
Azure CLI authentication uses the `AzureCliCredential` class from the `@azure/identity` package, which authenticates using the Azure CLI's logged-in account.
|
|
112
|
+
|
|
113
|
+
> Note: Azure CLI authentication is supported for Azure DevOps Services only.
|
|
114
|
+
|
|
115
|
+
### Setup Instructions
|
|
116
|
+
|
|
117
|
+
1. **Install the Azure CLI**:
|
|
118
|
+
|
|
119
|
+
- Follow the instructions at https://docs.microsoft.com/cli/azure/install-azure-cli
|
|
120
|
+
|
|
121
|
+
2. **Log in to Azure**:
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
az login
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
3. **Configure your `.env` file**:
|
|
128
|
+
```
|
|
129
|
+
AZURE_DEVOPS_AUTH_METHOD=azure-cli
|
|
130
|
+
AZURE_DEVOPS_ORG_URL=https://dev.azure.com/your-organization
|
|
131
|
+
AZURE_DEVOPS_DEFAULT_PROJECT=your-default-project
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Security Considerations
|
|
135
|
+
|
|
136
|
+
- Azure CLI authentication is best for local development
|
|
137
|
+
- Ensure your Azure CLI session is kept secure
|
|
138
|
+
- Log out when not in use: `az logout`
|
|
139
|
+
|
|
140
|
+
## Configuration Reference
|
|
141
|
+
|
|
142
|
+
| Variable | Description | Required | Default |
|
|
143
|
+
| ------------------------------ | ---------------------------------------------------------------------------------- | ---------------------------- | ---------------- |
|
|
144
|
+
| `AZURE_DEVOPS_AUTH_METHOD` | Authentication method (`pat`, `azure-identity`, or `azure-cli`) - case-insensitive | No | `azure-identity` |
|
|
145
|
+
| `AZURE_DEVOPS_ORG_URL` | Full URL to your Azure DevOps organization | Yes | - |
|
|
146
|
+
| `AZURE_DEVOPS_PAT` | Personal Access Token (for PAT auth) | Only with PAT auth | - |
|
|
147
|
+
| `AZURE_DEVOPS_DEFAULT_PROJECT` | Default project if none specified | No | - |
|
|
148
|
+
| `AZURE_DEVOPS_API_VERSION` | REST api-version for the tools that call the REST API directly (see [REST API version](#rest-api-version)) | No | `7.1` |
|
|
149
|
+
| `AZURE_TENANT_ID` | Azure AD tenant ID (for service principals) | Only with service principals | - |
|
|
150
|
+
| `AZURE_CLIENT_ID` | Azure AD application ID (for service principals) | Only with service principals | - |
|
|
151
|
+
| `AZURE_CLIENT_SECRET` | Azure AD client secret (for service principals) | Only with service principals | - |
|
|
152
|
+
| `LOG_LEVEL` | Logging level (debug, info, warn, error) | No | info |
|
|
153
|
+
|
|
154
|
+
### REST API version
|
|
155
|
+
|
|
156
|
+
Most tools go through `azure-devops-node-api`, which negotiates the REST
|
|
157
|
+
api-version with the server on its own. The pipeline, search and wiki tools call
|
|
158
|
+
the REST API directly and use `AZURE_DEVOPS_API_VERSION` instead.
|
|
159
|
+
|
|
160
|
+
The default `7.1` is what Azure DevOps Services expects. On-premises releases cap
|
|
161
|
+
out earlier, and a version above the cap is rejected with
|
|
162
|
+
`The requested REST API version of <x> is out of range for this server`:
|
|
163
|
+
|
|
164
|
+
| Product | Highest api-version |
|
|
165
|
+
| --------------------------- | ------------------- |
|
|
166
|
+
| Azure DevOps Services | `7.1` |
|
|
167
|
+
| Azure DevOps Server 2022 | `7.0` |
|
|
168
|
+
| Azure DevOps Server 2020 | `6.0` |
|
|
169
|
+
| Azure DevOps Server 2019 | `5.0` |
|
|
170
|
+
| Team Foundation Server 2018 | `4.0` |
|
|
171
|
+
|
|
172
|
+
See [REST API versioning](https://learn.microsoft.com/en-us/azure/devops/integrate/concepts/rest-api-versioning)
|
|
173
|
+
for the full matrix.
|
|
174
|
+
|
|
175
|
+
Known limitation: this is one value for every direct call. On `6.0` and older,
|
|
176
|
+
some areas (pipelines, search) only ship as `-preview.N` revisions while others
|
|
177
|
+
are stable at the same major version, so a single setting cannot satisfy both and
|
|
178
|
+
part of the tools may still be rejected on those releases.
|
|
179
|
+
|
|
180
|
+
## Troubleshooting Authentication Issues
|
|
181
|
+
|
|
182
|
+
### PAT Authentication Issues
|
|
183
|
+
|
|
184
|
+
1. **Invalid PAT**: Ensure your PAT hasn't expired and has the required scopes
|
|
185
|
+
|
|
186
|
+
- Error: `TF400813: The user 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' is not authorized to access this resource.`
|
|
187
|
+
- Solution: Generate a new PAT with the correct scopes
|
|
188
|
+
|
|
189
|
+
2. **Scope issues**: If receiving 403 errors, check if your PAT has the necessary permissions
|
|
190
|
+
|
|
191
|
+
- Error: `TF401027: You need the Git 'Read' permission to perform this action.`
|
|
192
|
+
- Solution: Update your PAT with the required scopes
|
|
193
|
+
|
|
194
|
+
3. **Organization access**: Verify your PAT has access to the organization specified in the URL
|
|
195
|
+
- Error: `TF400813: Resource not found for anonymous request.`
|
|
196
|
+
- Solution: Ensure your PAT has access to the specified organization
|
|
197
|
+
|
|
198
|
+
### Azure Identity Authentication Issues
|
|
199
|
+
|
|
200
|
+
1. **Missing credentials**: Ensure you have the necessary credentials configured
|
|
201
|
+
|
|
202
|
+
- Error: `CredentialUnavailableError: DefaultAzureCredential failed to retrieve a token`
|
|
203
|
+
- Solution: Check that you're logged in with Azure CLI or have environment variables set
|
|
204
|
+
|
|
205
|
+
2. **Permission issues**: Verify your identity has the necessary permissions
|
|
206
|
+
|
|
207
|
+
- Error: `AuthorizationFailed: The client does not have authorization to perform action`
|
|
208
|
+
- Solution: Assign the appropriate roles to your identity
|
|
209
|
+
|
|
210
|
+
3. **Token acquisition errors**: Check network connectivity and Azure AD endpoint availability
|
|
211
|
+
- Error: `ClientAuthError: Interaction required`
|
|
212
|
+
- Solution: Check network connectivity or use a different credential type
|
|
213
|
+
|
|
214
|
+
### Azure CLI Authentication Issues
|
|
215
|
+
|
|
216
|
+
1. **CLI not installed**: Ensure Azure CLI is installed and in your PATH
|
|
217
|
+
|
|
218
|
+
- Error: `AzureCliCredential authentication failed: Azure CLI not found`
|
|
219
|
+
- Solution: Install Azure CLI
|
|
220
|
+
|
|
221
|
+
2. **Not logged in**: Verify you're logged in to Azure CLI
|
|
222
|
+
|
|
223
|
+
- Error: `AzureCliCredential authentication failed: Please run 'az login'`
|
|
224
|
+
- Solution: Run `az login`
|
|
225
|
+
|
|
226
|
+
3. **Permission issues**: Check if your Azure CLI account has access to Azure DevOps
|
|
227
|
+
- Error: `TF400813: The user is not authorized to access this resource`
|
|
228
|
+
- Solution: Log in with an account that has access to Azure DevOps
|
|
229
|
+
|
|
230
|
+
## Best Practices
|
|
231
|
+
|
|
232
|
+
1. **Choose the right authentication method for your environment**:
|
|
233
|
+
|
|
234
|
+
- For local development: Azure CLI or PAT
|
|
235
|
+
- For CI/CD pipelines: PAT or service principal
|
|
236
|
+
- For Azure-hosted applications: Managed Identity
|
|
237
|
+
|
|
238
|
+
2. **Follow the principle of least privilege**:
|
|
239
|
+
|
|
240
|
+
- Only grant the permissions needed for your use case
|
|
241
|
+
- Regularly review and rotate credentials
|
|
242
|
+
|
|
243
|
+
3. **Secure your credentials**:
|
|
244
|
+
|
|
245
|
+
- Use environment variables or a secrets manager
|
|
246
|
+
- Never commit credentials to source control
|
|
247
|
+
- Set appropriate expiration dates for PATs
|
|
248
|
+
|
|
249
|
+
4. **Monitor and audit authentication**:
|
|
250
|
+
- Review Azure DevOps access logs
|
|
251
|
+
- Set up alerts for suspicious activity
|
|
252
|
+
|
|
253
|
+
## Examples
|
|
254
|
+
|
|
255
|
+
### Example 1: Local Development with PAT
|
|
256
|
+
|
|
257
|
+
```bash
|
|
258
|
+
# .env file
|
|
259
|
+
AZURE_DEVOPS_AUTH_METHOD=pat
|
|
260
|
+
AZURE_DEVOPS_ORG_URL=https://dev.azure.com/mycompany
|
|
261
|
+
AZURE_DEVOPS_PAT=abcdefghijklmnopqrstuvwxyz0123456789
|
|
262
|
+
AZURE_DEVOPS_DEFAULT_PROJECT=MyProject
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
### Example 2: Azure-hosted Application with Managed Identity
|
|
266
|
+
|
|
267
|
+
```bash
|
|
268
|
+
# .env file
|
|
269
|
+
AZURE_DEVOPS_AUTH_METHOD=azure-identity
|
|
270
|
+
AZURE_DEVOPS_ORG_URL=https://dev.azure.com/mycompany
|
|
271
|
+
AZURE_DEVOPS_DEFAULT_PROJECT=MyProject
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### Example 3: CI/CD Pipeline with Service Principal
|
|
275
|
+
|
|
276
|
+
```bash
|
|
277
|
+
# .env file
|
|
278
|
+
AZURE_DEVOPS_AUTH_METHOD=azure-identity
|
|
279
|
+
AZURE_DEVOPS_ORG_URL=https://dev.azure.com/mycompany
|
|
280
|
+
AZURE_DEVOPS_DEFAULT_PROJECT=MyProject
|
|
281
|
+
AZURE_TENANT_ID=00000000-0000-0000-0000-000000000000
|
|
282
|
+
AZURE_CLIENT_ID=11111111-1111-1111-1111-111111111111
|
|
283
|
+
AZURE_CLIENT_SECRET=your-client-secret
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
### Example 4: Local Development with Azure CLI
|
|
287
|
+
|
|
288
|
+
```bash
|
|
289
|
+
# .env file
|
|
290
|
+
AZURE_DEVOPS_AUTH_METHOD=azure-cli
|
|
291
|
+
AZURE_DEVOPS_ORG_URL=https://dev.azure.com/mycompany
|
|
292
|
+
AZURE_DEVOPS_DEFAULT_PROJECT=MyProject
|
|
293
|
+
```
|