Skip to content

Commit bace06c

Browse files
committed
CI test debug
Signed-off-by: Akihiko Kuroda <akihikokuroda2020@gmail.com>
1 parent afc0359 commit bace06c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/pkg/mcp/handlers.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ func handleCreateVectorDatabase(ctx context.Context, request mcp.CallToolRequest
7878
GlobalServerState.Logger.Info("Created vector database",
7979
zap.String("name", dbName),
8080
zap.String("type", dbType),
81-
zap.Int("number of DB", len(GlobalServerState.VectorDBs)),
8281
zap.String("collection", collectionName))
8382

8483
return mcp.NewToolResultText(fmt.Sprintf("Successfully created %s vector database '%s' with collection '%s'",
@@ -90,11 +89,10 @@ func handleListDatabases(ctx context.Context, request mcp.CallToolRequest) (*mcp
9089
GlobalServerState.DBMutex.RLock()
9190
defer GlobalServerState.DBMutex.RUnlock()
9291

93-
if len(GlobalServerState.VectorDBs) == 0 {
94-
GlobalServerState.Logger.Info("No database")
95-
// For demonstration purposes, we'll return nil for now
96-
return nil, nil
97-
}
92+
//if len(GlobalServerState.VectorDBs) == 0 {
93+
// // For demonstration purposes, we'll return nil for now
94+
// return nil, nil
95+
//}
9896

9997
dbList := make([]map[string]interface{}, 0, len(GlobalServerState.VectorDBs))
10098
for dbName, db := range GlobalServerState.VectorDBs {

0 commit comments

Comments
 (0)