naftiko: 1.0.0-alpha2 info: label: MBTA V3 API — Stops description: 'MBTA V3 API — Stops. 2 operations. Lead operation: List stops. Self-contained Naftiko capability covering one Mbta business surface.' tags: - Mbta - Stops created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MBTA_API_KEY: MBTA_API_KEY capability: consumes: - type: http namespace: mbta-v3-stops baseUri: https://api-v3.mbta.com description: MBTA V3 API — Stops business capability. Self-contained, no shared references. resources: - name: stops path: /stops operations: - name: liststops method: GET description: List stops outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: filter[latitude] in: query type: number - name: filter[longitude] in: query type: number - name: filter[radius] in: query type: number - name: filter[route] in: query type: string - name: filter[route_type] in: query type: string - name: filter[location_type] in: query type: string - name: stops-id path: /stops/{id} operations: - name: getstop method: GET description: Get stop outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: apikey key: x-api-key value: '{{env.MBTA_API_KEY}}' placement: header exposes: - type: rest namespace: mbta-v3-stops-rest port: 8080 description: REST adapter for MBTA V3 API — Stops. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/stops name: stops description: REST surface for stops. operations: - method: GET name: liststops description: List stops call: mbta-v3-stops.liststops with: filter[latitude]: rest.filter[latitude] filter[longitude]: rest.filter[longitude] filter[radius]: rest.filter[radius] filter[route]: rest.filter[route] filter[route_type]: rest.filter[route_type] filter[location_type]: rest.filter[location_type] outputParameters: - type: object mapping: $. - path: /v1/stops/{id} name: stops-id description: REST surface for stops-id. operations: - method: GET name: getstop description: Get stop call: mbta-v3-stops.getstop outputParameters: - type: object mapping: $. - type: mcp namespace: mbta-v3-stops-mcp port: 9090 transport: http description: MCP adapter for MBTA V3 API — Stops. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-stops description: List stops hints: readOnly: true destructive: false idempotent: true call: mbta-v3-stops.liststops with: filter[latitude]: tools.filter[latitude] filter[longitude]: tools.filter[longitude] filter[radius]: tools.filter[radius] filter[route]: tools.filter[route] filter[route_type]: tools.filter[route_type] filter[location_type]: tools.filter[location_type] outputParameters: - type: object mapping: $. - name: get-stop description: Get stop hints: readOnly: true destructive: false idempotent: true call: mbta-v3-stops.getstop outputParameters: - type: object mapping: $.