You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "aminghadersohi (via GitHub)" <gi...@apache.org> on 2026/08/25 23:07:32 UTC
[PR] fix(mcp): add open-world tool annotations [superset]
aminghadersohi opened a new pull request, #43529:
URL: https://github.com/apache/superset/pull/43529
### SUMMARY
The MCP `ToolAnnotations` model includes `openWorldHint` so clients can distinguish tools that stay within a deployment boundary from tools that may interact with external entities. On current `master`, Superset registers 70 MCP tools; all 70 declared `title`, `readOnlyHint`, and `destructiveHint`, but none declared `openWorldHint`.
This change adds an explicit `openWorldHint=False` to every registered tool and adds a registration test that requires every advertised tool to provide `title`, `readOnlyHint`, `destructiveHint`, and `openWorldHint`. The MCP contributor guide is updated so new tools follow the same convention. The broad file count is unavoidable because each tool owns its `ToolAnnotations` declaration and the classification must be explicit at that declaration.
#### Open-world classification
No tool is marked `openWorldHint=True`:
- Metadata read/write tools operate on Superset's metadata database.
- Query tools operate on databases and semantic views configured as Superset datasources, which are part of the deployment's data boundary rather than an open-ended external entity set.
- `generate_explore_link` and `open_sql_lab_with_context` construct Superset-local URLs without fetching them.
- Report tools inspect report configuration but do not send reports or notifications.
- `generate_bug_report` formats local diagnostic data for the caller to copy; it does not submit the report.
Superset currently exposes no MCP tool that fetches an arbitrary external URL, sends mail or alerts, or calls a third-party service.
#### Output schemas
`outputSchema` is intentionally out of scope for this focused annotation change. FastMCP already derives internal output schemas for all 70 registered functions from their return annotations. Superset's `StructuredContentStripperMiddleware` deliberately removes those schemas together with structured content because some MCP client transports cannot encode or validate the structured responses correctly. Advertising output schemas therefore requires a separate compatibility change that pairs schemas with structured results and transport coverage; it is not a schema-derivation task.
#### Blast radius and risk
This only changes MCP `tools/list` metadata and contributor guidance. Tool inputs, outputs, permissions, and execution paths are unchanged. The main risk is an incorrect behavioral classification; each current tool was reviewed against the MCP open-world definition, and the registration test prevents future tools from silently omitting the field. Rollback is a revert of this commit.
### BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Not applicable; there is no UI change.
### TESTING INSTRUCTIONS
- `uvx pre-commit run --files $(git diff --name-only origin/master...HEAD)`
- Includes mypy, Ruff formatting/linting, and pylint.
- Full MCP unit suite: `PYTHONPATH="$PWD/superset-core/src" pytest -q tests/unit_tests/mcp_service`
- `3562 passed`
- Registration inventory: 70 tools registered; no missing required annotations; no tools with `openWorldHint=True`.
### EVAL EVIDENCE
Not applicable. This changes deterministic tool-discovery metadata only; tool selection descriptions, arguments, results, and behavior are unchanged.
### COST AND LATENCY DELTA
No tool-call runtime, model, prompt, or parameter changes. `tools/list` adds one boolean annotation per tool.
### PROMPT / NON-DETERMINISM
No prompt, model-routing, or non-deterministic behavior changes.
### ADDITIONAL INFORMATION
- [ ] Has associated issue:
- [ ] Required feature flags:
- [ ] Changes UI
- [ ] Includes DB Migration (follow approval process in [SIP-59](https://github.com/apache/superset/issues/13351))
- [ ] Migration is atomic, supports rollback & is backwards-compatible
- [ ] Confirm DB migration upgrade and downgrade tested
- [ ] Runtime estimates and downtime expectations provided
- [x] Introduces new feature or API
- [ ] 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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(mcp): add open-world tool annotations [superset]
Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on code in PR #43529:
URL: https://github.com/apache/superset/pull/43529#discussion_r3865110516
##########
tests/unit_tests/mcp_service/test_mcp_tool_registration.py:
##########
@@ -57,6 +57,31 @@ def test_mcp_app_imports_successfully():
assert "list_charts" in tool_names
+def test_all_registered_tools_have_complete_annotations():
+ """Every advertised tool declares all MCP safety annotations."""
+ required_fields = (
+ "title",
+ "readOnlyHint",
+ "destructiveHint",
+ "openWorldHint",
+ )
+ missing_by_tool = {}
+
+ for registered_tool in _run(mcp.list_tools()):
+ annotations = registered_tool.annotations
+ missing = [
+ field
+ for field in required_fields
+ if annotations is None or getattr(annotations, field, None) is None
+ ]
+ if missing:
+ missing_by_tool[registered_tool.name] = missing
+
+ assert not missing_by_tool, (
+ f"Registered MCP tools have incomplete annotations: {missing_by_tool}"
+ )
Review Comment:
```suggestion
missing_by_tool = {}
open_world_tools = []
for registered_tool in _run(mcp.list_tools()):
annotations = registered_tool.annotations
missing = [
field
for field in required_fields
if annotations is None or getattr(annotations, field, None) is None
]
if missing:
missing_by_tool[registered_tool.name] = missing
elif annotations.openWorldHint is not False:
open_world_tools.append(registered_tool.name)
assert not missing_by_tool, (
f"Registered MCP tools have incomplete annotations: {missing_by_tool}"
)
assert not open_world_tools, (
f"Tools must be explicitly closed-world (openWorldHint=False): {open_world_tools}"
)
```
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(mcp): add open-world tool annotations [superset]
Posted by "netlify[bot] (via GitHub)" <gi...@apache.org>.
netlify[bot] commented on PR #43529:
URL: https://github.com/apache/superset/pull/43529#issuecomment-5418143005
### <span aria-hidden="true">✅</span> Deploy Preview for *superset-docs-preview* ready!
| Name | Link |
|:-:|------------------------|
|<span aria-hidden="true">🔨</span> Latest commit | 09741f75457dc33855f4c6ea0debe7dd3a2831a9 |
|<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/projects/superset-docs-preview/deploys/6a8e2033768b9d00084df036 |
|<span aria-hidden="true">😎</span> Deploy Preview | [https://deploy-preview-43529--superset-docs-preview.netlify.app](https://deploy-preview-43529--superset-docs-preview.netlify.app) |
|<span aria-hidden="true">📱</span> Preview on mobile | <details><summary> Toggle QR Code... </summary><br /><br /><br /><br />_Use your smartphone camera to open QR code link._</details> |
|<span aria-hidden="true">🤖</span> Make changes | [Run an agent on this branch](https://app.netlify.com/projects/superset-docs-preview/agent-runs#DctRCsMgDADQu-S7sjCHdbvBjpE2bgo1CVYoZfTu8-_9vB9Y02odXgATLI1kzcNUi3wzcWq75nKrqzm1JO7QtrEjEe3Ui8o-Eifb9HzzaIFiuqP3c4jLkxExPviDPsD1Bw) |
---
<!-- [superset-docs-preview Preview](https://deploy-preview-43529--superset-docs-preview.netlify.app) -->
_To edit notification comments on pull requests, go to your [Netlify project configuration](https://app.netlify.com/projects/superset-docs-preview/configuration/notifications#deploy-notifications)._
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(mcp): add open-world tool annotations [superset]
Posted by "codeant-ai-for-open-source[bot] (via GitHub)" <gi...@apache.org>.
codeant-ai-for-open-source[bot] commented on code in PR #43529:
URL: https://github.com/apache/superset/pull/43529#discussion_r3858464045
##########
tests/unit_tests/mcp_service/test_mcp_tool_registration.py:
##########
@@ -57,6 +57,31 @@ def test_mcp_app_imports_successfully():
assert "list_charts" in tool_names
+def test_all_registered_tools_have_complete_annotations():
+ """Every advertised tool declares all MCP safety annotations."""
+ required_fields = (
+ "title",
+ "readOnlyHint",
+ "destructiveHint",
+ "openWorldHint",
+ )
+ missing_by_tool = {}
+
+ for registered_tool in _run(mcp.list_tools()):
+ annotations = registered_tool.annotations
+ missing = [
+ field
+ for field in required_fields
+ if annotations is None or getattr(annotations, field, None) is None
Review Comment:
**Suggestion:** The registration test only checks that `openWorldHint` is non-`None`, so an accidental `openWorldHint=True` would pass even though this change requires every registered tool to be explicitly classified as closed-world. Assert the expected boolean value for each tool, or at least assert that all advertised tools have `openWorldHint is False`, so future annotation changes cannot silently weaken the safety classification. [incorrect condition logic]
<details>
<summary><b>Severity Level:</b> Major ⚠️</summary>
```mdx
- ⚠️ Future tools can advertise incorrect open-world semantics.
- ⚠️ MCP clients may apply weaker trust or confirmation handling.
- ⚠️ Registration tests would not detect policy regressions.
```
</details>
[](https://docs.codeant.ai/cli/resolve-pr-comments-skill) [](https://app.codeant.ai/fix-in-ide?tool=cursor&prompt_id=9f41294887d54ca1ab145b711113ae40&service=github&base_url=https%3A%2F%2Fgithub.com&org=apache&repo=apache%2Fsuperset) [](https://app.codeant.ai/fix-in-ide?tool=vscode-claude&prompt_id=9f41294887d54ca1ab145b711113ae40&service=github&base_url=https%3A%2F%2Fgithub.com&org=apache&repo=apache%2Fsuperset)
<details>
<summary><b>Prompt for AI Agent 🤖 </b></summary>
```mdx
This is a comment left during a code review.
**Path:** tests/unit_tests/mcp_service/test_mcp_tool_registration.py
**Line:** 62:75
**Comment:**
*Incorrect Condition Logic: The registration test only checks that `openWorldHint` is non-`None`, so an accidental `openWorldHint=True` would pass even though this change requires every registered tool to be explicitly classified as closed-world. Assert the expected boolean value for each tool, or at least assert that all advertised tools have `openWorldHint is False`, so future annotation changes cannot silently weaken the safety classification.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix
```
</details>
<a href='https://app.codeant.ai/feedback?pr_url=https%3A%2F%2Fgithub.com%2Fapache%2Fsuperset%2Fpull%2F43529&comment_hash=79fdd04bed86127f8cbe543d1dca9a729b9de5fea893185f1fba12128fe7bde9&reaction=like'>👍</a> | <a href='https://app.codeant.ai/feedback?pr_url=https%3A%2F%2Fgithub.com%2Fapache%2Fsuperset%2Fpull%2F43529&comment_hash=79fdd04bed86127f8cbe543d1dca9a729b9de5fea893185f1fba12128fe7bde9&reaction=dislike'>👎</a>
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(mcp): add open-world tool annotations [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #43529:
URL: https://github.com/apache/superset/pull/43529#issuecomment-5419844694
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
<details>
<summary>
Bito Usage Guide
</summary>
**Commands**
Type the following command in the pull request comment and save the comment.
- `/review` - Manually triggers an incremental AI Review.
- `/review full` - Manually triggers a full AI Review.
- `/pause` - Pauses automatic reviews on this pull request.
- `/resume` - Resumes automatic reviews.
- `/resolve` - Marks all Bito-posted review comments as resolved.
- `/abort` - Cancels all in-progress reviews.
Refer to the <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/available-commands" target="_blank" rel="noopener noreferrer">documentation</a> for additional commands.
**Configuration**
This repository uses `Superset` You can customize the agent settings <a href="https://alpha.bito.ai/home/ai-agents/code-review-agent" target="_blank" rel="noopener noreferrer">here</a> or contact your Bito workspace admin at evan@preset.io.
**Documentation & Help**
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/getting-started/install-run-using-bito-cloud/create-or-customize-an-agent-instance" target="_blank" rel="noopener noreferrer">Customize agent settings</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/implementing-custom-code-review-rules" target="_blank" rel="noopener noreferrer">Review rules</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent" target="_blank" rel="noopener noreferrer">General documentation</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/faqs" target="_blank" rel="noopener noreferrer">FAQ</a>
</details>
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(mcp): add open-world tool annotations [superset]
Posted by "aminghadersohi (via GitHub)" <gi...@apache.org>.
aminghadersohi commented on code in PR #43529:
URL: https://github.com/apache/superset/pull/43529#discussion_r3865202465
##########
tests/unit_tests/mcp_service/test_mcp_tool_registration.py:
##########
@@ -57,6 +57,31 @@ def test_mcp_app_imports_successfully():
assert "list_charts" in tool_names
+def test_all_registered_tools_have_complete_annotations():
+ """Every advertised tool declares all MCP safety annotations."""
+ required_fields = (
+ "title",
+ "readOnlyHint",
+ "destructiveHint",
+ "openWorldHint",
+ )
+ missing_by_tool = {}
+
+ for registered_tool in _run(mcp.list_tools()):
+ annotations = registered_tool.annotations
+ missing = [
+ field
+ for field in required_fields
+ if annotations is None or getattr(annotations, field, None) is None
+ ]
+ if missing:
+ missing_by_tool[registered_tool.name] = missing
+
+ assert not missing_by_tool, (
+ f"Registered MCP tools have incomplete annotations: {missing_by_tool}"
+ )
Review Comment:
Fixed in 5aa02f9a77. The registration test now records every tool whose `openWorldHint` is not exactly `False` and reports the offending tool names. The registration suite passes (16 tests), and pre-commit passes.
##########
tests/unit_tests/mcp_service/test_mcp_tool_registration.py:
##########
@@ -57,6 +57,31 @@ def test_mcp_app_imports_successfully():
assert "list_charts" in tool_names
+def test_all_registered_tools_have_complete_annotations():
+ """Every advertised tool declares all MCP safety annotations."""
+ required_fields = (
+ "title",
+ "readOnlyHint",
+ "destructiveHint",
+ "openWorldHint",
+ )
+ missing_by_tool = {}
+
+ for registered_tool in _run(mcp.list_tools()):
+ annotations = registered_tool.annotations
+ missing = [
+ field
+ for field in required_fields
+ if annotations is None or getattr(annotations, field, None) is None
Review Comment:
Fixed in 5aa02f9a77. The test now fails if any registered tool has `openWorldHint` set to anything other than `False`, while retaining the completeness check for all required annotations.
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(mcp): add open-world tool annotations [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #43529:
URL: https://github.com/apache/superset/pull/43529#issuecomment-5430816589
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
<details>
<summary>
Bito Usage Guide
</summary>
**Commands**
Type the following command in the pull request comment and save the comment.
- `/review` - Manually triggers an incremental AI Review.
- `/review full` - Manually triggers a full AI Review.
- `/pause` - Pauses automatic reviews on this pull request.
- `/resume` - Resumes automatic reviews.
- `/resolve` - Marks all Bito-posted review comments as resolved.
- `/abort` - Cancels all in-progress reviews.
Refer to the <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/available-commands" target="_blank" rel="noopener noreferrer">documentation</a> for additional commands.
**Configuration**
This repository uses `Superset` You can customize the agent settings <a href="https://alpha.bito.ai/home/ai-agents/code-review-agent" target="_blank" rel="noopener noreferrer">here</a> or contact your Bito workspace admin at evan@preset.io.
**Documentation & Help**
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/getting-started/install-run-using-bito-cloud/create-or-customize-an-agent-instance" target="_blank" rel="noopener noreferrer">Customize agent settings</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/implementing-custom-code-review-rules" target="_blank" rel="noopener noreferrer">Review rules</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent" target="_blank" rel="noopener noreferrer">General documentation</a>
- <a href="https://docs.bito.ai/bito-dev-agents/ai-code-review-agent/faqs" target="_blank" rel="noopener noreferrer">FAQ</a>
</details>
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(mcp): add open-world tool annotations [superset]
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #43529:
URL: https://github.com/apache/superset/pull/43529#issuecomment-5418353324
## [Codecov](https://app.codecov.io/gh/apache/superset/pull/43529?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 66.08%. Comparing base ([`649d6f1`](https://app.codecov.io/gh/apache/superset/commit/649d6f1b41fe4a84483ba8f243c50e56ddb4622f?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`09741f7`](https://app.codecov.io/gh/apache/superset/commit/09741f75457dc33855f4c6ea0debe7dd3a2831a9?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 1 commits behind head on master.
> :exclamation: There is a different number of reports uploaded between BASE (649d6f1) and HEAD (09741f7). Click for more details.
>
> <details><summary>HEAD has 5 uploads less than BASE</summary>
>
>| Flag | BASE (649d6f1) | HEAD (09741f7) |
>|------|------|------|
>|python|8|3|
></details>
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## master #43529 +/- ##
===========================================
- Coverage 78.93% 66.08% -12.85%
===========================================
Files 2877 2877
Lines 165287 165287
Branches 38191 38191
===========================================
- Hits 130466 109236 -21230
- Misses 32359 53830 +21471
+ Partials 2462 2221 -241
```
| [Flag](https://app.codecov.io/gh/apache/superset/pull/43529/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | |
|---|---|---|
| [hive](https://app.codecov.io/gh/apache/superset/pull/43529/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `38.02% <ø> (ø)` | |
| [mysql](https://app.codecov.io/gh/apache/superset/pull/43529/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [postgres](https://app.codecov.io/gh/apache/superset/pull/43529/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
| [presto](https://app.codecov.io/gh/apache/superset/pull/43529/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `39.95% <ø> (ø)` | |
| [python](https://app.codecov.io/gh/apache/superset/pull/43529/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `57.63% <ø> (-25.95%)` | :arrow_down: |
| [sqlite](https://app.codecov.io/gh/apache/superset/pull/43529/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `57.49% <ø> (ø)` | |
| [unit](https://app.codecov.io/gh/apache/superset/pull/43529/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `?` | |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#carryforward-flags-in-the-pull-request-comment) to find out more.
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/superset/pull/43529?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :snowflake: [Test Analytics](https://docs.codecov.com/docs/test-analytics): Detect flaky tests, report on failures, and find test suite problems.
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(mcp): add open-world tool annotations [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #43529:
URL: https://github.com/apache/superset/pull/43529#issuecomment-5418124406
AI Code Review is in progress (usually takes 3 to 15 minutes unless it's a very large PR).
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(mcp): add open-world tool annotations [superset]
Posted by "aminghadersohi (via GitHub)" <gi...@apache.org>.
aminghadersohi merged PR #43529:
URL: https://github.com/apache/superset/pull/43529
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(mcp): add open-world tool annotations [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #43529:
URL: https://github.com/apache/superset/pull/43529#issuecomment-5445634443
**Bito Automatic Review Skipped – PR Already Merged**<br/><br/>Bito scheduled an automatic review for this pull request, but the review was skipped because this PR was merged before the review could be run.<br/>No action is needed if you didn't intend to review it. To get a review, you can type `/review` in a comment and save it
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [PR] fix(mcp): add open-world tool annotations [superset]
Posted by "bito-code-review[bot] (via GitHub)" <gi...@apache.org>.
bito-code-review[bot] commented on PR #43529:
URL: https://github.com/apache/superset/pull/43529#issuecomment-5418526900
<!-- Bito Reply -->
The review comment is correct. The current test only verifies that the `openWorldHint` attribute exists (is not `None`), but it does not enforce that the value is `False`, which is the intended safety classification for these tools. To resolve this, the test should explicitly assert that `openWorldHint` is `False` for all registered tools.
Here is the corrected test logic:
```python
for registered_tool in _run(mcp.list_tools()):
annotations = registered_tool.annotations
# Assert that openWorldHint is explicitly False
assert annotations.openWorldHint is False, f"Tool {registered_tool.name} must have openWorldHint=False"
```
Would you like me to fetch all other comments on this PR to validate and implement fixes for them as well?
**tests/unit_tests/mcp_service/test_mcp_tool_registration.py**
```
for registered_tool in _run(mcp.list_tools()):
annotations = registered_tool.annotations
# Assert that openWorldHint is explicitly False
assert annotations.openWorldHint is False, f"Tool {registered_tool.name} must have openWorldHint=False"
```
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org