From c1f1f77d5dff951be1425a03fff965e0a1065881 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 16 Mar 2026 04:19:43 +0200 Subject: Replace Summary: prefixes with standard Go package doc comments Co-Authored-By: Claude Opus 4.6 --- internal/mcp/server_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'internal/mcp/server_test.go') diff --git a/internal/mcp/server_test.go b/internal/mcp/server_test.go index 8e3d7b5..256b324 100644 --- a/internal/mcp/server_test.go +++ b/internal/mcp/server_test.go @@ -1,4 +1,4 @@ -// Summary: Tests for MCP server operations +// Tests for MCP server operations. package mcp import ( @@ -85,27 +85,27 @@ func readResponse(r io.Reader) (*Response, error) { if len(lines) == 0 { return nil, fmt.Errorf("no response data") } - + // Try to find a response (message with an ID) for _, line := range lines { if len(line) == 0 { continue } - + // Quick check if this might be a response (has "id" field) if !strings.Contains(line, `"id"`) { continue // Skip notifications } - + var resp Response if err := json.Unmarshal([]byte(line), &resp); err != nil { continue // Not a valid response, try next line } - + // Valid response found return &resp, nil } - + return nil, fmt.Errorf("no response found in output (only notifications)") } -- cgit v1.2.3