Skip to main content

Module tools

Module tools 

Source
Expand description

Single source of truth for all MCP tools.

Each entry declares the tool name, whether it requires a DB connection, and whether it is a write operation (blocked in restricted mode).

Adding a tool here automatically populates existence checks and restricted-mode enforcement. The dispatch match in server.rs must also be kept in sync — if they diverge, the test test_tool_registry_matches_dispatch will fail.

Structs§

ToolMeta

Constants§

ALL_TOOLS

Functions§

is_write_tool
needs_db
tool_exists