Skip to content

Commit fd34d8e

Browse files
committed
fix: linting
1 parent 018f47b commit fd34d8e

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

internal/mcp/client/client_test.go

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -61,23 +61,6 @@ func setupMCPClient(t *testing.T, url string) *MCPConnection {
6161
}
6262
}
6363

64-
func checkConnection(t *testing.T, conn *MCPConnection) error {
65-
t.Log("Checking connection status...")
66-
// Create a context with a short timeout for the check
67-
checkCtx, cancel := context.WithTimeout(conn.ctx, 5*time.Second)
68-
defer cancel()
69-
70-
// Try a simple ListTools request to verify connection
71-
toolsRequest := mcp.ListToolsRequest{}
72-
_, err := conn.client.ListTools(checkCtx, toolsRequest)
73-
if err != nil {
74-
t.Logf("Connection check failed: %v", err)
75-
return err
76-
}
77-
t.Log("Connection check successful")
78-
return nil
79-
}
80-
8164
func TestMultipleMCPServers(t *testing.T) {
8265
// Define our MCP servers
8366
servers := []string{

internal/mcp/server.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@ func (c *MCPConnection) getTools() []mcp.Tool {
5757
return c.tools
5858
}
5959

60-
// updateTools updates the tools list in a thread-safe way
61-
func (c *MCPConnection) updateTools(tools []mcp.Tool) {
62-
c.mu.Lock()
63-
defer c.mu.Unlock()
64-
c.tools = tools
65-
}
66-
6760
// remoteConnections stores active connections to remote servers
6861
var remoteConnections = make(map[string]*MCPConnection)
6962
var connectionsMutex sync.RWMutex

0 commit comments

Comments
 (0)