From ee59735f423ff4ea58416b3fa7171fbf5bda1f4b Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Wed, 20 Aug 2025 15:55:30 +0200 Subject: [PATCH] reset main --- src/mcp/proxyBackend.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mcp/proxyBackend.ts b/src/mcp/proxyBackend.ts index 7d4dd68..da186c4 100644 --- a/src/mcp/proxyBackend.ts +++ b/src/mcp/proxyBackend.ts @@ -78,7 +78,7 @@ export class ProxyBackend implements ServerBackend { if (!factory) throw new Error('Unknown connection method: ' + params.name); - await this._setCurrentClient(factory, params.options); + await this._setCurrentClient(factory); return { content: [{ type: 'text', text: '### Result\nSuccessfully changed connection method.\n' }], }; @@ -96,11 +96,9 @@ export class ProxyBackend implements ServerBackend { description: [ 'Connect to a browser using one of the available methods:', ...this._mcpProviders.map(factory => `- "${factory.name}": ${factory.description}`), - `By default, you're connected to the first method. Only call this tool to change it.`, ].join('\n'), inputSchema: zodToJsonSchema(z.object({ name: z.enum(this._mcpProviders.map(factory => factory.name) as [string, ...string[]]).default(this._mcpProviders[0].name).describe('The method to use to connect to the browser'), - options: z.any().optional().describe('Options for the connection method'), }), { strictUnions: true }) as Tool['inputSchema'], annotations: { title: 'Connect to a browser context',