naftiko: 1.0.0-alpha2 info: label: SharePoint REST API — Sites description: 'SharePoint REST API — Sites. 2 operations. Lead operation: SharePoint Get Web. Self-contained Naftiko capability covering one Sharepoint business surface.' tags: - Sharepoint - Sites created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SHAREPOINT_API_KEY: SHAREPOINT_API_KEY capability: consumes: - type: http namespace: rest-sites baseUri: https://{site_url}/_api description: SharePoint REST API — Sites business capability. Self-contained, no shared references. resources: - name: web path: /web operations: - name: getweb method: GET description: SharePoint Get Web outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: $select in: query type: string description: Comma-separated list of properties to return. - name: web-title path: /web/title operations: - name: getwebtitle method: GET description: SharePoint Get Web Title outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.SHAREPOINT_API_KEY}}' exposes: - type: rest namespace: rest-sites-rest port: 8080 description: REST adapter for SharePoint REST API — Sites. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/web name: web description: REST surface for web. operations: - method: GET name: getweb description: SharePoint Get Web call: rest-sites.getweb with: $select: rest.$select outputParameters: - type: object mapping: $. - path: /v1/web/title name: web-title description: REST surface for web-title. operations: - method: GET name: getwebtitle description: SharePoint Get Web Title call: rest-sites.getwebtitle outputParameters: - type: object mapping: $. - type: mcp namespace: rest-sites-mcp port: 9090 transport: http description: MCP adapter for SharePoint REST API — Sites. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: sharepoint-get-web description: SharePoint Get Web hints: readOnly: true destructive: false idempotent: true call: rest-sites.getweb with: $select: tools.$select outputParameters: - type: object mapping: $. - name: sharepoint-get-web-title description: SharePoint Get Web Title hints: readOnly: true destructive: false idempotent: true call: rest-sites.getwebtitle outputParameters: - type: object mapping: $.