superset_config_get_base_url
Retrieve the configured base URL of the Superset instance to construct full resource URLs or display connection information for the MCP server.
Instructions
Get the base URL of the Superset instance
Returns the configured Superset base URL that this MCP server is connecting to. This can be useful for constructing full URLs to Superset resources or for displaying information about the connected instance.
This tool does not require authentication as it only returns configuration information.
Returns: A dictionary with the Superset base URL
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- main.py:1771-1792 (handler)The main handler function implementing the 'superset_config_get_base_url' tool. It retrieves the Superset base URL from the application context and returns it along with a descriptive message. Registered via @mcp.tool() decorator.@mcp.tool() @handle_api_errors async def superset_config_get_base_url(ctx: Context) -> Dict[str, Any]: """ Get the base URL of the Superset instance Returns the configured Superset base URL that this MCP server is connecting to. This can be useful for constructing full URLs to Superset resources or for displaying information about the connected instance. This tool does not require authentication as it only returns configuration information. Returns: A dictionary with the Superset base URL """ superset_ctx: SupersetContext = ctx.request_context.lifespan_context return { "base_url": superset_ctx.base_url, "message": f"Connected to Superset instance at: {superset_ctx.base_url}", }
- main.py:108-108 (helper)The lifespan context initialization where the base_url is set from the SUPERSET_BASE_URL constant, used by the tool.ctx = SupersetContext(client=client, base_url=SUPERSET_BASE_URL, app=app)
- main.py:59-60 (helper)Environment variable configuration for the Superset base URL, defaulting to localhost:8088.SUPERSET_BASE_URL = os.getenv("SUPERSET_BASE_URL", "http://localhost:8088") SUPERSET_USERNAME = os.getenv("SUPERSET_USERNAME")