naftiko: 1.0.0-alpha2 info: label: Salesforce — Comments description: 'Salesforce — Comments. 4 operations. Lead operation: Salesforce Comment. Self-contained Naftiko capability covering one Salesforce business surface.' tags: - Salesforce - Comments created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SALESFORCE_API_KEY: SALESFORCE_API_KEY capability: consumes: - type: http namespace: salesforce-comments baseUri: https://login.salesforce.com description: Salesforce — Comments business capability. Self-contained, no shared references. resources: - name: data-v64.0-chatter-comments-COMMENT_ID path: /data/v64.0/chatter/comments/{COMMENT_ID} operations: - name: comment method: GET description: Salesforce Comment outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: COMMENT_ID in: path type: string required: true - name: Content-Type in: header type: string required: true - name: commentedit method: PATCH description: Salesforce Comment - Edit outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: COMMENT_ID in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: true - name: commentdelete method: DELETE description: Salesforce Comment - Delete outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: COMMENT_ID in: path type: string required: true - name: data-v64.0-chatter-feed-elements-FEED_ELEMENT_ID-capabilities-comments-items path: /data/v64.0/chatter/feed-elements/{FEED_ELEMENT_ID}/capabilities/comments/items operations: - name: feedelementscapabilitycommentsitems method: POST description: Salesforce Feed Elements Capability, Comments Items outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: text in: query type: string required: true - name: FEED_ELEMENT_ID in: path type: string required: true authentication: type: bearer token: '{{env.SALESFORCE_API_KEY}}' exposes: - type: rest namespace: salesforce-comments-rest port: 8080 description: REST adapter for Salesforce — Comments. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/data/v64-0/chatter/comments/{comment-id} name: data-v64-0-chatter-comments-comment-id description: REST surface for data-v64.0-chatter-comments-COMMENT_ID. operations: - method: GET name: comment description: Salesforce Comment call: salesforce-comments.comment with: COMMENT_ID: rest.COMMENT_ID Content-Type: rest.Content-Type outputParameters: - type: object mapping: $. - method: PATCH name: commentedit description: Salesforce Comment - Edit call: salesforce-comments.commentedit with: COMMENT_ID: rest.COMMENT_ID body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: commentdelete description: Salesforce Comment - Delete call: salesforce-comments.commentdelete with: COMMENT_ID: rest.COMMENT_ID outputParameters: - type: object mapping: $. - path: /v1/data/v64-0/chatter/feed-elements/{feed-element-id}/capabilities/comments/items name: data-v64-0-chatter-feed-elements-feed-element-id-capabilities-comments-items description: REST surface for data-v64.0-chatter-feed-elements-FEED_ELEMENT_ID-capabilities-comments-items. operations: - method: POST name: feedelementscapabilitycommentsitems description: Salesforce Feed Elements Capability, Comments Items call: salesforce-comments.feedelementscapabilitycommentsitems with: text: rest.text FEED_ELEMENT_ID: rest.FEED_ELEMENT_ID outputParameters: - type: object mapping: $. - type: mcp namespace: salesforce-comments-mcp port: 9090 transport: http description: MCP adapter for Salesforce — Comments. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: salesforce-comment description: Salesforce Comment hints: readOnly: true destructive: false idempotent: true call: salesforce-comments.comment with: COMMENT_ID: tools.COMMENT_ID Content-Type: tools.Content-Type outputParameters: - type: object mapping: $. - name: salesforce-comment-edit description: Salesforce Comment - Edit hints: readOnly: false destructive: false idempotent: true call: salesforce-comments.commentedit with: COMMENT_ID: tools.COMMENT_ID body: tools.body outputParameters: - type: object mapping: $. - name: salesforce-comment-delete description: Salesforce Comment - Delete hints: readOnly: false destructive: true idempotent: true call: salesforce-comments.commentdelete with: COMMENT_ID: tools.COMMENT_ID outputParameters: - type: object mapping: $. - name: salesforce-feed-elements-capability-comments description: Salesforce Feed Elements Capability, Comments Items hints: readOnly: false destructive: false idempotent: false call: salesforce-comments.feedelementscapabilitycommentsitems with: text: tools.text FEED_ELEMENT_ID: tools.FEED_ELEMENT_ID outputParameters: - type: object mapping: $.