Add read-only MCP server with token access
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b8328f6998
commit
49a8fa1154
34 files changed
+1625
No files matched your search
@@ -32,6 +32,8 @@ public sealed class PortSeparationTests
|
||||
[InlineData("unknown.example", "/")]
|
||||
[InlineData("203.0.113.7", "/settings")]
|
||||
[InlineData("example.com", "/.env")]
|
||||
[InlineData("unknown.example", "/mcp")]
|
||||
[InlineData("203.0.113.7", "/mcp")]
|
||||
public async Task Trap_port_traps_unknown_hosts_and_trap_paths(string host, string path)
|
||||
{
|
||||
var (reachedApp, status) = await SendAsync(TrapPort, host, path);
|
||||
@@ -44,6 +46,7 @@ public sealed class PortSeparationTests
|
||||
[InlineData("/")]
|
||||
[InlineData("/settings")]
|
||||
[InlineData("/login")]
|
||||
[InlineData("/mcp")]
|
||||
public async Task Trap_port_answers_other_paths_of_known_hosts_with_plain_404(string path)
|
||||
{
|
||||
var sink = Substitute.For<ITrapEventSink>();
|
||||
|
||||
Reference in new issue
Block a user