Skip to content

feat: add list_profiles and switch_profile tools#133

Open
akmukherjee wants to merge 1 commit intoPrefectHQ:mainfrom
akmukherjee:feat/profile-switching
Open

feat: add list_profiles and switch_profile tools#133
akmukherjee wants to merge 1 commit intoPrefectHQ:mainfrom
akmukherjee:feat/profile-switching

Conversation

@akmukherjee
Copy link
Copy Markdown

Adds two tools for switching between Prefect workspaces in stdio transport (e.g. Claude Desktop):

list_profiles — lists available profiles from ~/.prefect/profiles.toml
switch_profile — stores the selected profile in session state; the middleware then wraps subsequent tool calls in use_profile() so they use that profile's credentials
No new settings or dependencies. Falls back to the default active profile if switch_profile has not been called.

@zzstoatzz
Copy link
Copy Markdown
Collaborator

hi @akmukherjee thank you for the PR, sorry for the sluggish response, this is still on my radar. there are some details i want to think about / talk about with the team but this is generally looking good here and i'll come back for a thorough review as soon as possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants