Skip to content

chore(mcp): update CLAUDE.md to reflect current codebase patterns#39348

Merged
aminghadersohi merged 4 commits intoapache:masterfrom
aminghadersohi:amin/update-mcp-claude-md
Apr 15, 2026
Merged

chore(mcp): update CLAUDE.md to reflect current codebase patterns#39348
aminghadersohi merged 4 commits intoapache:masterfrom
aminghadersohi:amin/update-mcp-claude-md

Conversation

@aminghadersohi
Copy link
Copy Markdown
Contributor

SUMMARY

Updates superset/mcp_service/CLAUDE.md to reflect the current state of the MCP codebase after 90+ merged PRs since Jan 2025. This doc is used by LLM agents to understand MCP service conventions.

Key changes:

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A - documentation only

TESTING INSTRUCTIONS

  1. Read through the updated superset/mcp_service/CLAUDE.md
  2. Verify the documented patterns match what exists in the codebase (e.g., grep for from superset_core.mcp.decorators import tool)
  3. Confirm no references to removed patterns like @parse_request or superset_core.api.mcp

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

Copilot AI review requested due to automatic review settings April 14, 2026 16:05
@bito-code-review
Copy link
Copy Markdown
Contributor

bito-code-review bot commented Apr 14, 2026

Bito Automatic Review Skipped - Files Excluded

Bito didn't auto-review this change because all changed files are in the exclusion list for automatic reviews. No action is needed if you didn't intend for the agent to review it. Otherwise, to manually trigger a review, type /review in a comment and save.
You can change the excluded files settings here, or contact your Bito workspace admin at evan@preset.io.

@dosubot dosubot bot added the doc:developer Developer documentation label Apr 14, 2026
Comment thread superset/mcp_service/CLAUDE.md Outdated
Comment thread superset/mcp_service/CLAUDE.md Outdated
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 14, 2026

Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit 82354d1
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/69de9c707866ed00071f21f5
😎 Deploy Preview https://deploy-preview-39348--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates superset/mcp_service/CLAUDE.md to align MCP agent-facing documentation with current MCP service implementation patterns (decorator injection, RBAC, middleware, logging, and testing) after many merged changes since Jan 2025.

Changes:

  • Refreshes architecture/module map and explains dependency injection startup flow.
  • Replaces stale decorator/auth patterns with current superset_core.mcp.decorators + ToolAnnotations, RBAC guidance, and event_logger instrumentation.
  • Updates conventions for middleware, config, flexible input parsing, and async testing via fastmcp.Client.

Comment thread superset/mcp_service/CLAUDE.md Outdated
Comment thread superset/mcp_service/CLAUDE.md Outdated
Comment thread superset/mcp_service/CLAUDE.md
Comment thread superset/mcp_service/CLAUDE.md Outdated
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.45%. Comparing base (3e25f02) to head (9ffb504).
⚠️ Report is 9 commits behind head on master.

