🚀aidp-connectors-bootstrap
- ソース
- GitHub で見る ↗
説明
初回セットアップ。 次のような場合に使用: ユーザーが AIDP ワークスペースに AIDP Spark コネクターヘルパーパッケージをインストール/アップロードしたい場合、またはこの plugin をインストールしたばかりで「セットアップ方法を教えて」「初回セットアップをしたい」「ヘルパーをインストールしたい」「AIDP コネクターを初期化したい」といった質問をした場合。 AIDP MCP ツールを駆動してヘルパーパッケージを `/Workspace/Shared/` にプッシュし、正常性確認用のインポートを実行します。
原文を表示
First-time setup. Use when the user wants to install/upload the AIDP Spark connectors helper package into their AIDP workspace, or has just installed this plugin and asks "how do I set it up", "first-time setup", "install the helpers", "bootstrap aidp connectors". Drives the AIDP MCP tools to push the helper package to /Workspace/Shared/ and runs a sanity import.
ユースケース
- ✓AIDP Spark コネクターをインストールしたい
- ✓ヘルパーパッケージをアップロードしたい
- ✓初回セットアップの方法を知りたい
- ✓AIDP コネクターを初期化したい
本文(日本語訳)
aidp-connectors-bootstrap — AIDPにおけるヘルパーパッケージの初回セットアップ
次のような場合に使用
- ユーザーがプラグインをインストールしたばかりで、「セットアップ方法は?」「最初のステップは?」「ヘルパーをインストールしたい」と尋ねている。
- ユーザーがコネクターskillを初めて実行し、
ModuleNotFoundError: No module named 'oracle_ai_data_platform_connectors'が発生している。 - ユーザーがヘルパーパッケージをAIDPへアップロードするよう明示的に求めている。
このskillを実行した結果
/Workspace/Shared/oracle_ai_data_platform_connectors/scripts/oracle_ai_data_platform_connectors/がユーザーのAIDPワークスペースに作成され、プラグインのローカルscripts/ディレクトリの内容が配置された状態になる。- ユーザーが
examples/00_bootstrap_helpers.ipynbを一度実行し、BOOTSTRAP OKが出力された状態になる。 - 以降は、すべてのコネクターskillが追加セットアップなしで動作する。
アシスタントが行うべき手順
ステップ 1 — ディスク上のプラグインの scripts/ ディレクトリを特定する
プラグインはユーザーがインストールした場所に存在する。よくある場所は以下のとおり:
~/.claude/plugins/<marketplace>/oracle-ai-data-platform-workbench-spark-connectors/scripts/oracle_ai_data_platform_connectors/~/.codex/plugins/<marketplace>/oracle-ai-data-platform-workbench-spark-connectors/scripts/oracle_ai_data_platform_connectors/- 開発中のローカルクローンまたはリポジトリのチェックアウト
インストール済みプラグインのキャッシュおよびローカルリポジトリのチェックアウトから scripts/oracle_ai_data_platform_connectors/ を検索すること。
アップロードの前に、コピー元とコピー先のパスをユーザーに確認すること。
ステップ 2 — AIDP上にコピー先ディレクトリを作成する
AIDP MCPツールを使用する:
mcp__aidp__create_directory(
workspace_id="<ユーザーのワークスペースID>",
path="/Workspace/Shared/oracle_ai_data_platform_connectors"
)
mcp__aidp__create_directory(
workspace_id=...,
path="/Workspace/Shared/oracle_ai_data_platform_connectors/scripts"
)
(workspace_id が会話の中でまだ判明していない場合は、ユーザーに確認すること。)
ステップ 3 — パッケージファイルをアップロードする
ローカルの scripts/oracle_ai_data_platform_connectors/ 配下にある各 .py ファイルを、
/Workspace/Shared/oracle_ai_data_platform_connectors/scripts/ 配下の対応するパスにアップロードする。
mcp__aidp__upload_file(またはこのMCPサーバーの相当するツール)を使用すること。
保持すべきパッケージ構成:
oracle_ai_data_platform_connectors/
├── __init__.py
├── auth/{__init__,wallet,dbtoken,oci_config,user_principal,secrets}.py
├── jdbc/{__init__,oracle,hive}.py
├── rest/{__init__,fusion,epm,essbase}.py
└── streaming/{__init__,kafka}.py
ステップ 4 — ブートストラップnotebookをAIDPにプッシュして実行する
examples/00_bootstrap_helpers.ipynb を mcp__aidp__nb_save_file で
Shared/connectors-tests/00_bootstrap_helpers.ipynb にアップロードする。
次に、ユーザーが選択したクラスター(通常は tpcds)に対して mcp__aidp__nb_create_session を実行し、
各セルを mcp__aidp__nb_execute_code で実行する。
すべて正常に動作した場合、最後のセルに BOOTSTRAP OK が出力される。
ステップ 5 — 完了を確認する
ユーザーに以下を伝える:
- ヘルパーが配置された場所。
- このプラグイン内のすべてのコネクターskillが、これ以降動作するようになったこと。
- 次のステップとして、コネクター(例:
aidp-atp)を選択し、そのコネクター用の環境変数またはVaultシークレットを用意すること。
代替手段: PyPI経由でのインストールをユーザーに案内する(v1.0以降)
パッケージがPyPIに公開された後は、このskillはワークスペースへのアップロードではなく、
任意のAIDPセルで %pip install oracle-ai-data-platform-connectors を実行するようユーザーに案内する方針に切り替えること。
v1.0がリリースされるまでの間は、上記のワークスペースへのアップロード手順が唯一の方法となる。
行ってはいけないこと
- パスをユーザーに確認せずに
/Workspace/Shared/へアップロードしないこと (ユーザー独自のディレクトリ規約が存在する可能性があるため)。 - シークレット、
.envの内容、PEMキーなどを/Workspace/Shared/のいかなる場所にも書き込まないこと。 ヘルパーパッケージはコードのみで構成される。 - サニティインポート用のnotebookをスキップしないこと。 ファイルが存在するかどうかだけでなく、アップロードが正常に機能したことを確認するための手順であるため。
参照
- ブートストラップnotebook:
examples/00_bootstrap_helpers.ipynb - プラグインREADMEのインストールセクション:
README.md
原文(English)を表示
aidp-connectors-bootstrap — first-time setup of the helper package in AIDP
When to use
- The user just installed the plugin and asks "how do I set this up?", "what's the first step?", "install the helpers".
- The user runs a connector skill for the first time and gets
ModuleNotFoundError: No module named 'oracle_ai_data_platform_connectors'. - The user explicitly asks to upload the helper package to AIDP.
Outcome of running this skill
/Workspace/Shared/oracle_ai_data_platform_connectors/scripts/oracle_ai_data_platform_connectors/exists in the user's AIDP workspace, populated from the plugin's localscripts/directory.- The user has run
examples/00_bootstrap_helpers.ipynbonce and it printedBOOTSTRAP OK. - From that point on, every connector skill works without further setup.
What the assistant should do
Step 1 — locate the plugin's scripts/ directory on disk
The plugin lives wherever the user installed it. Common locations:
~/.claude/plugins/<marketplace>/oracle-ai-data-platform-workbench-spark-connectors/scripts/oracle_ai_data_platform_connectors/~/.codex/plugins/<marketplace>/oracle-ai-data-platform-workbench-spark-connectors/scripts/oracle_ai_data_platform_connectors/- A local clone or repo checkout when developing.
Search the installed plugin cache and the local repo checkout for scripts/oracle_ai_data_platform_connectors/. Confirm the source and destination paths with the user before uploading.
Step 2 — create the destination directory in AIDP
Use the AIDP MCP tools:
mcp__aidp__create_directory(
workspace_id="<user's workspace id>",
path="/Workspace/Shared/oracle_ai_data_platform_connectors"
)
mcp__aidp__create_directory(
workspace_id=...,
path="/Workspace/Shared/oracle_ai_data_platform_connectors/scripts"
)
(If the workspace_id isn't already known from the conversation, ask the user.)
Step 3 — upload the package files
For each .py file under the local scripts/oracle_ai_data_platform_connectors/, upload to the matching path under /Workspace/Shared/oracle_ai_data_platform_connectors/scripts/. Use mcp__aidp__upload_file (or the equivalent in this MCP server).
The package layout to preserve:
oracle_ai_data_platform_connectors/
├── __init__.py
├── auth/{__init__,wallet,dbtoken,oci_config,user_principal,secrets}.py
├── jdbc/{__init__,oracle,hive}.py
├── rest/{__init__,fusion,epm,essbase}.py
└── streaming/{__init__,kafka}.py
Step 4 — push the bootstrap notebook to AIDP and run it
Upload examples/00_bootstrap_helpers.ipynb to Shared/connectors-tests/00_bootstrap_helpers.ipynb via mcp__aidp__nb_save_file. Then mcp__aidp__nb_create_session against the user's chosen cluster (typically tpcds), and mcp__aidp__nb_execute_code for each cell. The final cell prints BOOTSTRAP OK if everything works.
Step 5 — confirm
Tell the user:
- Where the helpers landed.
- That every connector skill in this plugin will now work.
- The next step is to pick a connector (e.g.,
aidp-atp) and supply that connector's env vars / Vault secrets.
Alternative: ask the user to install via PyPI (v1.0+)
Once the package is published to PyPI, this skill should pivot to telling the user to run %pip install oracle-ai-data-platform-connectors in any AIDP cell instead of uploading. Until v1.0 ships, the Workspace-upload path above is the only way.
What NOT to do
- Do not upload anything to
/Workspace/Shared/without confirming the path with the user (in case they have an existing convention). - Do not write secrets, .env contents, or PEM keys anywhere in
/Workspace/Shared/. The helper package is code-only. - Do not skip the sanity-import notebook — it's how you (and the user) confirm the upload worked, not just that files exist.
References
- Bootstrap notebook:
examples/00_bootstrap_helpers.ipynb - Plugin README install section:
README.md
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。