MCP: surface default workspace + set_default_cloud_workspace tip in list_cloud_workspaces and get_default_cloud_context
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
Research direction
Start in the MCP tool handlers for list_cloud_workspaces and get_default_cloud_context, then in CloudClient.get_default_context_for_user(), which currently adds the set_default_cloud_workspace hint only when no default is stored. Read CloudClient.resolve_default_workspace_id() to see how the stored defaultWorkspaceId is read. Done when list_cloud_workspaces marks the default workspace when one is set, and both tools always include the set_default_cloud_workspace tip.
Written by the indexing model from the issue text.
Description
Summary
Agents keep hitting AirbyteMissingWorkspaceContextError, and they never save a default workspace. In the last 24h, 4 users (8 failures) hit it on list_cloud_connections, list_cloud_connectors, show_workspace_sync_status, and list_custom_source_definitions. Each recovered by calling get_default_cloud_context and/or list_cloud_workspaces and then passing workspace_id explicitly. None called set_default_cloud_workspace, and none has called it in the last 60 days. 3 of the 4 hit the same error again later (4 min, 8 min, 4.5h).
Setting a default would have prevented the repeats: when workspace_id is omitted, CloudClient.resolve_default_workspace_id() reads the user's stored defaultWorkspaceId live.
Requested by @aaronsteers.
Current behavior (release-candidate/v1)
get_default_cloud_context:CloudClient.get_default_context_for_user()adds aset_default_cloud_workspacehint todiscovery_hintsonly when the user has no stored default.list_cloud_workspaces: never mentionsset_default_cloud_workspace, and doesn't mark which workspace is the default.
Requested changes
list_cloud_workspacesnames or annotates the user's default workspace when one is set.- Both
list_cloud_workspacesandget_default_cloud_contextalways include a short tip thatset_default_cloud_workspacecan set the default, or change it if the current one is wrong. This applies whether or not a default is already set.
Out of scope: the AirbyteMissingWorkspaceContextError guidance itself.
- Dominant language
- Python
- Stars
- 342
- Forks
- 82
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 74
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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 airbytehq/PyAirbyte
-
Builder republish reports a JSON decode error on a successful bodyless 201 responsePossibly taken @jeevanabhi-r claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
airbytehq/PyAirbyte#1447 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
Postgres cache rounds large numeric-string IDs: `pd.read_json` re-types string columns on loadPossibly taken @HootRock claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
All issues in airbytehq/PyAirbyte
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
its-me-prash/vwgroup-connect-ha#2019 ·
Maintainers usually reply within 1 day
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
KonstantinStarovoytov/kitden#21 ·
Maintainers usually reply within 1 day
-
RefactorOpen
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ehmatthes/gh-profiler#166 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
smart-on-fhir/smart-fetch#73 ·
-
good first issue help wanted
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
RizgarOzan/playcal#13 ·