Skip to content

docs(mcp): add MCP server deployment and authentication guide - #38415

Merged
Antonio-RiveroMartnez merged 5 commits into
apache:masterfrom
aminghadersohi:amin/mcp-deployment-auth-docs
Mar 5, 2026
Merged

Antonio-RiveroMartnez merged 5 commits into
apache:masterfrom
aminghadersohi:amin/mcp-deployment-auth-docs

Conversation

@aminghadersohi

Copy link
Copy Markdown
Contributor

SUMMARY

Add comprehensive documentation for deploying and authenticating with the Superset MCP (Model Context Protocol) server.

The new guide (docs/developer_docs/extensions/mcp-server.md) covers:

  • Quick start — running the MCP server with superset mcp run
  • Authentication methods — development mode (MCP_DEV_USERNAME), JWT (RS256 with JWKS or static key, HS256 with shared secret), custom auth factories
  • Connecting AI clients — Claude Desktop, Claude Web, ChatGPT, Claude Code
  • Deployment — single-pod, Docker, and multi-pod (Kubernetes with Redis)
  • Configuration reference — all MCP config variables with defaults
  • Troubleshooting — common issues and solutions
  • Security notes

This is the open-source counterpart to existing Preset customer documentation, adapted to cover Superset's native authentication mechanisms and deployment options.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A — documentation only

TESTING INSTRUCTIONS

  1. Install docs dependencies: cd docs && yarn install
  2. Run the docs site locally: yarn start
  3. Navigate to Developer Docs → Extensions → MCP Server Deployment & Authentication
  4. Verify the new page renders correctly with all sections
  5. Verify the sidebar shows the new entry between "MCP Integration" and "Security"
  6. Optionally, follow the Quick Start section to verify the MCP server starts:
    pip install fastmcp
    superset mcp run --host 127.0.0.1 --port 5008

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

@bito-code-review

bito-code-review Bot commented Mar 4, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #8ff602

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: 959a9eb..959a9eb
    • docs/developer_docs/sidebars.js
  • Files skipped - 1
    • docs/developer_docs/extensions/mcp-server.md - Reason: Filter setting
  • Tools
    • Eslint (Linter) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - 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 documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@github-actions github-actions Bot added the doc Namespace | Anything related to documentation label Mar 4, 2026
@netlify

netlify Bot commented Mar 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit 9414408
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/69a9462f9185b60008edb665
😎 Deploy Preview https://deploy-preview-38415--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.

Add comprehensive documentation for deploying and authenticating with
the Superset MCP server for open source users. Covers development mode,
JWT authentication (RS256/HS256), connecting AI clients (Claude Desktop,
Claude Web, ChatGPT, Claude Code), single-pod and multi-pod deployment,
and full configuration reference.
…e config reference

- Replace ASCII art architecture diagrams with mermaid flowcharts
- Add auth decision flow mermaid diagram showing JWT/dev/custom paths
- Fix MCP_RESPONSE_SIZE_CONFIG excluded_tools (was missing generate_explore_link, open_sql_lab_with_context)
- Fix MCP_CACHE_CONFIG to include all keys (list_resources_ttl, list_prompts_ttl, read_resource_ttl, get_prompt_ttl, max_item_size, CACHE_KEY_PREFIX)
- Fix MCP_CACHE_CONFIG excluded_tools (was missing generate_chart, update_chart)
- Add missing config vars: MCP_SERVICE_URL, MCP_SESSION_CONFIG, MCP_CSRF_CONFIG
- Add per-key description tables for complex config objects
- Fix user resolution order to match actual code (subject attr -> client_id attr -> payload sub/email/username)
- Add Direct HTTP Requests section for curl usage
- Improve troubleshooting with specific commands and details
- Expand Security section into Security Best Practices with network isolation guidance
- Reorder AI client sections (Claude Desktop/Code first, then Web/ChatGPT)
…eteness

- Reorder Quick Start above Prerequisites so readers get running faster
- Add one-line intro to Quick Start summarizing the three-step flow
- Tighten prose throughout: shorter sentences, less redundancy
- Add cross-link from Quick Start step 3 to the full Connecting AI Clients section
- Add MCP_SERVICE_URL to the single-process deployment example (reverse proxy)
- Add explanatory sentence to Docker Compose section about shared config
- Add "Response too large" troubleshooting entry for the response size guard
- Normalize em dashes to double hyphens for plain-text consistency
- Lowercase sub-headings (e.g., "JWT Claims" -> "JWT claims") matching sibling docs
- Improve MCP_SERVICE_URL description in config reference table
Mermaid renders \n literally inside quoted node labels.
Replace all \n with <br/> in flowchart node text.
@bito-code-review

bito-code-review Bot commented Mar 5, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #d94083

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: c2b10c7..9414408
    • docs/developer_docs/sidebars.js
  • Files skipped - 1
    • docs/developer_docs/extensions/mcp-server.md - Reason: Filter setting
  • Tools
    • Eslint (Linter) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - 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 documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@Antonio-RiveroMartnez
Antonio-RiveroMartnez merged commit 0dbd4c5 into apache:master Mar 5, 2026
63 checks passed
@@ -0,0 +1,679 @@
---
title: MCP Server Deployment & Authentication

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@aminghadersohi or @rusackas what do you think about putting this in the admin section of the docs instead? Since it has to do with deployment rather than development?

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

Labels

doc Namespace | Anything related to documentation size/XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants