Files
kandev/apps/backend/internal/agentctl/server/api/mcp_routes_test.go
T
2026-09-02 19:48:19 +00:00

20 lines
387 B
Go

package api
import "testing"
func TestMCPRoutesPreserveHTTPAndSSEPaths(t *testing.T) {
s := newTestServerWithMCP(t)
wants := map[string]bool{
"GET /sse": true,
"POST /message": true,
"POST /mcp": true,
}
for _, route := range s.router.Routes() {
delete(wants, route.Method+" "+route.Path)
}
if len(wants) != 0 {
t.Fatalf("missing MCP routes: %v", wants)
}
}