naftiko: 1.0.0-alpha2 info: label: Library of Congress loc.gov JSON API — Resources description: 'Library of Congress loc.gov JSON API — Resources. 1 operations. Lead operation: Get Resource. Self-contained Naftiko capability covering one Library Of Congress business surface.' tags: - Library Of Congress - Resources created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: LIBRARY_OF_CONGRESS_API_KEY: LIBRARY_OF_CONGRESS_API_KEY capability: consumes: - type: http namespace: loc-gov-json-resources baseUri: https://www.loc.gov description: Library of Congress loc.gov JSON API — Resources business capability. Self-contained, no shared references. resources: - name: resource-resourceId path: /resource/{resourceId}/ operations: - name: getresource method: GET description: Get Resource outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: resourceId in: path type: string required: true - name: fo in: query type: string exposes: - type: rest namespace: loc-gov-json-resources-rest port: 8080 description: REST adapter for Library of Congress loc.gov JSON API — Resources. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/resource/{resourceid} name: resource-resourceid description: REST surface for resource-resourceId. operations: - method: GET name: getresource description: Get Resource call: loc-gov-json-resources.getresource with: resourceId: rest.resourceId fo: rest.fo outputParameters: - type: object mapping: $. - type: mcp namespace: loc-gov-json-resources-mcp port: 9090 transport: http description: MCP adapter for Library of Congress loc.gov JSON API — Resources. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-resource description: Get Resource hints: readOnly: true destructive: false idempotent: true call: loc-gov-json-resources.getresource with: resourceId: tools.resourceId fo: tools.fo outputParameters: - type: object mapping: $.