naftiko: 1.0.0-alpha2 info: label: Neon Management API — Auth description: 'Neon Management API — Auth. 6 operations. Lead operation: Get Auth configuration. Self-contained Naftiko capability covering one Neon business surface.' tags: - Neon - Auth created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: NEON_API_KEY: NEON_API_KEY capability: consumes: - type: http namespace: management-auth baseUri: https://console.neon.tech/api/v2 description: Neon Management API — Auth business capability. Self-contained, no shared references. resources: - name: projects-project_id-branches-branch_id-auth path: /projects/{project_id}/branches/{branch_id}/auth operations: - name: getprojectbranchauth method: GET description: Get Auth configuration outputRawFormat: json outputParameters: - name: result type: object value: $. - name: updateprojectbranchauth method: PUT description: Update Auth configuration outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: projects-project_id-branches-branch_id-auth-providers path: /projects/{project_id}/branches/{branch_id}/auth/providers operations: - name: listneonauthoauthproviders method: GET description: List OAuth providers outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createneonauthoauthprovider method: POST description: Create an OAuth provider outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: projects-project_id-branches-branch_id-auth-providers-provider_id path: /projects/{project_id}/branches/{branch_id}/auth/providers/{provider_id} operations: - name: updateneonauthoauthprovider method: PATCH description: Update an OAuth provider outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: provider_id in: path type: string description: The OAuth provider ID required: true - name: body in: body type: object description: Request body (JSON). required: true - name: deleteneonauthoauthprovider method: DELETE description: Delete an OAuth provider outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: provider_id in: path type: string description: The OAuth provider ID required: true authentication: type: bearer token: '{{env.NEON_API_KEY}}' exposes: - type: rest namespace: management-auth-rest port: 8080 description: REST adapter for Neon Management API — Auth. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/projects/{project-id}/branches/{branch-id}/auth name: projects-project-id-branches-branch-id-auth description: REST surface for projects-project_id-branches-branch_id-auth. operations: - method: GET name: getprojectbranchauth description: Get Auth configuration call: management-auth.getprojectbranchauth outputParameters: - type: object mapping: $. - method: PUT name: updateprojectbranchauth description: Update Auth configuration call: management-auth.updateprojectbranchauth with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/projects/{project-id}/branches/{branch-id}/auth/providers name: projects-project-id-branches-branch-id-auth-providers description: REST surface for projects-project_id-branches-branch_id-auth-providers. operations: - method: GET name: listneonauthoauthproviders description: List OAuth providers call: management-auth.listneonauthoauthproviders outputParameters: - type: object mapping: $. - method: POST name: createneonauthoauthprovider description: Create an OAuth provider call: management-auth.createneonauthoauthprovider with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/projects/{project-id}/branches/{branch-id}/auth/providers/{provider-id} name: projects-project-id-branches-branch-id-auth-providers-provider-id description: REST surface for projects-project_id-branches-branch_id-auth-providers-provider_id. operations: - method: PATCH name: updateneonauthoauthprovider description: Update an OAuth provider call: management-auth.updateneonauthoauthprovider with: provider_id: rest.provider_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteneonauthoauthprovider description: Delete an OAuth provider call: management-auth.deleteneonauthoauthprovider with: provider_id: rest.provider_id outputParameters: - type: object mapping: $. - type: mcp namespace: management-auth-mcp port: 9090 transport: http description: MCP adapter for Neon Management API — Auth. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: get-auth-configuration description: Get Auth configuration hints: readOnly: true destructive: false idempotent: true call: management-auth.getprojectbranchauth outputParameters: - type: object mapping: $. - name: update-auth-configuration description: Update Auth configuration hints: readOnly: false destructive: false idempotent: true call: management-auth.updateprojectbranchauth with: body: tools.body outputParameters: - type: object mapping: $. - name: list-oauth-providers description: List OAuth providers hints: readOnly: true destructive: false idempotent: true call: management-auth.listneonauthoauthproviders outputParameters: - type: object mapping: $. - name: create-oauth-provider description: Create an OAuth provider hints: readOnly: false destructive: false idempotent: false call: management-auth.createneonauthoauthprovider with: body: tools.body outputParameters: - type: object mapping: $. - name: update-oauth-provider description: Update an OAuth provider hints: readOnly: false destructive: false idempotent: true call: management-auth.updateneonauthoauthprovider with: provider_id: tools.provider_id body: tools.body outputParameters: - type: object mapping: $. - name: delete-oauth-provider description: Delete an OAuth provider hints: readOnly: false destructive: true idempotent: true call: management-auth.deleteneonauthoauthprovider with: provider_id: tools.provider_id outputParameters: - type: object mapping: $.