naftiko: 1.0.0-alpha2 info: label: Atlassian Bitbucket API — Source - Repositories description: 'Atlassian Bitbucket API — Source - Repositories. 4 operations. Lead operation: Atlassian List Commits That Modified A File. Self-contained Naftiko capability covering one Atlassian business surface.' tags: - Atlassian - Source - Repositories created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: ATLASSIAN_API_KEY: ATLASSIAN_API_KEY capability: consumes: - type: http namespace: bitbucket-source-repositories baseUri: https://api.bitbucket.org/2.0 description: Atlassian Bitbucket API — Source - Repositories business capability. Self-contained, no shared references. resources: - name: repositories-workspace-repo_slug-filehistory-commit-path path: /repositories/{workspace}/{repo_slug}/filehistory/{commit}/{path} operations: - name: atlassianlistcommitsthatmodifiedafile method: GET description: Atlassian List Commits That Modified A File outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: renames in: query type: string description: When `true`, Bitbucket will follow the history of the file across - name: q in: query type: string description: Query string to narrow down the response as per - name: sort in: query type: string description: Name of a response property sort the result by as per - name: repositories-workspace-repo_slug-src path: /repositories/{workspace}/{repo_slug}/src operations: - name: atlassiangettherootdirectoryofthemainbranch method: GET description: Atlassian Get The Root Directory Of The Main Branch outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: format in: query type: string description: Instead of returning the file's contents, return the (json) meta data for it. - name: atlassiancreateacommitbyuploadingafile method: POST description: Atlassian Create A Commit By Uploading A File outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: message in: query type: string description: The commit message. When omitted, Bitbucket uses a canned string. - name: author in: query type: string description: The raw string to be used as the new commit's author. - name: parents in: query type: string description: A comma-separated list of SHA1s of the commits that should - name: files in: query type: string description: Optional field that declares the files that the request is - name: branch in: query type: string description: The name of the branch that the new commit should be - name: repositories-workspace-repo_slug-src-commit-path path: /repositories/{workspace}/{repo_slug}/src/{commit}/{path} operations: - name: atlassiangetfileordirectorycontents method: GET description: Atlassian Get File Or Directory Contents outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: format in: query type: string description: If 'meta' is provided, returns the (json) meta data for the contents of the file. If 'rendered' is provided, returns the contents of a non-binary file in HTML- - name: q in: query type: string description: Optional filter expression as per [filtering and sorting](/cloud/bitbucket/rest/intro/#filtering). - name: sort in: query type: string description: Optional sorting parameter as per [filtering and sorting](/cloud/bitbucket/rest/intro/#sorting-query-results). - name: max_depth in: query type: integer description: If provided, returns the contents of the repository and its subdirectories recursively until the specified max_depth of nested directories. When omitted, this d authentication: type: bearer token: '{{env.ATLASSIAN_API_KEY}}' exposes: - type: rest namespace: bitbucket-source-repositories-rest port: 8080 description: REST adapter for Atlassian Bitbucket API — Source - Repositories. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/repositories/{workspace}/{repo-slug}/filehistory/{commit}/{path} name: repositories-workspace-repo-slug-filehistory-commit-path description: REST surface for repositories-workspace-repo_slug-filehistory-commit-path. operations: - method: GET name: atlassianlistcommitsthatmodifiedafile description: Atlassian List Commits That Modified A File call: bitbucket-source-repositories.atlassianlistcommitsthatmodifiedafile with: renames: rest.renames q: rest.q sort: rest.sort outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/src name: repositories-workspace-repo-slug-src description: REST surface for repositories-workspace-repo_slug-src. operations: - method: GET name: atlassiangettherootdirectoryofthemainbranch description: Atlassian Get The Root Directory Of The Main Branch call: bitbucket-source-repositories.atlassiangettherootdirectoryofthemainbranch with: format: rest.format outputParameters: - type: object mapping: $. - method: POST name: atlassiancreateacommitbyuploadingafile description: Atlassian Create A Commit By Uploading A File call: bitbucket-source-repositories.atlassiancreateacommitbyuploadingafile with: message: rest.message author: rest.author parents: rest.parents files: rest.files branch: rest.branch outputParameters: - type: object mapping: $. - path: /v1/repositories/{workspace}/{repo-slug}/src/{commit}/{path} name: repositories-workspace-repo-slug-src-commit-path description: REST surface for repositories-workspace-repo_slug-src-commit-path. operations: - method: GET name: atlassiangetfileordirectorycontents description: Atlassian Get File Or Directory Contents call: bitbucket-source-repositories.atlassiangetfileordirectorycontents with: format: rest.format q: rest.q sort: rest.sort max_depth: rest.max_depth outputParameters: - type: object mapping: $. - type: mcp namespace: bitbucket-source-repositories-mcp port: 9090 transport: http description: MCP adapter for Atlassian Bitbucket API — Source - Repositories. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: atlassian-list-commits-that-modified description: Atlassian List Commits That Modified A File hints: readOnly: true destructive: false idempotent: true call: bitbucket-source-repositories.atlassianlistcommitsthatmodifiedafile with: renames: tools.renames q: tools.q sort: tools.sort outputParameters: - type: object mapping: $. - name: atlassian-get-root-directory-main description: Atlassian Get The Root Directory Of The Main Branch hints: readOnly: true destructive: false idempotent: true call: bitbucket-source-repositories.atlassiangettherootdirectoryofthemainbranch with: format: tools.format outputParameters: - type: object mapping: $. - name: atlassian-create-commit-uploading-file description: Atlassian Create A Commit By Uploading A File hints: readOnly: false destructive: false idempotent: false call: bitbucket-source-repositories.atlassiancreateacommitbyuploadingafile with: message: tools.message author: tools.author parents: tools.parents files: tools.files branch: tools.branch outputParameters: - type: object mapping: $. - name: atlassian-get-file-directory-contents description: Atlassian Get File Or Directory Contents hints: readOnly: true destructive: false idempotent: true call: bitbucket-source-repositories.atlassiangetfileordirectorycontents with: format: tools.format q: tools.q sort: tools.sort max_depth: tools.max_depth outputParameters: - type: object mapping: $.