@roxybrowser/openapi 1.0.10 → 1.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.cts CHANGED
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env node
2
+ import { Transport } from '@modelcontextprotocol/sdk/shared/transport.js';
3
+
2
4
  declare class CreateBrowser {
3
5
  name: string;
4
6
  description: string;
@@ -5448,6 +5450,7 @@ declare function request<T = any>(endpoint: string, options?: RequestInit): Prom
5448
5450
  * Model Context Protocol server for RoxyBrowser automation.
5449
5451
  * Supports: CLI startup, programmatic (in-process) startup, and library usage for secondary development.
5450
5452
  */
5453
+
5451
5454
  declare const TOOLS: ({
5452
5455
  name: string;
5453
5456
  description: string;
@@ -5952,6 +5955,12 @@ declare class RoxyBrowserMCPServer {
5952
5955
  private server;
5953
5956
  constructor();
5954
5957
  private setupHandlers;
5958
+ /**
5959
+ * Connect the server to any MCP transport (stdio, InMemoryTransport, SSE, etc.).
5960
+ * Use this for in-process embedding — e.g. passing an InMemoryTransport from
5961
+ * @modelcontextprotocol/sdk to avoid spawning a subprocess.
5962
+ */
5963
+ connect(transport: Transport): Promise<void>;
5955
5964
  run(): Promise<void>;
5956
5965
  }
5957
5966
  /**
package/lib/index.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env node
2
+ import { Transport } from '@modelcontextprotocol/sdk/shared/transport.js';
3
+
2
4
  declare class CreateBrowser {
3
5
  name: string;
4
6
  description: string;
@@ -5448,6 +5450,7 @@ declare function request<T = any>(endpoint: string, options?: RequestInit): Prom
5448
5450
  * Model Context Protocol server for RoxyBrowser automation.
5449
5451
  * Supports: CLI startup, programmatic (in-process) startup, and library usage for secondary development.
5450
5452
  */
5453
+
5451
5454
  declare const TOOLS: ({
5452
5455
  name: string;
5453
5456
  description: string;
@@ -5952,6 +5955,12 @@ declare class RoxyBrowserMCPServer {
5952
5955
  private server;
5953
5956
  constructor();
5954
5957
  private setupHandlers;
5958
+ /**
5959
+ * Connect the server to any MCP transport (stdio, InMemoryTransport, SSE, etc.).
5960
+ * Use this for in-process embedding — e.g. passing an InMemoryTransport from
5961
+ * @modelcontextprotocol/sdk to avoid spawning a subprocess.
5962
+ */
5963
+ connect(transport: Transport): Promise<void>;
5955
5964
  run(): Promise<void>;
5956
5965
  }
5957
5966
  /**
package/lib/index.js CHANGED
@@ -3046,6 +3046,14 @@ var RoxyBrowserMCPServer = class {
3046
3046
  }
3047
3047
  });
3048
3048
  }
3049
+ /**
3050
+ * Connect the server to any MCP transport (stdio, InMemoryTransport, SSE, etc.).
3051
+ * Use this for in-process embedding — e.g. passing an InMemoryTransport from
3052
+ * @modelcontextprotocol/sdk to avoid spawning a subprocess.
3053
+ */
3054
+ async connect(transport) {
3055
+ await this.server.connect(transport);
3056
+ }
3049
3057
  async run() {
3050
3058
  console.error("\u{1F680} Starting RoxyBrowser MCP Server...");
3051
3059
  const transport = new StdioServerTransport();