Skip to content

Commit 7ac5a5f

Browse files
committed
Automatically register tools capability
1 parent 1506bd1 commit 7ac5a5f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/server/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,9 @@ export class Server<
360360
this.assertCanSetRequestHandler(ListToolsRequestSchema.shape.method.value);
361361
this.assertCanSetRequestHandler(CallToolRequestSchema.shape.method.value);
362362

363-
// TODO: Register tool capability
363+
this.registerCapabilities({
364+
tools: {},
365+
});
364366

365367
this.setRequestHandler(
366368
ListToolsRequestSchema,

0 commit comments

Comments
 (0)