frp · Capability

frp Client Admin API — Lifecycle

frp Client Admin API — Lifecycle. 2 operations. Lead operation: Reload configuration. Self-contained Naftiko capability covering one Frp business surface.

Run with Naftiko FrpLifecycle

What You Can Do

GET
Reloadconfig — Reload configuration
/v1/api/reload
POST
Stopclient — Stop client
/v1/api/stop

MCP Tools

reload-configuration

Reload configuration

read-only idempotent
stop-client

Stop client

Capability Spec

client-admin-lifecycle.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: frp Client Admin API — Lifecycle
  description: 'frp Client Admin API — Lifecycle. 2 operations. Lead operation: Reload configuration. Self-contained Naftiko
    capability covering one Frp business surface.'
  tags:
  - Frp
  - Lifecycle
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FRP_API_KEY: FRP_API_KEY
capability:
  consumes:
  - type: http
    namespace: client-admin-lifecycle
    baseUri: http://{host}:{port}
    description: frp Client Admin API — Lifecycle business capability. Self-contained, no shared references.
    resources:
    - name: api-reload
      path: /api/reload
      operations:
      - name: reloadconfig
        method: GET
        description: Reload configuration
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: api-stop
      path: /api/stop
      operations:
      - name: stopclient
        method: POST
        description: Stop client
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: basic
      username: '{{env.FRP_USER}}'
      password: '{{env.FRP_PASS}}'
  exposes:
  - type: rest
    namespace: client-admin-lifecycle-rest
    port: 8080
    description: REST adapter for frp Client Admin API — Lifecycle. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/api/reload
      name: api-reload
      description: REST surface for api-reload.
      operations:
      - method: GET
        name: reloadconfig
        description: Reload configuration
        call: client-admin-lifecycle.reloadconfig
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/api/stop
      name: api-stop
      description: REST surface for api-stop.
      operations:
      - method: POST
        name: stopclient
        description: Stop client
        call: client-admin-lifecycle.stopclient
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: client-admin-lifecycle-mcp
    port: 9090
    transport: http
    description: MCP adapter for frp Client Admin API — Lifecycle. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: reload-configuration
      description: Reload configuration
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: client-admin-lifecycle.reloadconfig
      outputParameters:
      - type: object
        mapping: $.
    - name: stop-client
      description: Stop client
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: client-admin-lifecycle.stopclient
      outputParameters:
      - type: object
        mapping: $.