Microsoft · Capability

Microsoft Azure DevOps REST API — Git

Microsoft Azure DevOps REST API — Git. 2 operations. Lead operation: Microsoft List repositories. Self-contained Naftiko capability covering one Microsoft business surface.

Run with Naftiko MicrosoftGit

What You Can Do

GET
Listrepositories — Microsoft List repositories
/v1/{project}/apis/git/repositories
POST
Createrepository — Microsoft Create a repository
/v1/{project}/apis/git/repositories

MCP Tools

microsoft-list-repositories

Microsoft List repositories

read-only idempotent
microsoft-create-repository

Microsoft Create a repository

Capability Spec

azure-devops-git.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Azure DevOps REST API — Git
  description: 'Microsoft Azure DevOps REST API — Git. 2 operations. Lead operation: Microsoft List repositories. Self-contained
    Naftiko capability covering one Microsoft business surface.'
  tags:
  - Microsoft
  - Git
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_API_KEY: MICROSOFT_API_KEY
capability:
  consumes:
  - type: http
    namespace: azure-devops-git
    baseUri: https://dev.azure.com/{organization}
    description: Microsoft Azure DevOps REST API — Git business capability. Self-contained, no shared references.
    resources:
    - name: project-_apis-git-repositories
      path: /{project}/_apis/git/repositories
      operations:
      - name: listrepositories
        method: GET
        description: Microsoft List repositories
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createrepository
        method: POST
        description: Microsoft Create a repository
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.MICROSOFT_API_KEY}}'
  exposes:
  - type: rest
    namespace: azure-devops-git-rest
    port: 8080
    description: REST adapter for Microsoft Azure DevOps REST API — Git. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/{project}/apis/git/repositories
      name: project-apis-git-repositories
      description: REST surface for project-_apis-git-repositories.
      operations:
      - method: GET
        name: listrepositories
        description: Microsoft List repositories
        call: azure-devops-git.listrepositories
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createrepository
        description: Microsoft Create a repository
        call: azure-devops-git.createrepository
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: azure-devops-git-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Azure DevOps REST API — Git. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: microsoft-list-repositories
      description: Microsoft List repositories
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: azure-devops-git.listrepositories
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-create-repository
      description: Microsoft Create a repository
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: azure-devops-git.createrepository
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.