Weave Net · Capability

Weave Net HTTP API — Peers

Weave Net HTTP API — Peers. 2 operations. Lead operation: Weave Net Connect to Peer. Self-contained Naftiko capability covering one Weave Net business surface.

Run with Naftiko Weave NetPeers

What You Can Do

POST
Connectpeer — Weave Net Connect to Peer
/v1/connect
DELETE
Removepeer — Weave Net Remove Peer
/v1/peer/{peername}

MCP Tools

weave-net-connect-peer

Weave Net Connect to Peer

weave-net-remove-peer

Weave Net Remove Peer

idempotent

Capability Spec

weave-net-peers.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Weave Net HTTP API — Peers
  description: 'Weave Net HTTP API — Peers. 2 operations. Lead operation: Weave Net Connect to Peer. Self-contained Naftiko
    capability covering one Weave Net business surface.'
  tags:
  - Weave Net
  - Peers
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WEAVE_NET_API_KEY: WEAVE_NET_API_KEY
capability:
  consumes:
  - type: http
    namespace: weave-net-peers
    baseUri: http://127.0.0.1:6784
    description: Weave Net HTTP API — Peers business capability. Self-contained, no shared references.
    resources:
    - name: connect
      path: /connect
      operations:
      - name: connectpeer
        method: POST
        description: Weave Net Connect to Peer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: peer-peerName
      path: /peer/{peerName}
      operations:
      - name: removepeer
        method: DELETE
        description: Weave Net Remove Peer
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: peerName
          in: path
          type: string
          description: Peer name or address
          required: true
  exposes:
  - type: rest
    namespace: weave-net-peers-rest
    port: 8080
    description: REST adapter for Weave Net HTTP API — Peers. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/connect
      name: connect
      description: REST surface for connect.
      operations:
      - method: POST
        name: connectpeer
        description: Weave Net Connect to Peer
        call: weave-net-peers.connectpeer
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/peer/{peername}
      name: peer-peername
      description: REST surface for peer-peerName.
      operations:
      - method: DELETE
        name: removepeer
        description: Weave Net Remove Peer
        call: weave-net-peers.removepeer
        with:
          peerName: rest.peerName
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: weave-net-peers-mcp
    port: 9090
    transport: http
    description: MCP adapter for Weave Net HTTP API — Peers. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: weave-net-connect-peer
      description: Weave Net Connect to Peer
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: weave-net-peers.connectpeer
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: weave-net-remove-peer
      description: Weave Net Remove Peer
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: weave-net-peers.removepeer
      with:
        peerName: tools.peerName
      outputParameters:
      - type: object
        mapping: $.