MCP allowlist registers built-ins when only extension tools are selected
Bug Description
In our tested Linux environment, an MCP endpoint configured to expose extension tools only registered the default built-in tools too. Hindsight filters and registers its built-ins before invoking the extension's tool registration hook. An extension-only list leaves the built-in set empty, and the built-in registration step interprets that empty set as a request for defaults.
Steps to Reproduce
Use an isolated test server with a no-op MCP extension. Set the allowlist to the extension tool and inspect the registered built-in tools. Repeat for the bank-scoped and multi-bank server configurations.
Expected Behavior
The extension tool is available and zero built-in tools are registered.
Actual Behavior
The built-in registration step falls back to its defaults, so the available tool list exceeds the configured list. The regression tests cover registration. Bank and tenant authorization checks are outside their scope.
Version
Upstream commit 80bd005fc. Both synthetic regression cases fail on the base. The focused MCP suite passes all 314 tests on the patch. The regression uses a stub and requires no model backend.