❌ Your project status has failed because the head coverage (99.81%) is below the target coverage (100.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #39348   +/-   ##
=======================================
  Coverage   64.45%   64.45%           
=======================================
  Files        2555     2555           
  Lines      132721   132747   +26     
  Branches    30802    30810    +8     
=======================================
+ Hits        85539    85568   +29     
+ Misses      45696    45688    -8     
- Partials     1486     1491    +5     
Flag Coverage Δ
hive 39.94% <ø> (-0.02%) ⬇️
mysql 60.62% <ø> (+0.02%) ⬆️
postgres 60.70% <ø> (+0.02%) ⬆️
presto 41.73% <ø> (-0.02%) ⬇️
python 62.29% <ø> (+0.02%) ⬆️
sqlite 60.33% <ø> (+0.02%) ⬆️
unit 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aminghadersohi aminghadersohi requested a review from Copilot April 14, 2026 17:01
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 3 comments.

Comment thread superset/mcp_service/CLAUDE.md Outdated
Comment thread superset/mcp_service/CLAUDE.md Outdated
Comment thread superset/mcp_service/CLAUDE.md Outdated
aminghadersohi and others added 3 commits April 14, 2026 15:58
Remove stale references and sync with 90+ merged MCP PRs since Jan 2025:

- Remove @parse_request decorator references (removed in apache#38918)
- Fix decorator import path: superset_core.mcp.decorators (not api.mcp)
- Add ToolAnnotations pattern (required since apache#38641)
- Add RBAC permission checking docs (apache#38407)
- Add event_logger instrumentation pattern (apache#37859)
- Add middleware documentation (apache#38523)
- Add compile check pattern for chart creation (apache#38408)
- Update auth docs: mcp_auth_hook only for resources, @tool handles tools
- Update config section with MCP_RBAC_ENABLED, cache, store configs
- Update testing conventions: async Client pattern, conftest fixtures
- Update architecture tree with all current modules
- Add dependency injection architecture explanation
- Remove stale line number references
- Fix broken pitfall #9 (identical good/bad examples)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Remove nonexistent database/ module from architecture tree and test org
- Fix caching docs: in-memory by default, Redis only when store enabled
- Add missing `from typing import Any` import in type hints example
- Use `model_dump()` instead of deprecated `dict()` (Pydantic v2)
Makes the excluded_tools config snippet copy/paste-safe by replacing
Python ellipsis literal with a descriptive comment.
@aminghadersohi aminghadersohi force-pushed the amin/update-mcp-claude-md branch from 38c7629 to 82354d1 Compare April 14, 2026 19:58
@sadpandajoe sadpandajoe added 🎪 ⚡ showtime-trigger Trigger showtime deployment 🎪 ⚡ showtime-trigger-start Create new ephemeral environment for this PR and removed 🎪 ⚡ showtime-trigger Trigger showtime deployment labels Apr 15, 2026
@github-actions github-actions bot added 🎪 82354d1 🚦 building Environment 82354d1 status: building 🎪 82354d1 📅 2026-04-15T09-51 Environment 82354d1 created at 2026-04-15T09-51 🎪 82354d1 🤡 sadpandajoe Environment 82354d1 requested by sadpandajoe and removed 🎪 ⚡ showtime-trigger-start Create new ephemeral environment for this PR labels Apr 15, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🎪 Showtime is building environment on GHA for 82354d1

@github-actions github-actions bot added 🎪 ⌛ 48h Environment expires after 48 hours (default) 🎪 82354d1 🚦 deploying Environment 82354d1 status: deploying and removed 🎪 82354d1 🚦 building Environment 82354d1 status: building labels Apr 15, 2026
@sadpandajoe
Copy link
Copy Markdown
Member

🎪 ⚡ showtime-trigger-start

@github-actions github-actions bot added 🎪 82354d1 🚦 running Environment 82354d1 status: running and removed 🎪 82354d1 🚦 deploying Environment 82354d1 status: deploying labels Apr 15, 2026
@github-actions github-actions bot added 🎪 🎯 82354d1 Active environment pointer - 82354d1 is receiving traffic 🎪 82354d1 🚦 running Environment 82354d1 status: running 🎪 82354d1 🌐 54.68.169.30:8080 Environment 82354d1 URL: http://54.68.169.30:8080 (click to visit) and removed 🎪 82354d1 🚦 running Environment 82354d1 status: running 🎪 🎯 82354d1 Active environment pointer - 82354d1 is receiving traffic labels Apr 15, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🎪 Showtime deployed environment on GHA for 82354d1

Environment: http://54.68.169.30:8080 (admin/admin)
Lifetime: 48h auto-cleanup
Updates: New commits create fresh environments automatically

- Replace markdown tables with bullet lists to fix rendering issues
- Make @mcp_auth_hook usage more explicit in resource example
@aminghadersohi
Copy link
Copy Markdown
Contributor Author

This is jus a claude.md change. it doesnt change the code. not sure why we need to test the environtment as this is really only for the development cycle.

@github-actions github-actions bot added 🎪 9ffb504 🚦 building Environment 9ffb504 status: building 🎪 9ffb504 📅 2026-04-15T14-42 Environment 9ffb504 created at 2026-04-15T14-42 🎪 9ffb504 🤡 aminghadersohi Environment 9ffb504 requested by aminghadersohi labels Apr 15, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🎪 Showtime is building environment on GHA for 9ffb504

@github-actions github-actions bot added 🎪 9ffb504 🚦 deploying Environment 9ffb504 status: deploying 🎪 9ffb504 🚦 running Environment 9ffb504 status: running 🎪 🎯 9ffb504 Active environment pointer - 9ffb504 is receiving traffic 🎪 9ffb504 🌐 44.248.57.88:8080 Environment 9ffb504 URL: http://44.248.57.88:8080 (click to visit) and removed 🎪 9ffb504 🚦 building Environment 9ffb504 status: building 🎪 9ffb504 🚦 deploying Environment 9ffb504 status: deploying 🎪 9ffb504 🚦 running Environment 9ffb504 status: running 🎪 🎯 9ffb504 Active environment pointer - 9ffb504 is receiving traffic 🎪 82354d1 📅 2026-04-15T09-51 Environment 82354d1 created at 2026-04-15T09-51 🎪 82354d1 🚦 running Environment 82354d1 status: running 🎪 82354d1 🌐 54.68.169.30:8080 Environment 82354d1 URL: http://54.68.169.30:8080 (click to visit) 🎪 82354d1 🤡 sadpandajoe Environment 82354d1 requested by sadpandajoe labels Apr 15, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🎪 Showtime deployed environment on GHA for 9ffb504

Environment: http://44.248.57.88:8080 (admin/admin)
Lifetime: 48h auto-cleanup
Updates: New commits create fresh environments automatically

@aminghadersohi aminghadersohi merged commit 724f148 into apache:master Apr 15, 2026
64 of 65 checks passed
@bito-code-review
Copy link
Copy Markdown
Contributor

Bito Automatic Review Skipped – PR Already Merged

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc:developer Developer documentation size/XL 🎪 9ffb504 🤡 aminghadersohi Environment 9ffb504 requested by aminghadersohi 🎪 9ffb504 🚦 running Environment 9ffb504 status: running 🎪 9ffb504 🌐 44.248.57.88:8080 Environment 9ffb504 URL: http://44.248.57.88:8080 (click to visit) 🎪 9ffb504 📅 2026-04-15T14-42 Environment 9ffb504 created at 2026-04-15T14-42 🎪 ⌛ 48h Environment expires after 48 hours (default)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants