naftiko: 1.0.0-alpha2 info: label: Insomnia Mock Server API — Mock Servers description: 'Insomnia Mock Server API — Mock Servers. 5 operations. Lead operation: Insomnia List Mock Servers. Self-contained Naftiko capability covering one Insomnia business surface.' tags: - Insomnia - Mock Servers created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: INSOMNIA_API_KEY: INSOMNIA_API_KEY capability: consumes: - type: http namespace: mock-server-mock-servers baseUri: https://mock.insomnia.rest description: Insomnia Mock Server API — Mock Servers business capability. Self-contained, no shared references. resources: - name: mock-servers path: /mock-servers operations: - name: listmockservers method: GET description: Insomnia List Mock Servers outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: workspaceId in: query type: string description: Filter mock servers by workspace identifier. - name: createmockserver method: POST description: Insomnia Create Mock Server outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: mock-servers-mockServerId path: /mock-servers/{mockServerId} operations: - name: getmockserver method: GET description: Insomnia Get Mock Server outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updatemockserver method: PUT description: Insomnia Update Mock Server outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: deletemockserver method: DELETE description: Insomnia Delete Mock Server outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.INSOMNIA_API_KEY}}' exposes: - type: rest namespace: mock-server-mock-servers-rest port: 8080 description: REST adapter for Insomnia Mock Server API — Mock Servers. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/mock-servers name: mock-servers description: REST surface for mock-servers. operations: - method: GET name: listmockservers description: Insomnia List Mock Servers call: mock-server-mock-servers.listmockservers with: workspaceId: rest.workspaceId outputParameters: - type: object mapping: $. - method: POST name: createmockserver description: Insomnia Create Mock Server call: mock-server-mock-servers.createmockserver with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/mock-servers/{mockserverid} name: mock-servers-mockserverid description: REST surface for mock-servers-mockServerId. operations: - method: GET name: getmockserver description: Insomnia Get Mock Server call: mock-server-mock-servers.getmockserver outputParameters: - type: object mapping: $. - method: PUT name: updatemockserver description: Insomnia Update Mock Server call: mock-server-mock-servers.updatemockserver with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deletemockserver description: Insomnia Delete Mock Server call: mock-server-mock-servers.deletemockserver outputParameters: - type: object mapping: $. - type: mcp namespace: mock-server-mock-servers-mcp port: 9090 transport: http description: MCP adapter for Insomnia Mock Server API — Mock Servers. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: insomnia-list-mock-servers description: Insomnia List Mock Servers hints: readOnly: true destructive: false idempotent: true call: mock-server-mock-servers.listmockservers with: workspaceId: tools.workspaceId outputParameters: - type: object mapping: $. - name: insomnia-create-mock-server description: Insomnia Create Mock Server hints: readOnly: false destructive: false idempotent: false call: mock-server-mock-servers.createmockserver with: body: tools.body outputParameters: - type: object mapping: $. - name: insomnia-get-mock-server description: Insomnia Get Mock Server hints: readOnly: true destructive: false idempotent: true call: mock-server-mock-servers.getmockserver outputParameters: - type: object mapping: $. - name: insomnia-update-mock-server description: Insomnia Update Mock Server hints: readOnly: false destructive: false idempotent: true call: mock-server-mock-servers.updatemockserver with: body: tools.body outputParameters: - type: object mapping: $. - name: insomnia-delete-mock-server description: Insomnia Delete Mock Server hints: readOnly: false destructive: true idempotent: true call: mock-server-mock-servers.deletemockserver outputParameters: - type: object mapping: $.