naftiko: 1.0.0-alpha2 info: label: Viam Component — Sensor description: Read the latest measurements from any Viam generic sensor component. tags: [Viam, Component, Sensor] created: '2026-05-25' modified: '2026-05-25' binds: - namespace: env keys: VIAM_API_KEY: VIAM_API_KEY VIAM_MACHINE_ADDRESS: VIAM_MACHINE_ADDRESS capability: consumes: - type: http namespace: component-sensor baseUri: '{{env.VIAM_MACHINE_ADDRESS}}' description: Viam SensorService. resources: - name: get-readings path: /viam.component.sensor.v1.SensorService/GetReadings operations: - { name: getReadings, method: POST, description: Read latest sensor measurements., outputRawFormat: json, inputParameters: [{ name: body, in: body, type: object, required: true }] } authentication: type: apikey key: key value: '{{env.VIAM_API_KEY}}' placement: header exposes: - type: mcp namespace: component-sensor-mcp port: 9090 transport: http description: MCP adapter for sensor components. tools: - { name: viam-sensor-readings, description: Read sensor measurements., hints: { readOnly: true, destructive: false, idempotent: true }, call: component-sensor.getReadings, with: { body: tools.body } }