refactor: annotation presets (L5)

The 41 abilities return Annotations::read(), ::write(idempotent) or
::destructive(idempotent) instead of hand-written arrays (same arrays, same
key order).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01At3V6SjwbMe6eMzVGW3Hs7
This commit is contained in:
2026-09-26 18:33:14 +02:00
co-authored by Claude Opus 5.5
parent 9ed5d9d2fa
commit e04a5304f7
43 changed files with 133 additions and 41 deletions
@@ -5,6 +5,7 @@ declare(strict_types=1);
namespace LIT\MCP\Integrations\Media;
use LIT\MCP\Abilities\Ability;
use LIT\MCP\Abilities\Annotations;
use LIT\MCP\Abilities\Errors;
use LIT\MCP\Abilities\FollowUp;
use LIT\MCP\Abilities\ToolResult;
@@ -81,7 +82,7 @@ final class MediaDeleteAbility implements Ability
public function annotations(): array
{
return ['readonly' => false, 'destructive' => true, 'idempotent' => false];
return Annotations::destructive(false);
}
public function isDirect(): bool