aminghadersohi opened a new pull request, #40300:
URL: https://github.com/apache/superset/pull/40300

   ### SUMMARY
   
   Adds `list_tags` and `get_tag_info` MCP tools in a new 
`superset/mcp_service/tag/` domain, following the established pattern used by 
the database, dataset, and dashboard domains.
   
   **New files:**
   - `superset/mcp_service/tag/__init__.py`
   - `superset/mcp_service/tag/schemas.py` — `TagFilter`, `TagInfo`, `TagList`, 
`ListTagsRequest`, `GetTagInfoRequest`, `TagError`, `serialize_tag_object()`
   - `superset/mcp_service/tag/tool/list_tags.py` — list tags with filtering, 
search, pagination
   - `superset/mcp_service/tag/tool/get_tag_info.py` — get a single tag by 
numeric ID
   - `tests/unit_tests/mcp_service/tag/tool/test_tag_tools.py` — unit tests 
covering basic listing, search, filters, empty results, error handling, 
not-found, and type serialization
   
   Both tools are registered in `app.py`.
   
   ### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
   
   N/A — MCP tool additions only.
   
   ### TESTING INSTRUCTIONS
   
   1. Run unit tests:
      ```bash
      pytest tests/unit_tests/mcp_service/tag/
      ```
   2. Start the MCP server and verify `list_tags` and `get_tag_info` appear in 
the tool list.
   3. Call `list_tags` with no arguments — should return the first page of tags.
   4. Call `get_tag_info` with a valid tag ID — should return tag name, type, 
and description.
   
   ### ADDITIONAL INFORMATION
   
   - [ ] Has associated issue:
   - [ ] Required feature flags:
   - [ ] Changes UI
   - [ ] Includes DB Migration
   - [ ] Introduces new feature or API
   - [x] Introduces new feature or API — adds two new MCP tools for tag 
discovery
   - [ ] Removes existing feature or API


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to