Skip to main content

Module read_only

Module read_only 

Source
Expand description

rejection of anything but read-only queries

Constants§

ADMIN_ONLY_READ_FUNCTIONS
Admin-only read functions. They are not mutating, but no admin feature is reachable through MCP; the admin/non-admin comparison test keeps this list complete.

Functions§

check_read_only
Accepts a single read-only SELECT-style query and rejects everything else: other statement kinds, several statements, and calls to mutating or admin-only functions anywhere in the query.
is_denied_function
Whether name (compared case-insensitively) is a function the MCP layer refuses to call.