feat: MCP tools for events (list/get/create/update/delete/done/ack); EventRules shared by /api and manual

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BCrwHHnGCB5XH968Nxokqw
This commit is contained in:
nikita.hohlov
2026-09-05 06:10:41 -03:00
parent 450c165fce
commit ed45a1d516
18 changed files with 711 additions and 56 deletions

View File

@@ -126,12 +126,13 @@ class EventUpserterTest extends TestCase
$this->assertNull($event->due_date);
}
public function test_withdraw_marks_withdrawn_and_reports_missing(): void
public function test_withdraw_marks_withdrawn(): void
{
$this->upserter->upsert($this->source, [$this->item()]);
$this->assertTrue($this->upserter->withdraw($this->source, 'document:918', 'expiry'));
$this->upserter->withdraw($this->upserter->find($this->source, 'document:918', 'expiry'));
$this->assertSame(EventState::Withdrawn, Event::sole()->state);
$this->assertFalse($this->upserter->withdraw($this->source, 'document:918', 'other'));
$this->assertNull($this->upserter->find($this->source, 'document:918', 'other'));
}
}