tidb · Capability

TiDB HTTP API — Settings

TiDB HTTP API — Settings. 2 operations. Lead operation: Get server settings. Self-contained Naftiko capability covering one Tidb business surface.

Run with Naftiko TidbSettings

What You Can Do

GET
Getsettings — Get server settings
/v1/settings
POST
Updatesettings — Update server settings
/v1/settings

MCP Tools

get-server-settings

Get server settings

read-only idempotent
update-server-settings

Update server settings

Capability Spec

http-settings.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: TiDB HTTP API — Settings
  description: 'TiDB HTTP API — Settings. 2 operations. Lead operation: Get server settings. Self-contained Naftiko capability
    covering one Tidb business surface.'
  tags:
  - Tidb
  - Settings
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TIDB_API_KEY: TIDB_API_KEY
capability:
  consumes:
  - type: http
    namespace: http-settings
    baseUri: http://localhost:10080
    description: TiDB HTTP API — Settings business capability. Self-contained, no shared references.
    resources:
    - name: settings
      path: /settings
      operations:
      - name: getsettings
        method: GET
        description: Get server settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updatesettings
        method: POST
        description: Update server settings
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
  exposes:
  - type: rest
    namespace: http-settings-rest
    port: 8080
    description: REST adapter for TiDB HTTP API — Settings. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/settings
      name: settings
      description: REST surface for settings.
      operations:
      - method: GET
        name: getsettings
        description: Get server settings
        call: http-settings.getsettings
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: updatesettings
        description: Update server settings
        call: http-settings.updatesettings
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: http-settings-mcp
    port: 9090
    transport: http
    description: MCP adapter for TiDB HTTP API — Settings. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-server-settings
      description: Get server settings
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: http-settings.getsettings
      outputParameters:
      - type: object
        mapping: $.
    - name: update-server-settings
      description: Update server settings
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: http-settings.updatesettings
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.