-
Notifications
You must be signed in to change notification settings - Fork 67
feat(mcp): add Airbyte Cloud MCP tools: Deploy, Sync, and List #743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
4664053
feat(mcp): add four new cloud operation MCP tools
devin-ai-integration[bot] e996734
feat(mcp): add config_secret_name support to deploy_destination_to_cloud
devin-ai-integration[bot] 68222b9
fix(mcp): make deploy_destination_to_cloud API consistent with deploy…
devin-ai-integration[bot] 93de6f6
feat(mcp): move workspace_id and api_root to environment variables
devin-ai-integration[bot] 42f42a3
tidy up
aaronsteers 238942e
working cloud tools
aaronsteers 8e8133f
add 'list' operations
aaronsteers 967da08
hack: hard-coded definition ID
aaronsteers 45d3fa6
fix endpoint
aaronsteers e4c7e77
Apply suggestion from @coderabbitai[bot]
aaronsteers 3f8a16a
Apply suggestion from @aaronsteers
aaronsteers b4304fa
fix: resolve linting and syntax errors in MCP cloud tools
devin-ai-integration[bot] 9fe233d
fix: resolve MyPy type errors and Ruff lint violations
devin-ai-integration[bot] 3f42075
resolve merge conflicts from main
devin-ai-integration[bot] 73a306f
fix: remove unused pathlib.Path import after type annotation changes
devin-ai-integration[bot] 0d385f7
handle typed and dict config inputs
aaronsteers d583b9e
fix attribute spelling
aaronsteers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Copyright (c) 2024 Airbyte, Inc., all rights reserved. | ||
"""Authentication-related constants and utilities for the Airbyte Cloud.""" | ||
|
||
from airbyte import constants | ||
from airbyte.secrets import SecretString | ||
from airbyte.secrets.util import get_secret, try_get_secret | ||
|
||
|
||
def resolve_cloud_client_secret( | ||
input_value: str | SecretString | None = None, | ||
/, | ||
) -> SecretString: | ||
"""Get the Airbyte Cloud client secret from the environment.""" | ||
return get_secret(constants.CLOUD_CLIENT_SECRET_ENV_VAR, default=input_value) | ||
|
||
|
||
def resolve_cloud_client_id( | ||
input_value: str | SecretString | None = None, | ||
/, | ||
) -> SecretString: | ||
"""Get the Airbyte Cloud client ID from the environment.""" | ||
return get_secret(constants.CLOUD_CLIENT_ID_ENV_VAR, default=input_value) | ||
|
||
|
||
def resolve_cloud_api_url( | ||
input_value: str | None = None, | ||
/, | ||
) -> str: | ||
"""Get the Airbyte Cloud API URL from the environment, or return the default.""" | ||
return str( | ||
try_get_secret(constants.CLOUD_API_ROOT_ENV_VAR, default=input_value) | ||
or constants.CLOUD_API_ROOT | ||
) | ||
|
||
|
||
def resolve_cloud_workspace_id( | ||
input_value: str | None = None, | ||
/, | ||
) -> str: | ||
"""Get the Airbyte Cloud workspace ID from the environment, or return None if not set.""" | ||
return str(get_secret(constants.CLOUD_WORKSPACE_ID_ENV_VAR, default=input_value)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.