Streamlit · Capability

Streamlit Community Cloud API — Secrets

Streamlit Community Cloud API — Secrets. 2 operations. Lead operation: Get App Secrets. Self-contained Naftiko capability covering one Streamlit business surface.

Run with Naftiko StreamlitSecrets

What You Can Do

GET
Getappsecrets — Get App Secrets
/v1/apps/{appid}/secrets
PUT
Updateappsecrets — Update App Secrets
/v1/apps/{appid}/secrets

MCP Tools

get-app-secrets

Get App Secrets

read-only idempotent
update-app-secrets

Update App Secrets

idempotent

Capability Spec

cloud-secrets.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Streamlit Community Cloud API — Secrets
  description: 'Streamlit Community Cloud API — Secrets. 2 operations. Lead operation: Get App Secrets. Self-contained Naftiko
    capability covering one Streamlit business surface.'
  tags:
  - Streamlit
  - Secrets
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STREAMLIT_API_KEY: STREAMLIT_API_KEY
capability:
  consumes:
  - type: http
    namespace: cloud-secrets
    baseUri: https://api.streamlit.io/v1
    description: Streamlit Community Cloud API — Secrets business capability. Self-contained, no shared references.
    resources:
    - name: apps-appId-secrets
      path: /apps/{appId}/secrets
      operations:
      - name: getappsecrets
        method: GET
        description: Get App Secrets
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateappsecrets
        method: PUT
        description: Update App Secrets
        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.STREAMLIT_API_KEY}}'
  exposes:
  - type: rest
    namespace: cloud-secrets-rest
    port: 8080
    description: REST adapter for Streamlit Community Cloud API — Secrets. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/apps/{appid}/secrets
      name: apps-appid-secrets
      description: REST surface for apps-appId-secrets.
      operations:
      - method: GET
        name: getappsecrets
        description: Get App Secrets
        call: cloud-secrets.getappsecrets
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateappsecrets
        description: Update App Secrets
        call: cloud-secrets.updateappsecrets
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: cloud-secrets-mcp
    port: 9090
    transport: http
    description: MCP adapter for Streamlit Community Cloud API — Secrets. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-app-secrets
      description: Get App Secrets
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: cloud-secrets.getappsecrets
      outputParameters:
      - type: object
        mapping: $.
    - name: update-app-secrets
      description: Update App Secrets
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: cloud-secrets.updateappsecrets
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.