Juniper Networks · Capability

Juniper Networks Juniper Mist API — Self

Juniper Networks Juniper Mist API — Self. 3 operations. Lead operation: Juniper Networks Get current user info. Self-contained Naftiko capability covering one Juniper business surface.

Run with Naftiko JuniperSelf

What You Can Do

GET
Getself — Juniper Networks Get current user info
/v1/self
GET
Listapitokens — Juniper Networks List API tokens
/v1/self/apitokens
POST
Createapitoken — Juniper Networks Create API token
/v1/self/apitokens

MCP Tools

juniper-networks-get-current-user

Juniper Networks Get current user info

read-only idempotent
juniper-networks-list-api-tokens

Juniper Networks List API tokens

read-only idempotent
juniper-networks-create-api-token

Juniper Networks Create API token

Capability Spec

mist-self.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Juniper Networks Juniper Mist API — Self
  description: 'Juniper Networks Juniper Mist API — Self. 3 operations. Lead operation: Juniper Networks Get current user
    info. Self-contained Naftiko capability covering one Juniper business surface.'
  tags:
  - Juniper
  - Self
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    JUNIPER_API_KEY: JUNIPER_API_KEY
capability:
  consumes:
  - type: http
    namespace: mist-self
    baseUri: https://api.mist.com/api/v1
    description: Juniper Networks Juniper Mist API — Self business capability. Self-contained, no shared references.
    resources:
    - name: self
      path: /self
      operations:
      - name: getself
        method: GET
        description: Juniper Networks Get current user info
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: self-apitokens
      path: /self/apitokens
      operations:
      - name: listapitokens
        method: GET
        description: Juniper Networks List API tokens
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createapitoken
        method: POST
        description: Juniper Networks Create API 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.JUNIPER_API_KEY}}'
  exposes:
  - type: rest
    namespace: mist-self-rest
    port: 8080
    description: REST adapter for Juniper Networks Juniper Mist API — Self. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/self
      name: self
      description: REST surface for self.
      operations:
      - method: GET
        name: getself
        description: Juniper Networks Get current user info
        call: mist-self.getself
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/self/apitokens
      name: self-apitokens
      description: REST surface for self-apitokens.
      operations:
      - method: GET
        name: listapitokens
        description: Juniper Networks List API tokens
        call: mist-self.listapitokens
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createapitoken
        description: Juniper Networks Create API token
        call: mist-self.createapitoken
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: mist-self-mcp
    port: 9090
    transport: http
    description: MCP adapter for Juniper Networks Juniper Mist API — Self. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: juniper-networks-get-current-user
      description: Juniper Networks Get current user info
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: mist-self.getself
      outputParameters:
      - type: object
        mapping: $.
    - name: juniper-networks-list-api-tokens
      description: Juniper Networks List API tokens
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: mist-self.listapitokens
      outputParameters:
      - type: object
        mapping: $.
    - name: juniper-networks-create-api-token
      description: Juniper Networks Create API token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: mist-self.createapitoken
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.