8000 feat(tool/looker-get-data-app-extension,tool/looker-get-dashboard): add get_data_app_extension tool and expose extension_id in get_dashboard by brettguenther · Pull Request #4564 · googleapis/mcp-toolbox · GitHub
[go: up one dir, main page]

Skip to content

feat(tool/looker-get-data-app-extension,tool/looker-get-dashboard): add get_data_app_extension tool and expose extension_id in get_dashboard - #4564

Open
brettguenther wants to merge 1 commit into
googleapis:mainfrom
brettguenther:feat/looker-get-data-app-extension
Open

brettguenther wants to merge 1 commit into
googleapis:mainfrom
brettguenther:feat/looker-get-data-app-extension

Conversation

@brettguenther
@brettguenther brettguenther commented Nov 20, 2026 •
Copy link
Copy Markdown
Contributor

Description

Adds the MCP read-back path for Looker Data Applications so stateless agentic clients can inspect an existing Data App dashboard, resolve its mounted db::<id> extension, and retrieve its metadata and published JavaScript ES module source code before applying incremental edits via update_data_app_extension:

  • looker-get-dashboard (get_dashboard): Includes folder_id, appearance, and dashboard_elements(..., extension_id, ...) in the requested Looker API fields projection so extension tiles report their mounted extension_id (db::<id> / app::<id>) alongside dashboard container metadata.
  • looker-get-data-app-extension (get_data_app_extension): New read-only tool (ReadOnlyAnnotations) accepting data_app_extension_id (<id> or db::<id>) and optional include_code (boolean, default true). Fetches metadata from GET /api/4.0/data_app_extension/{id} and, when include_code is true, fetches the published uncompressed JavaScript ES module source from GET /api/4.0/inline_extension/{id}/bundle.js via sdk.AuthSession.Do.
  • Prebuilt config, tests & docs: Registered in internal/prebuiltconfigs/tools/looker.yaml, cmd/internal/imports.go, cmd/internal/config_test.go, internal/tools/looker/looker_annotations_test.go, tests/looker/looker_integration_test.go, and Looker tool/prebuilt documentation.

PR Checklist

Thank you for opening a Pull Request! Before submitting your PR, there are a
few things you can do to make sure it goes smoothly:

  • Make sure you reviewed
    CONTRIBUTING.md
  • Make sure to open an issue as a
    bug/issue
    before writing your code! That way we can discuss the change, evaluate
    designs, and agree on the general idea
  • Ensure you have manually reviewed the entire diff before requesting a
    review
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)
  • Make sure to add ! if this involve a breaking change

🛠️ Fixes #4549

@drstrangelooker
Copy link
Copy Markdown
Contributor

/gcbrun

@gemini-code-assist gemini-code-assist Bot left a comment
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the new get_data_app_extension tool (type looker-get-data-app-extension) to retrieve metadata and published JavaScript ES module source code for Looker Data App Extensions. It includes the tool implementation, unit and integration tests, prebuilt configurations, and comprehensive documentation. Additionally, the looker-get-dashboard tool has been updated to retrieve and expose folder_id, appearance, and extension_id fields. I have no feedback to provide as there are no review comments to evalu 8000 ate.

This branch has not been deployed

No deployments
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.

feat(tools/looker): expose extension_id in looker-get-dashboard and add looker-get-data-app-extension (get_data_app_extension) tool

3 participants

0