Support Multiple Authentication Methods and Multi-Database Connections
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- azure, sql
- Domain
- authentication, databases
Research direction
The issue names no files, tests, or entry points. Start by locating the server's authentication configuration and database connection setup, then define how the listed environment variables select credentials and how multiple connections are configured; done means the requested authentication methods and simultaneous database connections work together.
Written by the indexing model from the issue text.
Description
Problem Statement
Currently, the MCP server only supports a single authentication method at a time (either Azure AD or SQL Authentication), and
can only connect to one database per server instance.
Proposed Enhancements
- Support Multiple Authentication Methods
The server should automatically detect and use the appropriate authentication method based on environment variables:
- Azure AD Interactive Browser: If AZURE_AUTH_METHOD=interactive is set
- Azure AD Default Credential: If AZURE_AUTH_METHOD=default is set (for managed identities, service principals)
- Azure AD Service Principal: If AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET are set
- SQL Authentication: If SQL_USER and SQL_PASSWORD are set
- Windows Authentication: If WINDOWS_AUTH=true is set
- Support Multiple Database Connections
Allow configuring multiple SQL Server instances/databases simultaneously, enabling users to:
- Query across different databases
- Work with multiple Azure SQL servers
- Connect to both on-premises and cloud databases
Use Cases
- Development vs Production: Use different auth methods for local dev (SQL auth) vs Azure (Managed Identity)
- Multi-tenant applications: Connect to multiple customer databases
- Data migration/comparison: Query data across different SQL servers
- Dominant language
- HTML
- Stars
- 331
- Forks
- 208
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Azure-Samples/SQL-AI-samples
-
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
Azure-Samples/SQL-AI-samples#90 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 30/100
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
-
Local db Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in Azure-Samples/SQL-AI-samples
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
AXERA-TECH/ax-llm#75 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:security impact:ux-friction issue-rating: 🦞 diamond lobster P2
Difficulty 2/5 1-3 hours Newbie friendliness 84/100