naftiko: 1.0.0-alpha2 info: label: MongoDB Atlas Administration API — X.509 Authentication description: 'MongoDB Atlas Administration API — X.509 Authentication. 3 operations. Lead operation: Return All X.509 Certificates Assigned to One Database User. Self-contained Naftiko capability covering one Mongodb business surface.' tags: - Mongodb - X.509 Authentication created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MONGODB_API_KEY: MONGODB_API_KEY capability: consumes: - type: http namespace: atlas-x-509-authentication baseUri: https://cloud.mongodb.com description: MongoDB Atlas Administration API — X.509 Authentication business capability. Self-contained, no shared references. resources: - name: api-atlas-v2-groups-groupId-databaseUsers-username-certs path: /api/atlas/v2/groups/{groupId}/databaseUsers/{username}/certs operations: - name: listgroupdatabaseusercerts method: GET description: Return All X.509 Certificates Assigned to One Database User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: username in: path type: string description: Human-readable label that represents the MongoDB database user account whose certificates you want to return. required: true - name: creategroupdatabaseusercert method: POST description: Create One X.509 Certificate for One Database User outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: username in: path type: string description: Human-readable label that represents the MongoDB database user account for whom to create a certificate. required: true - name: body in: body type: object description: Request body (JSON). required: true - name: api-atlas-v2-groups-groupId-userSecurity-customerX509 path: /api/atlas/v2/groups/{groupId}/userSecurity/customerX509 operations: - name: disablegroupusersecuritycustomerx509 method: DELETE description: Disable Customer-Managed X.509 outputRawFormat: json outputParameters: - name: result type: object value: $. authentication: type: bearer token: '{{env.MONGODB_API_KEY}}' exposes: - type: rest namespace: atlas-x-509-authentication-rest port: 8080 description: REST adapter for MongoDB Atlas Administration API — X.509 Authentication. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/api/atlas/v2/groups/{groupid}/databaseusers/{username}/certs name: api-atlas-v2-groups-groupid-databaseusers-username-certs description: REST surface for api-atlas-v2-groups-groupId-databaseUsers-username-certs. operations: - method: GET name: listgroupdatabaseusercerts description: Return All X.509 Certificates Assigned to One Database User call: atlas-x-509-authentication.listgroupdatabaseusercerts with: username: rest.username outputParameters: - type: object mapping: $. - method: POST name: creategroupdatabaseusercert description: Create One X.509 Certificate for One Database User call: atlas-x-509-authentication.creategroupdatabaseusercert with: username: rest.username body: rest.body outputParameters: - type: object mapping: $. - path: /v1/api/atlas/v2/groups/{groupid}/usersecurity/customerx509 name: api-atlas-v2-groups-groupid-usersecurity-customerx509 description: REST surface for api-atlas-v2-groups-groupId-userSecurity-customerX509. operations: - method: DELETE name: disablegroupusersecuritycustomerx509 description: Disable Customer-Managed X.509 call: atlas-x-509-authentication.disablegroupusersecuritycustomerx509 outputParameters: - type: object mapping: $. - type: mcp namespace: atlas-x-509-authentication-mcp port: 9090 transport: http description: MCP adapter for MongoDB Atlas Administration API — X.509 Authentication. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: return-all-x-509-certificates-assigned description: Return All X.509 Certificates Assigned to One Database User hints: readOnly: true destructive: false idempotent: true call: atlas-x-509-authentication.listgroupdatabaseusercerts with: username: tools.username outputParameters: - type: object mapping: $. - name: create-one-x-509-certificate-one description: Create One X.509 Certificate for One Database User hints: readOnly: false destructive: false idempotent: false call: atlas-x-509-authentication.creategroupdatabaseusercert with: username: tools.username body: tools.body outputParameters: - type: object mapping: $. - name: disable-customer-managed-x-509 description: Disable Customer-Managed X.509 hints: readOnly: false destructive: true idempotent: true call: atlas-x-509-authentication.disablegroupusersecuritycustomerx509 outputParameters: - type: object mapping: $.