Ampersand · Capability

Ampersand public API — OAuth

Ampersand public API — OAuth. 2 operations. Lead operation: Ampersand Generate OAuth Authorization URL. Self-contained Naftiko capability covering one Ampersand business surface.

Run with Naftiko AmpersandOAuth

What You Can Do

POST
Oauthconnect — Ampersand Generate OAuth Authorization URL
/v1/oauth-connect
PATCH
Oauthupdate — Ampersand Generate OAuth Authorization URL for Existing Connection
/v1/projects/{projectidorname}/connections/connectionid-oauth-update

MCP Tools

ampersand-generate-oauth-authorization-url

Ampersand Generate OAuth Authorization URL

ampersand-generate-oauth-authorization-url-2

Ampersand Generate OAuth Authorization URL for Existing Connection

idempotent

Capability Spec

ampersand-oauth.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Ampersand public API — OAuth
  description: 'Ampersand public API — OAuth. 2 operations. Lead operation: Ampersand Generate OAuth Authorization URL. Self-contained
    Naftiko capability covering one Ampersand business surface.'
  tags:
  - Ampersand
  - OAuth
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AMPERSAND_API_KEY: AMPERSAND_API_KEY
capability:
  consumes:
  - type: http
    namespace: ampersand-oauth
    baseUri: https://api.withampersand.com/v1
    description: Ampersand public API — OAuth business capability. Self-contained, no shared references.
    resources:
    - name: oauth-connect
      path: /oauth-connect
      operations:
      - name: oauthconnect
        method: POST
        description: Ampersand Generate OAuth Authorization URL
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: projects-projectIdOrName-connections-connectionId}:oauth-update
      path: /projects/{projectIdOrName}/connections/{connectionId}:oauth-update
      operations:
      - name: oauthupdate
        method: PATCH
        description: Ampersand Generate OAuth Authorization URL for Existing Connection
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: projectIdOrName
          in: path
          type: string
          description: Ampersand project ID or name.
          required: true
        - name: connectionId
          in: path
          type: string
          description: The ID of the connection to update.
          required: true
    authentication:
      type: bearer
      token: '{{env.AMPERSAND_API_KEY}}'
  exposes:
  - type: rest
    namespace: ampersand-oauth-rest
    port: 8080
    description: REST adapter for Ampersand public API — OAuth. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/oauth-connect
      name: oauth-connect
      description: REST surface for oauth-connect.
      operations:
      - method: POST
        name: oauthconnect
        description: Ampersand Generate OAuth Authorization URL
        call: ampersand-oauth.oauthconnect
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/projects/{projectidorname}/connections/connectionid-oauth-update
      name: projects-projectidorname-connections-connectionid-oauth-update
      description: REST surface for projects-projectIdOrName-connections-connectionId}:oauth-update.
      operations:
      - method: PATCH
        name: oauthupdate
        description: Ampersand Generate OAuth Authorization URL for Existing Connection
        call: ampersand-oauth.oauthupdate
        with:
          projectIdOrName: rest.projectIdOrName
          connectionId: rest.connectionId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: ampersand-oauth-mcp
    port: 9090
    transport: http
    description: MCP adapter for Ampersand public API — OAuth. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: ampersand-generate-oauth-authorization-url
      description: Ampersand Generate OAuth Authorization URL
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: ampersand-oauth.oauthconnect
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: ampersand-generate-oauth-authorization-url-2
      description: Ampersand Generate OAuth Authorization URL for Existing Connection
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: ampersand-oauth.oauthupdate
      with:
        projectIdOrName: tools.projectIdOrName
        connectionId: tools.connectionId
      outputParameters:
      - type: object
        mapping: $.