naftiko: 1.0.0-alpha2 info: label: CodeProject.AI Server API — Text description: 'CodeProject.AI Server API — Text. 2 operations. Lead operation: Sentiment analysis. Self-contained Naftiko capability covering one Codeproject business surface.' tags: - Codeproject - Text created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: CODEPROJECT_API_KEY: CODEPROJECT_API_KEY capability: consumes: - type: http namespace: ai-server-text baseUri: http://localhost:32168 description: CodeProject.AI Server API — Text business capability. Self-contained, no shared references. resources: - name: v1-text-sentiment path: /v1/text/sentiment operations: - name: analyzesentiment method: POST description: Sentiment analysis outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: v1-text-summarize path: /v1/text/summarize operations: - name: summarizetext method: POST description: Summarize text outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: X-Disabled value: '{{env.CODEPROJECT_API_KEY}}' placement: header exposes: - type: rest namespace: ai-server-text-rest port: 8080 description: REST adapter for CodeProject.AI Server API — Text. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/v1/text/sentiment name: v1-text-sentiment description: REST surface for v1-text-sentiment. operations: - method: POST name: analyzesentiment description: Sentiment analysis call: ai-server-text.analyzesentiment with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/v1/text/summarize name: v1-text-summarize description: REST surface for v1-text-summarize. operations: - method: POST name: summarizetext description: Summarize text call: ai-server-text.summarizetext with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: ai-server-text-mcp port: 9090 transport: http description: MCP adapter for CodeProject.AI Server API — Text. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: sentiment-analysis description: Sentiment analysis hints: readOnly: false destructive: false idempotent: false call: ai-server-text.analyzesentiment with: body: tools.body outputParameters: - type: object mapping: $. - name: summarize-text description: Summarize text hints: readOnly: false destructive: false idempotent: false call: ai-server-text.summarizetext with: body: tools.body outputParameters: - type: object mapping: $.