Put signposts back into the trap into the fake files
.env, JSON, YAML, SQL and Git config carry URLs marked with the serving catch, so a later request shows where the address came from. MCP exposes the marker. Switch: Flypaper__Drip__Signposts. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7c11bf211e
commit
302b40c172
14 files changed
+199
-27
No files matched your search
@@ -49,6 +49,18 @@ public sealed class FlypaperToolsTests : IDisposable
|
||||
[Fact]
|
||||
public void List_active_is_empty_without_traps() => _tools.ListActive().Count.ShouldBe(0);
|
||||
|
||||
[Fact]
|
||||
public async Task List_catches_finds_the_catch_behind_a_signpost_marker()
|
||||
{
|
||||
var origin = (await _tools.ListCatches()).Catches[2];
|
||||
|
||||
var found = await _tools.ListCatches(marker: origin.Marker.ToUpperInvariant());
|
||||
|
||||
origin.Marker.Length.ShouldBe(12);
|
||||
found.Catches.ShouldHaveSingleItem().Id.ShouldBe(origin.Id);
|
||||
await Should.ThrowAsync<McpException>(() => _tools.ListCatches(marker: "not-a-marker"));
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task Get_stats_summarizes_the_period()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user