@builder.io/dev-tools 1.22.2-dev.202602022342.768d3c452 → 1.22.2-dev.202602031702.b0e4d3ec2

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * E2E Tests for MCP Connections - HTTP Transport (Streamable HTTP)
3
+ *
4
+ * These tests verify:
5
+ * - Successful connection and tool execution with HTTP MCP servers
6
+ * - Initial connection retry on network failure
7
+ * - Reconnection after network interruption
8
+ * - Server shutdown during session
9
+ * - Slow network simulation
10
+ */
11
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * E2E Tests for MCP Connections - Mixed Transport & Edge Cases
3
+ *
4
+ * These tests verify:
5
+ * - Multiple MCP servers with different transport types
6
+ * - Partial failure scenarios (some servers connect, some fail)
7
+ * - Resource discovery across different transports
8
+ * - Complex configuration scenarios
9
+ */
10
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * E2E Tests for MCP Connections - SSE Transport
3
+ *
4
+ * These tests verify:
5
+ * - Successful SSE connection and tool execution
6
+ * - SSE reconnection on stream interruption
7
+ * - Server shutdown with SSE
8
+ * - Connection handling for SSE-specific scenarios
9
+ */
10
+ export {};
@@ -0,0 +1,10 @@
1
+ /**
2
+ * E2E Tests for MCP Connections - Stdio Transport
3
+ *
4
+ * These tests verify:
5
+ * - Successful connection and tool execution with stdio MCP servers
6
+ * - Invalid command handling (initial connection failure)
7
+ * - Server process crash during operation
8
+ * - Server becomes unresponsive (hang simulation)
9
+ */
10
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Mock MCP Server for E2E Testing - HTTP Transport (Streamable HTTP)
4
+ *
5
+ * This server implements the MCP protocol using HTTP transport for testing purposes.
6
+ * It provides controllable test tools and can simulate various failure scenarios.
7
+ *
8
+ * Usage: node mcp-test-server-http.js [port]
9
+ *
10
+ * The server outputs its port number to stdout on startup for test coordination.
11
+ *
12
+ * Test tools:
13
+ * - echo: Returns the input message
14
+ * - add_numbers: Adds two numbers
15
+ * - get_timestamp: Returns current timestamp
16
+ *
17
+ * Control endpoints:
18
+ * - POST /test/kill - Shuts down the server
19
+ * - POST /test/delay/:ms - Adds delay to next N requests
20
+ * - POST /test/error/:code - Returns HTTP error code for next request
21
+ */
22
+ export {};
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Mock MCP Server for E2E Testing - SSE Transport
4
+ *
5
+ * This server implements the MCP protocol using Server-Sent Events (SSE) transport
6
+ * for testing purposes. It provides controllable test tools and can simulate
7
+ * various failure scenarios.
8
+ *
9
+ * Usage: node mcp-test-server-sse.js [port]
10
+ *
11
+ * The server outputs its port number to stdout on startup for test coordination.
12
+ *
13
+ * Test tools:
14
+ * - echo: Returns the input message
15
+ * - add_numbers: Adds two numbers
16
+ * - get_timestamp: Returns current timestamp
17
+ *
18
+ * Control endpoints:
19
+ * - POST /test/kill - Shuts down the server
20
+ * - POST /test/delay/:ms - Adds delay to next N requests
21
+ * - POST /test/error/:code - Returns HTTP error code for next request
22
+ * - POST /test/disconnect - Forcefully disconnects all SSE clients
23
+ */
24
+ export {};
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Mock MCP Server for E2E Testing - Stdio Transport
4
+ *
5
+ * This server implements the MCP protocol using stdio transport for testing purposes.
6
+ * It provides controllable test tools and can simulate various failure scenarios.
7
+ *
8
+ * Usage: node mcp-test-server-stdio.js
9
+ *
10
+ * Test tools:
11
+ * - echo: Returns the input message
12
+ * - add_numbers: Adds two numbers
13
+ * - get_timestamp: Returns current timestamp
14
+ * - __test_exit__: Causes immediate process exit (simulates crash)
15
+ * - __test_hang__: Stops responding (simulates freeze)
16
+ * - __test_slow__: Adds delay to response (simulates slow network)
17
+ */
18
+ export {};
@@ -1 +1 @@
1
- export declare const apiAirV2Host = "https://archer-ophitic-unhortatively.ngrok-free.dev";
1
+ export declare const apiAirV2Host: string;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * MCP Connection Debugging Command
3
+ *
4
+ * This command helps debug MCP (Model Context Protocol) server connection issues.
5
+ * It mimics exactly how the dev-tools CLI connects to MCP servers, making it useful
6
+ * for diagnosing problems like "invalid session ID" errors.
7
+ *
8
+ * Usage:
9
+ * npx builder.io debug-mcp [--server <name>] [--verbose]
10
+ */
11
+ import type { DevToolsSys } from "../core";
12
+ import type { CLIArgs } from "./index";
13
+ export interface DebugMcpArgs extends CLIArgs {
14
+ /** Test only a specific server by name */
15
+ server?: string;
16
+ /** Show verbose/detailed output */
17
+ verbose?: boolean;
18
+ }
19
+ export declare function runDebugMcpCommand(sys: DevToolsSys, args: DebugMcpArgs): Promise<void>;
@@ -10,7 +10,6 @@ export interface SubAgent {
10
10
  tools?: string[];
11
11
  model?: string;
12
12
  mode?: CodeGenMode;
13
- position?: string;
14
13
  filePath?: string;
15
14
  includeMemories?: boolean;
16
15
  needDevServer?: boolean;
@@ -17,7 +17,7 @@ export declare const NUMBER_TYPES: string[];
17
17
  export declare const BOOLEAN_TYPES: string[];
18
18
  export declare const ARRAY_TYPES: string[];
19
19
  export declare const OBJECT_TYPES: string[];
20
- export declare function getPrimitiveType(t: string): "object" | "string" | "boolean" | "number" | "array";
20
+ export declare function getPrimitiveType(t: string): "number" | "string" | "boolean" | "object" | "array";
21
21
  export declare function removeQuotes(text: string): string;
22
22
  export declare const resolveType: (sys: DevToolsSys, checker: ts.TypeChecker, type: ts.Type) => string[] | undefined;
23
23
  export declare const typeToString: (sys: DevToolsSys, checker: ts.TypeChecker, type: ts.Type) => string;