Skip to content

API Reference parrot.tools.databasequery.sources.atlas

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.tools.databasequery.sources.atlas

View source

MongoDB Atlas database source for DatabaseToolkit.

Extends MongoSource for MongoDB Atlas cloud service, which uses the mongodb+srv:// connection string format and dbtype="atlas".

Inherits test_connection() from MongoSource (MongoDB ping command).

Part of FEAT-062 — DatabaseToolkit. Part of FEAT-136 — database-toolkit-parity (G8 credential resolution, TASK-933 test_connection inheritance).

Class AtlasSource

MongoDB Atlas database source.

Extends MongoSource with Atlas-specific credential handling: the mongodb+srv:// URI scheme is expected for Atlas connections.

Uses the asyncdb mongo driver with dbtype="atlas".

Method AtlasSource.get_default_credentials

Return default MongoDB Atlas credentials from environment variables.

Delegates to parrot.interfaces.database.get_default_credentials("atlas") which reads ATLAS_HOST, ATLAS_PORT, ATLAS_DATABASE, ATLAS_USER, ATLAS_PASSWORD from navconfig.

If the host field looks like a full mongodb+srv:// URI or an Atlas cluster hostname (ending in .mongodb.net), converts it to a proper dsn and removes individual host/port fields.

get_default_credentials() -> dict[str, Any]

Returns: dict[str, Any] — Dict with Atlas connection parameters. Falls back to empty dict if no env vars are configured.

Alias MongoSource

Re-exported from parrot.tools.databasequery.sources.mongodb.MongoSource.

Alias register_source

Re-exported from parrot.tools.databasequery.sources.register_source.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally