Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

620 B
Raw Blame
<?php

declare(strict_types=1);

/*
Routine MCP tool failure.

Throw McpToolError (instead of RuntimeException) for expected caller-side
failures: missing files, bad arguments, unknown models/themes/plugins,
sandbox escapes, disabled-write gates, caps. These return clean isError
results WITHOUT hitting the server error log, so an agent's early
trial-and-error exploration doesn't flood it.

Genuine problems (IO failures, DB outages, broken environments, coding
bugs) keep throwing RuntimeException/Error and are still logged with
traces under DEBUG in tools_call().
*/

class McpToolError extends RuntimeException {}