GitHub user dosubot[bot] added a comment to the discussion: Starting mcp server 
in 6.1.0rc1 in docker

<!-- Greeting -->
Hi @cabsil! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the 
superset team.

<!-- Answer -->
Hi Christophe,

The issue is that the [docker-bootstrap.sh script doesn't support an "mcp" 
argument](https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/docker/docker-bootstrap.sh)
 - it only handles `worker`, `beat`, `app`, and `app-gunicorn`. The MCP service 
also requires a separate ASGI server (uvicorn) and can't run within Flask's 
application context, which is why you're seeing that error.

To run the MCP server in Docker:

1. **Enable MCP** in your Superset configuration:
   ```python
   ENABLE_MCP_SERVICE = True
   ```

2. **Modify your container command** to run MCP directly instead of using 
docker-bootstrap.sh:
   ```yaml
   command: ["superset", "mcp", "run", "--port", "5008"]
   ```

   Or create a custom entrypoint script that runs uvicorn with the MCP service.

The MCP service is designed to run as a [separate ASGI process outside the 
Flask application](https://github.com/apache/superset/issues/33870), not as 
part of the standard Superset worker/app infrastructure.

Let me know if you need help creating a custom bootstrap script for the MCP 
container!


<!-- Dosu Comment Footer -->
*To reply, just mention 
[@dosu](https://go.dosu.dev/dosubot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=brand-link).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/426ff784-b75d-459b-8d1d-5925c7b3f639?feedback_type=great_response&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/426ff784-b75d-459b-8d1d-5925c7b3f639?feedback_type=irrelevant_answer&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/426ff784-b75d-459b-8d1d-5925c7b3f639?feedback_type=incorrect_sources&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/426ff784-b75d-459b-8d1d-5925c7b3f639?feedback_type=too_verbose&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-too_verbose)
 | [Hallucination](https://app.dosu.dev/response-feedback/426ff784-b75d-45
 
9b-8d1d-5925c7b3f639?feedback_type=hallucination&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-hallucination)
 | [Report 
šŸ›](https://app.dosu.dev/response-feedback/426ff784-b75d-459b-8d1d-5925c7b3f639?feedback_type=bug_report&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/426ff784-b75d-459b-8d1d-5925c7b3f639?feedback_type=other&utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=feedback-other)</sup>

[![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=chat-badge)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=Hi%20Christophe%2C%0A%0AThe%20issue%20is%20that%20the%20%5Bdocker-bootstrap.sh%20script%20doesn%27t%20support%20an%20%22mcp%22%20argument%5D%28https%3A//github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/docker/docker-bootstrap.sh%29%20-%20it%20only%20handles%20%60worker%60%2C%20%60beat%60%2C%20%60app%60%2C%20and%20%60app-gunicorn%60.%20The%20MCP%20service%20also%20requires%20a%20separate%20ASGI%20server%20%28uvicorn%29%20and%20can%27t%20run%20within%20Flask%27s%20application%20context%2C%20which%20is%20why%20you%27re%20seeing%20that%20error.%0A%0ATo%20run%20the%20MCP%20server%20in%20Docker%3A%0A%0A1.%20%2A%2AEnable%20MCP%2A%2A%20in%20your%20Superset%20co
 
nfiguration%3A%0A%20%20%20%60%60%60python%0A%20%20%20ENABLE_MCP_SERVICE%20%3D%20True%0A%20%20%20%60%60%60%0A%0A2.%20%2A%2AModify%20your%20container%20command%2A%2A%20to%20run%20MCP%20directly%20instead%20of%20using%20docker-bootstrap.sh%3A%0A%20%20%20%60%60%60yaml%0A%20%20%20command%3A%20%5B%22superset%22%2C%20%22mcp%22%2C%20%22run%22%2C%20%22--port%22%2C%20%225008%22%5D%0A%20%20%20%60%60%60%0A%0A%20%20%20Or%20create%20a%20custom%20entrypoint%20script%20that%20runs%20uvicorn%20with%20the%20MCP%20service.%0A%0AThe%20MCP%20service%20is%20designed%20to%20run%20as%20a%20%5Bseparate%20ASGI%20process%20outside%20the%20Flask%20application%5D%28https%3A//github.com/apache/superset/issues/33870%29%2C%20not%20as%20part%20of%20the%20standard%20Superset%20worker/app%20infrastructure.%0A%0ALet%20me%20know%20if%20you%20need%20help%20creating%20a%20custom%20bootstrap%20script%20for%20the%20MCP%20container%21)&nbsp;[![Join
 Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=whi
 
te&label=)](https://go.dosu.dev/discord-bot?utm_source=github&utm_medium=bot-comment&utm_campaign=github-assistant&utm_content=join-discord)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/discussions/38703)

GitHub link: 
https://github.com/apache/superset/discussions/38703#discussioncomment-16184489

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


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

Reply via email to