naftiko: 1.0.0-alpha2 info: label: Smithery Platform API — namespaces description: 'Smithery Platform API — namespaces. 5 operations. Lead operation: Get user''s namespaces or search namespaces. Self-contained Naftiko capability covering one Smithery business surface.' tags: - Smithery - namespaces created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: SMITHERY_API_KEY: SMITHERY_API_KEY capability: consumes: - type: http namespace: smithery-namespaces baseUri: https://api.smithery.ai description: Smithery Platform API — namespaces business capability. Self-contained, no shared references. resources: - name: namespaces path: /namespaces operations: - name: getnamespaces method: GET description: Get user's namespaces or search namespaces outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: q in: query type: string description: Text search query (prefix match on name) - name: ownerId in: query type: string description: Filter by owner ID - name: hasServers in: query type: string description: Filter namespaces with servers - name: hasSkills in: query type: string description: Filter namespaces with skills - name: page in: query type: integer - name: pageSize in: query type: integer - name: fields in: query type: string description: Comma-separated list of fields to include in response - name: postnamespaces method: POST description: Create a new namespace with generated name outputRawFormat: json outputParameters: - name: result type: object value: $. - name: namespaces-namespace-servers-server path: /namespaces/{namespace}/servers/{server} operations: - name: putnamespacesnamespaceserversserver method: PUT description: Create a server under a namespace (deprecated) outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: server in: path type: string required: true - name: namespace in: path type: string required: true - name: body in: body type: object description: Request body (JSON). required: false - name: namespaces-name path: /namespaces/{name} operations: - name: putnamespacesname method: PUT description: Create a new namespace outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: path type: string required: true - name: deletenamespacesname method: DELETE description: Delete a namespace outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: name in: path type: string required: true authentication: type: bearer token: '{{env.SMITHERY_API_KEY}}' exposes: - type: rest namespace: smithery-namespaces-rest port: 8080 description: REST adapter for Smithery Platform API — namespaces. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/namespaces name: namespaces description: REST surface for namespaces. operations: - method: GET name: getnamespaces description: Get user's namespaces or search namespaces call: smithery-namespaces.getnamespaces with: q: rest.q ownerId: rest.ownerId hasServers: rest.hasServers hasSkills: rest.hasSkills page: rest.page pageSize: rest.pageSize fields: rest.fields outputParameters: - type: object mapping: $. - method: POST name: postnamespaces description: Create a new namespace with generated name call: smithery-namespaces.postnamespaces outputParameters: - type: object mapping: $. - path: /v1/namespaces/{namespace}/servers/{server} name: namespaces-namespace-servers-server description: REST surface for namespaces-namespace-servers-server. operations: - method: PUT name: putnamespacesnamespaceserversserver description: Create a server under a namespace (deprecated) call: smithery-namespaces.putnamespacesnamespaceserversserver with: server: rest.server namespace: rest.namespace body: rest.body outputParameters: - type: object mapping: $. - path: /v1/namespaces/{name} name: namespaces-name description: REST surface for namespaces-name. operations: - method: PUT name: putnamespacesname description: Create a new namespace call: smithery-namespaces.putnamespacesname with: name: rest.name outputParameters: - type: object mapping: $. - method: DELETE name: deletenamespacesname description: Delete a namespace call: smithery-namespaces.deletenamespacesname with: name: rest.name outputParameters: - type: object mapping: $. - type: mcp namespace: smithery-namespaces-mcp port: 9090 transport: http description: MCP adapter for Smithery Platform API — namespaces. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-user-s-namespaces-search-namespaces description: Get user's namespaces or search namespaces hints: readOnly: true destructive: false idempotent: true call: smithery-namespaces.getnamespaces with: q: tools.q ownerId: tools.ownerId hasServers: tools.hasServers hasSkills: tools.hasSkills page: tools.page pageSize: tools.pageSize fields: tools.fields outputParameters: - type: object mapping: $. - name: create-new-namespace-generated-name description: Create a new namespace with generated name hints: readOnly: false destructive: false idempotent: false call: smithery-namespaces.postnamespaces outputParameters: - type: object mapping: $. - name: create-server-under-namespace-deprecated description: Create a server under a namespace (deprecated) hints: readOnly: false destructive: false idempotent: true call: smithery-namespaces.putnamespacesnamespaceserversserver with: server: tools.server namespace: tools.namespace body: tools.body outputParameters: - type: object mapping: $. - name: create-new-namespace description: Create a new namespace hints: readOnly: false destructive: false idempotent: true call: smithery-namespaces.putnamespacesname with: name: tools.name outputParameters: - type: object mapping: $. - name: delete-namespace description: Delete a namespace hints: readOnly: false destructive: true idempotent: true call: smithery-namespaces.deletenamespacesname with: name: tools.name outputParameters: - type: object mapping: $.