Skip to content

fix: add missing comma in whitelist.py causing /mcp* routes to be unw…#925

Open
llanc wants to merge 1 commit intodataease:mainfrom
llanc:main
Open

fix: add missing comma in whitelist.py causing /mcp* routes to be unw…#925
llanc wants to merge 1 commit intodataease:mainfrom
llanc:main

Conversation

@llanc
Copy link

@llanc llanc commented Feb 27, 2026

…hitelisted

".css.map" was missing a trailing comma, causing Python's implicit string literal concatenation to merge it with the next entry into ".css.map/mcp*". This made the /mcp* whitelist rule never match, so all /mcp/* endpoints were blocked by TokenMiddleware with "Miss Token[X-SQLBOT-TOKEN]" even though they are intended to handle their own authentication internally.

…hitelisted

"*.css.map" was missing a trailing comma, causing Python's implicit string
literal concatenation to merge it with the next entry into "*.css.map/mcp*".
This made the /mcp* whitelist rule never match, so all /mcp/* endpoints
(mcp_start, mcp_question, mcp_get_sql, mcp_execute_sql, etc.) were blocked
by TokenMiddleware with "Miss Token[X-SQLBOT-TOKEN]" even though they are
intended to handle their own authentication internally.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant