From b005dc9eef55dfe871d8fb3fa83cd82ec8d90fd8 Mon Sep 17 00:00:00 2001 From: Mahesh Murag Date: Tue, 19 Nov 2024 17:58:02 -0500 Subject: [PATCH] Remove classes --- src/puppeteer/index.ts | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/puppeteer/index.ts b/src/puppeteer/index.ts index 8f8f7d34..9ad05cbe 100644 --- a/src/puppeteer/index.ts +++ b/src/puppeteer/index.ts @@ -269,10 +269,19 @@ async function handleToolCall(name: string, args: any): Promise<{ toolResult: Ca } } -const server = new Server({ - name: "example-servers/puppeteer", - version: "0.4.0", -}); +const server = new Server( + { + name: "example-servers/puppeteer", + version: "0.1.0", + }, + { + capabilities: { + resources: {}, + tools: {}, + }, + }, +); + // Setup request handlers server.setRequestHandler(ListResourcesRequestSchema, async () => ({