Skip to content

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

Merged
xuwei-fit2cloud merged 1 commit intodataease:mainfrom
llanc:main
Mar 2, 2026
Merged

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

Conversation

@llanc
Copy link
Contributor

@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.
@xuwei-fit2cloud xuwei-fit2cloud merged commit 0dd6536 into dataease:main Mar 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants