naftiko: 1.0.0-alpha2 info: label: MBTA V3 API — RoutePatterns description: 'MBTA V3 API — RoutePatterns. 2 operations. Lead operation: List route patterns. Self-contained Naftiko capability covering one Mbta business surface.' tags: - Mbta - RoutePatterns 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-routepatterns baseUri: https://api-v3.mbta.com description: MBTA V3 API — RoutePatterns business capability. Self-contained, no shared references. resources: - name: route_patterns path: /route_patterns operations: - name: listroutepatterns method: GET description: List route patterns outputRawFormat: json outputParameters: - name: result type: object value: $. - name: route_patterns-id path: /route_patterns/{id} operations: - name: getroutepattern method: GET description: Get route pattern 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-routepatterns-rest port: 8080 description: REST adapter for MBTA V3 API — RoutePatterns. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/route-patterns name: route-patterns description: REST surface for route_patterns. operations: - method: GET name: listroutepatterns description: List route patterns call: mbta-v3-routepatterns.listroutepatterns outputParameters: - type: object mapping: $. - path: /v1/route-patterns/{id} name: route-patterns-id description: REST surface for route_patterns-id. operations: - method: GET name: getroutepattern description: Get route pattern call: mbta-v3-routepatterns.getroutepattern outputParameters: - type: object mapping: $. - type: mcp namespace: mbta-v3-routepatterns-mcp port: 9090 transport: http description: MCP adapter for MBTA V3 API — RoutePatterns. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-route-patterns description: List route patterns hints: readOnly: true destructive: false idempotent: true call: mbta-v3-routepatterns.listroutepatterns outputParameters: - type: object mapping: $. - name: get-route-pattern description: Get route pattern hints: readOnly: true destructive: false idempotent: true call: mbta-v3-routepatterns.getroutepattern outputParameters: - type: object mapping: $.