Skip to content

[FEATURE][AUTH]: Extend default_roles to add additional roles during bootstrap #2187

@KKNithin

Description

@KKNithin

🧭 Type of Feature

Please select the most appropriate category:

  • Enhancement to existing functionality
  • New feature or capability
  • New MCP-compliant server
  • New component or integration
  • Developer tooling or test improvement
  • Packaging, automation and deployment (ex: pypi, docker, quay.io, kubernetes, terraform)
  • Other (please describe below)

🧭 Epic

Title: Extend default roles to add new additional roles during bootstrap
Goal: Clients can preconfigure gateway to have additional roles while bootstrap of application
Why now: Currently clients have to create these roles after the bootstrap which is a overhead to their processes


✅ Acceptance Criteria

Scenario: Adding additional default_roles during bootstrap
  Given env MCPGATEWAY_BOOTSTRAP_ROLES_IN_DB_ENABLED is true
  When env MCPGATEWAY_BOOTSTRAP_ROLES_IN_DB_FILE is a valid path with file contents having a json array of roles
  Then while bootstrap of application these new additional roles are added to default_roles

🔗 MCP Standards Check

  • Change adheres to current MCP specifications
  • No breaking changes to existing MCP-compliant integrations
  • If deviations exist, please describe them below:

Metadata

Metadata

Assignees

Labels

COULDP3: Nice-to-have features with minimal impact if left out; included if time permitsenhancementNew feature or requestpythonPython / backend development (FastAPI)securityImproves security

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions