feat(mcp): add list_tags and get_tag_info MCP tools#12
Open
hbrooks wants to merge 6 commits into
Open
Conversation
Adds list_tags and get_tag_info MCP tools in a new superset/mcp_service/tag/ domain, following the existing database/dataset/dashboard patterns. Registers both tools in app.py and covers them with unit tests. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…upport
TagFilter documents 'ct' as a valid operator but ColumnOperatorEnum was
missing it, causing ValidationError when constructing TagFilter with opr="ct".
Added ct = "ct" with ilike("%val%") mapping, updated TYPE_OPERATOR_MAP for
string columns, and updated base_dao_test to cover the new operator.
…tils Remove duplicate _humanize_timestamp from 5 schema files (chart, dashboard, database, dataset, tag) and expose a single canonical humanize_timestamp in utils/response_utils. Use the timezone-aware implementation throughout.
…y interface Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Tag inherits AuditMixinNullable which provides both created_on and changed_on. The schema included changed_on but omitted created_on, leaving it inconsistent with all sibling schemas (chart, dashboard, dataset, database) which expose both timestamps. Adds created_on/created_on_humanized to TagInfo, serialize_tag_object, ALL_TAG_COLUMNS, SORTABLE_TAG_COLUMNS, and the list_tags docstring.
…tency All analogous item_serializer wrappers across chart, dashboard, dataset, and database list tools use `cols` (not `_cols`) as the parameter name. The underscore prefix is not needed — ruff ARG rules are not enabled, so unused function parameters are not flagged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mirror of apache/superset#40349 by @aminghadersohi