sitecore · Capability

Sitecore Discover API — Authentication

Sitecore Discover API — Authentication. 2 operations. Lead operation: Renew an access token. Self-contained Naftiko capability covering one Sitecore business surface.

Run with Naftiko SitecoreAuthentication

What You Can Do

PUT
Renewaccesstoken — Renew an access token
/v1/account/1/access-token
POST
Createaccesstoken — Create an access token
/v1/account/1/access-token

MCP Tools

renew-access-token

Renew an access token

idempotent
create-access-token

Create an access token

Capability Spec

discover-authentication.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Sitecore Discover API — Authentication
  description: 'Sitecore Discover API — Authentication. 2 operations. Lead operation: Renew an access token. Self-contained
    Naftiko capability covering one Sitecore business surface.'
  tags:
  - Sitecore
  - Authentication
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    SITECORE_API_KEY: SITECORE_API_KEY
capability:
  consumes:
  - type: http
    namespace: discover-authentication
    baseUri: https://{subdomain}.rfksrv.com
    description: Sitecore Discover API — Authentication business capability. Self-contained, no shared references.
    resources:
    - name: account-1-access-token
      path: /account/1/access-token
      operations:
      - name: renewaccesstoken
        method: PUT
        description: Renew an access token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: createaccesstoken
        method: POST
        description: Create an access token
        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.SITECORE_API_KEY}}'
  exposes:
  - type: rest
    namespace: discover-authentication-rest
    port: 8080
    description: REST adapter for Sitecore Discover API — Authentication. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/account/1/access-token
      name: account-1-access-token
      description: REST surface for account-1-access-token.
      operations:
      - method: PUT
        name: renewaccesstoken
        description: Renew an access token
        call: discover-authentication.renewaccesstoken
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createaccesstoken
        description: Create an access token
        call: discover-authentication.createaccesstoken
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: discover-authentication-mcp
    port: 9090
    transport: http
    description: MCP adapter for Sitecore Discover API — Authentication. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: renew-access-token
      description: Renew an access token
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: discover-authentication.renewaccesstoken
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: create-access-token
      description: Create an access token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: discover-authentication.createaccesstoken
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.