**初期設定** 次のような場合に使用: ユーザーがAIDP Sparkコネクタヘルパーパッケージを自分のAIDPワークスペースにインストール・アップロードしたい、またはこのプラグインをインストール直後に「どうやって設定するの?」「初期設定の方法は?」「ヘルパーをインストールしたい」「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-connectors-bootstrap — AIDPにおけるヘルパーパッケージの初回セットアップModuleNotFoundError: No module named 'oracle_ai_data_platform_connectors' が発生している。/Workspace/Shared/oracle_ai_data_platform_connectors/scripts/oracle_ai_data_platform_connectors/ がユーザーのAIDPワークスペースに作成され、プラグインのローカル scripts/ ディレクトリの内容が配置された状態になる。examples/00_bootstrap_helpers.ipynb を一度実行し、BOOTSTRAP OK が出力された状態になる。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/ を検索すること。
アップロードの前に、コピー元とコピー先のパスをユーザーに確認すること。
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 が会話の中でまだ判明していない場合は、ユーザーに確認すること。)
ローカルの 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
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 が出力される。
ユーザーに以下を伝える:
aidp-atp)を選択し、そのコネクター用の環境変数またはVaultシークレットを用意すること。パッケージがPyPIに公開された後は、このskillはワークスペースへのアップロードではなく、
任意のAIDPセルで %pip install oracle-ai-data-platform-connectors を実行するようユーザーに案内する方針に切り替えること。
v1.0がリリースされるまでの間は、上記のワークスペースへのアップロード手順が唯一の方法となる。
/Workspace/Shared/ へアップロードしないこと
(ユーザー独自のディレクトリ規約が存在する可能性があるため)。.env の内容、PEMキーなどを /Workspace/Shared/ のいかなる場所にも書き込まないこと。
ヘルパーパッケージはコードのみで構成される。examples/00_bootstrap_helpers.ipynbREADME.mdaidp-connectors-bootstrap — first-time setup of the helper package in AIDPModuleNotFoundError: No module named 'oracle_ai_data_platform_connectors'./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 local scripts/ directory.examples/00_bootstrap_helpers.ipynb once and it printed BOOTSTRAP OK.scripts/ directory on diskThe 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/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.
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.)
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
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.
Tell the user:
aidp-atp) and supply that connector's env vars / Vault secrets.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.
/Workspace/Shared/ without confirming the path with the user (in case they have an existing convention)./Workspace/Shared/. The helper package is code-only.examples/00_bootstrap_helpers.ipynbREADME.md原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。