Skip to content

Commit 9d67ab1

Browse files
committed
fix: github workflows test
1 parent be4e2d1 commit 9d67ab1

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

packages/server/src/server/mcp.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,12 @@ export class McpServer {
115115
this.server.assertCanSetRequestHandler('tools/list');
116116
this.server.assertCanSetRequestHandler('tools/call');
117117

118-
118+
// Register tools capability BEFORE setting handlers
119+
this.server.registerCapabilities({
120+
tools: {
121+
listChanged: true
122+
}
123+
});
119124

120125
this.server.setRequestHandler(
121126
'tools/list',

packages/server/src/server/server.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@ export class Server extends Protocol<ServerContext> {
142142
},
143143
http: hasHttpInfo
144144
? {
145-
...ctx.http,
146-
req: transportInfo?.requestInfo,
147-
closeSSE: transportInfo?.closeSSEStream,
148-
closeStandaloneSSE: transportInfo?.closeStandaloneSSEStream
149-
}
145+
...ctx.http,
146+
req: transportInfo?.requestInfo,
147+
closeSSE: transportInfo?.closeSSEStream,
148+
closeStandaloneSSE: transportInfo?.closeStandaloneSSEStream
149+
}
150150
: undefined
151151
};
152152
}

0 commit comments

Comments
 (0)