feat: comprehensive API integration + automatic project detection & enhanced authentication #148
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR dramatically expands the Supabase MCP server from ~25 tools covering ~20% of the Supabase Management API to 120+ tools covering ~90% of the API surface. Additionally, it introduces comprehensive authentication enhancements including automatic project detection and enhanced token management for seamless developer workflows.
🆕 Authentication Enhancements (Latest Update)
Automatic Project Detection
.env
,.env.local
,.supabase/config.toml
, and.supabase/.env
files with priority system.env
setup work immediately without manual configurationEnhanced Personal Access Token Detection
~/.supabase/access-token
(created bysupabase login
)supabase login
workflowDual Authentication Architecture
Developer Experience Improvements
npx @supabase/mcp-server-supabase
from any Supabase project directory🚀 Comprehensive API Integration (Core Features)
New Tool Categories
Enhanced Existing Categories
🏗️ Architecture Updates
Authentication System Overhaul
src/config/project-context.ts
): Core module for working directory scanningsrc/config/supabase-config.ts
): Multiple token source support with CLI integrationsrc/auth.ts
): Smart switching between personal tokens and project keyssrc/platform/api-platform.ts
): Enhanced to leverage project context for key resolutionPlatform Architecture Updates
analytics
,auth
,billing
,domains
,network
,project
,secrets
,runtime
Key Features
🧪 Testing
🔄 Breaking Changes
None - This is purely additive functionality. All existing tools and interfaces remain unchanged.
📝 Migration Guide
No migration required - This is a backward-compatible enhancement. Users can:
.env
files work automaticallysupabase login
now works seamlessly--features
flag to enable specific new tool groupsNew Usage Patterns
🔧 Implementation Details
Authentication Architecture
Code Quality
🚀 Future Considerations
This expansion provides the foundation for:
📚 Documentation Updates
Note: This PR maintains the project's pre-1.0 philosophy of rapid feature development while ensuring backward compatibility and type safety. The comprehensive API coverage combined with intelligent authentication makes this the definitive solution for AI assistant integration with Supabase projects.