Claude Desktopでは以下のように動作します。
- Zodによるスキーマ定義を切り出し、Oracle Database向けの表定義を生成させました。(スクリプト:bas_create_tables.sql)
- サンプルデータを生成するファンクションseededRandomとgenerateHistoryを取り出し、PL/SQLで書き直してもらいました。(スクリプト:bas_generate_history.sql)
- 表bas_budget_categories、bas_budget_analyticsへの初期データの投入を行なうINSERT文を生成させました。(スクリプト:bas_prepare_budget_categories.sql、bas_prepare_budget_analytics.sql)
- 表bas_budget_config、bas_budget_preset_budgetsへの初期データの投入については、自分でINSERT文を書きました。(スクリプト:bas_prepare_budget_config.sql)
- ツールが返す構造化出力を生成するファンクションbas_get_budget_data_responseを生成させました。(スクリプト:bas_get_budget_data_response.sql)
sql -cloudconfig Wallet_SALESADB.zip wksp_apexdev@salesadb_low
@mcp-app/examples/budget-allocator-server/bas_install.sql
mcp-salesadb % sql -cloudconfig Wallet_SALESADB.zip wksp_apexdev@salesadb_low
SQLcl: 木 4月 16 12:39:12 2026のリリース25.4 Production
Copyright (c) 1982, 2026, Oracle. All rights reserved.
パスワード (**********?) ****************
接続先:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.31.0.1.0
SQL> @mcp-app/examples/budget-allocator-server/bas_install.sql
Table BAS_BUDGET_CATEGORIESは作成されました。
Table BAS_BUDGET_CONFIGは作成されました。
Table BAS_BUDGET_CONFIG_PRESET_BUDGETSは作成されました。
Table BAS_HISTORICAL_MONTHSは作成されました。
Table BAS_HISTORICAL_MONTH_ALLOCATIONSは作成されました。
Table BAS_BUDGET_ANALYTICSは作成されました。
Table BAS_BUDGET_ANALYTICS_STAGESは作成されました。
Table BAS_STAGE_BENCHMARKSは作成されました。
Table BAS_STAGE_BENCHMARK_PERCENTILESは作成されました。
Commentは作成されました。
Commentは作成されました。
Commentは作成されました。
Commentは作成されました。
Commentは作成されました。
Commentは作成されました。
Commentは作成されました。
Commentは作成されました。
Commentは作成されました。
Procedure BAS_GENERATE_HISTORYがコンパイルされました
Function BAS_GET_BUDGET_DATA_RESPONSEがコンパイルされました
1行挿入しました。
1行挿入しました。
1行挿入しました。
1行挿入しました。
1行挿入しました。
コミットが完了しました。
PL/SQLプロシージャが正常に完了しました。
PL/SQLプロシージャが正常に完了しました。
PL/SQLプロシージャが正常に完了しました。
コミットが完了しました。
{"config":{"categories":[{"id":"engineering","name":"Engineering","color":"#10b981","defaultPercent":35},{"id":"marketing","name":"Marketing","color":"#3b82f6","defaultPercent":25},{"id":"operations","name":"Operations","color":"#f59e0b","defaultPercent":15},{"id":"rd","name":"R&D","color":"#8b5cf6","defaultPercent":10},{"id":"sales","name":"Sales","color":"#ef4444","defaultPercent":15}],"presetBudgets":[50000,500000,250000,100000],"defaultBudget":100000,"currency":"USD","currencySymbol":"$"},"analytics":{"history":[{"month":"2024-05","allocations":{"engineering":35,"marketing":24.9,"operations":14.8,"rd":10.7,"sales":14.7}},{"month":"2024-06","allocations":{"engineering":33.4,"marketing":24.8,"operations":15.9,"rd":10.1,"sales":15.7}},{"month":"2024-07","allocations":{"engineering":33.9,"marketing":25.4,"operations":15.3,"rd":8.9,"sales":16.5}},{"month":"2024-08","allocations":{"engineering":34.1,"marketing":26.4,"operations":14.9,"rd":8.7,"sales":16}},{"month":"2024-09","allocations":{"engineering":35.6,"marketing":24.3,"operations":14.8,"rd":10.3,"sales":15}},{"month":"2024-10","allocations":{"engineering":33.1,"marketing":26,"operations":16.2,"rd":8.1,"sales":16.6}},{"month":"2024-11","allocations":{"engineering":33.6,"marketing":25.2,"operations":15.6,"rd":9.7,"sales":16}},{"month":"2024-12","allocations":{"engineering":34.5,"marketing":25.1,"operations":15.7,"rd":10,"sales":14.7}},{"month":"2025-01","allocations":{"engineering":33.1,"marketing":27.7,"operations":14.8,"rd":7.4,"sales":17}},{"month":"2025-02","allocations":{"engineering":34.4,"marketing":27.9,"operations":15,"rd":7.8,"sales":14.9}},{"month":"2025-03","allocations":{"engineering":33.1,"marketing":27.9,"operations":14.9,"rd":8.1,"sales":16}},{"month":"2025-04","allocations":{"engineering":34.6,"marketing":27,"operations":15.1,"rd":7.4,"sales":15.9}},{"month":"2025-05","allocations":{"engineering":34,"marketing":26.6,"operations":15.6,"rd":9.1,"sales":14.7}},{"month":"2025-06","allocations":{"engineering":32.2,"marketing":27.6,"operations":15.6,"rd":8.9,"sales":15.8}},{"month":"2025-07","allocations":{"engineering":33.5,"marketing":28.2,"operations":14.9,"rd":7.1,"sales":16.3}},{"month":"2025-08","allocations":{"engineering":34.2,"marketing":27.5,"operations":15.2,"rd":7.8,"sales":15.3}},{"month":"2025-09","allocations":{"engineering":32.7,"marketing":27.9,"operations":17.1,"rd":7.3,"sales":14.9}},{"month":"2025-10","allocations":{"engineering":33.3,"marketing":27.3,"operations":17.6,"rd":5.9,"sales":15.9}},{"month":"2025-11","allocations":{"engineering":33.7,"marketing":26.4,"operations":16.8,"rd":8,"sales":15}},{"month":"2025-12","allocations":{"engineering":32.3,"marketing":27.9,"operations":15,"rd":8,"sales":16.8}},{"month":"2026-01","allocations":{"engineering":33.5,"marketing":28,"operations":15.7,"rd":6.6,"sales":16.1}},{"month":"2026-02","allocations":{"engineering":31.4,"marketing":28.3,"operations":16.7,"rd":6.7,"sales":16.9}},{"month":"2026-03","allocations":{"engineering":32.4,"marketing":28.3,"operations":16.7,"rd":4.6,"sales":18}},{"month":"2026-04","allocations":{"engineering":32.8,"marketing":28.5,"operations":16,"rd":6.2,"sales":16.4}}],"benchmarks":[{"stage":"Seed","categoryBenchmarks":{"marketing":{"p25":15,"p50":20,"p75":25},"engineering":{"p25":40,"p50":47,"p75":55},"operations":{"p25":8,"p50":12,"p75":15},"sales":{"p25":10,"p50":15,"p75":20},"rd":{"p25":5,"p50":10,"p75":15}}},{"stage":"Series A","categoryBenchmarks":{"marketing":{"p25":20,"p50":25,"p75":30},"engineering":{"p25":35,"p50":40,"p75":45},"operations":{"p25":10,"p50":14,"p75":18},"sales":{"p25":15,"p50":20,"p75":25},"rd":{"p25":8,"p50":12,"p75":15}}},{"stage":"Series B","categoryBenchmarks":{"marketing":{"p25":22,"p50":27,"p75":32},"engineering":{"p25":30,"p50":35,"p75":40},"operations":{"p25":12,"p50":16,"p75":20},"sales":{"p25":18,"p50":23,"p75":28},"rd":{"p25":8,"p50":12,"p75":15}}},{"stage":"Growth","categoryBenchmarks":{"marketing":{"p25":25,"p50":30,"p75":35},"engineering":{"p25":25,"p50":30,"p75":35},"operations":{"p25":15,"p50":18,"p75":22},"sales":{"p25":20,"p50":25,"p75":30},"rd":{"p25":5,"p50":8,"p75":12}}}],"stages":["Seed","Series A","Series B","Growth"],"defaultStage":"Seed"}}
PL/SQLプロシージャが正常に完了しました。
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.31.0.1.0から切断されました
mcp-salesadb %
アプリケーションがインストールされます。
アプリケーションの編集を開き、アプリケーションの名前と別名を更新します。
アプリケーションを実行します。
最初にHandlersを開き、リモートMCPサーバーのエンドポイントとなるORDS RESTサービスをインストールします。
作成をクリックします。
ORDSのRESTモジュールとしてext-apps、テンプレートとしてmcp、そのテンプレートにPOSTハンドラとDELETEハンドラが作成されます。
Resourcesを開き、UIリソースとしてBudget Allocatorを作成します。
作成をクリックします。
Toolsを開き、ツールとしてget-budget-dataを作成します。
Description: Returns budget configuration with 24 months of historical allocations and industry benchmarks by company stage
Function Call: return bas_get_budget_data_response();
Tags: ext-apps


















