Skip to content

Commit bdfd52d

Browse files
committed
feat: adding snapshot crud tool
1 parent 51a177f commit bdfd52d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

integration/test/snapshot_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func verifySnapshot(snapshotNames []string, exist bool, snapshotCount int) func(
134134
return false
135135
}
136136
if data.NumRecords != 1 {
137-
t.Errorf("verifySnapshot: expected 1 record, got %d", data.NumRecords)
137+
t.Errorf("verifySnapshot: expected %d records, got %d", snapshotCount, data.NumRecords)
138138
return false
139139
}
140140
volumeUUID := data.Records[0].UUID

server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func (a *App) createMCPServer() *mcp.Server {
100100
// operation on Snapshot object
101101
addTool(a, server, "create_snapshot", descriptions.CreateSnapshot, createAnnotation, a.CreateSnapshot)
102102
addTool(a, server, "delete_snapshot", descriptions.DeleteSnapshot, deleteAnnotation, a.DeleteSnapshot)
103-
addTool(a, server, "restore_snapshot", descriptions.RestoreSnapshot, deleteAnnotation, a.RestoreSnapshot)
103+
addTool(a, server, "restore_snapshot", descriptions.RestoreSnapshot, updateAnnotation, a.RestoreSnapshot)
104104

105105
// operation on Snapshot Policy object
106106
addTool(a, server, "create_snapshot_policy", descriptions.CreateSnapshotPolicy, createAnnotation, a.CreateSnapshotPolicy)

0 commit comments

Comments
 (0)