Skip to content

Add storage commands with shared bucket path resolution - #47

Merged
padak merged 2 commits into
mainfrom
feature/storage-commands
Mar 24, 2026
Merged

Add storage commands with shared bucket path resolution#47
padak merged 2 commits into
mainfrom
feature/storage-commands

Conversation

@padak

@padak padak commented Mar 24, 2026

Copy link
Copy Markdown
Member

Summary

Resolves #35

New command namespace kbagent storage for direct Storage API access:

Command Description
storage buckets List buckets with sharing/linked info (source project, source bucket)
storage bucket-detail Resolve Snowflake paths for shared buckets
storage tables List tables by project/bucket

Key feature: Snowflake path resolution for shared buckets

kbagent --json storage bucket-detail --project slevomat --bucket-id in.c-db

Output:

Bucket: in.c-db
Linked from: Analyticky Tym (#1507)
Snowflake DB: sapi_1507
Snowflake schema: in.c-keboola-ex-db-mysql
Tables: 606

  ads_order    "sapi_1507"."in.c-keboola-ex-db-mysql"."ads_order"

MCP get_buckets strips this info -- agent can't resolve the correct Snowflake database for cross-project shared buckets. This command fills that gap.

Test plan

  • Tested on real Slevomat project with shared bucket from Analyticky Tym
  • Correctly resolves sapi_1507 instead of sapi_226
  • All 1045 tests pass, lint clean
  • Context and SKILL.md updated

Resolves #35. New command namespace `kbagent storage`:
- storage buckets: list buckets with sharing/linked metadata
- storage bucket-detail: resolve Snowflake paths for shared buckets
- storage tables: list tables by project/bucket

Key feature: bucket-detail resolves the correct Snowflake database
for linked/shared buckets (e.g. in.c-db linked from project 1507
-> "sapi_1507"."in.c-keboola-ex-db-mysql"."table_name"). This info
is not available via MCP tools.
@padak
padak merged commit 18b6261 into main Mar 24, 2026
1 check passed
@padak
padak deleted the feature/storage-commands branch March 24, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support shared/linked buckets from other projects in direct Storage access

1 participant