Skip to content

Commit 2e02c25

Browse files
committed
chore: remove cast
1 parent 7cfa855 commit 2e02c25

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/server/mcp.test.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,18 +97,17 @@ describe('McpServer', () => {
9797
},
9898
async ({ steps }, { sendNotification, _meta }) => {
9999
const progressToken = _meta?.progressToken;
100-
const stepCount = steps as number;
101100

102101
if (progressToken) {
103102
// Send progress notification for each step
104-
for (let i = 1; i <= stepCount; i++) {
103+
for (let i = 1; i <= steps; i++) {
105104
await sendNotification({
106105
method: 'notifications/progress',
107106
params: {
108107
progressToken,
109108
progress: i,
110-
total: stepCount,
111-
message: `Completed step ${i} of ${stepCount}`
109+
total: steps,
110+
message: `Completed step ${i} of ${steps}`
112111
}
113112
});
114113
}

0 commit comments

Comments
 (0)