@voltagent/server-core 1.0.8 → 1.0.9

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/dist/index.d.mts CHANGED
@@ -1,6 +1,10 @@
1
1
  import { LogFilter, Logger, LogLevel, LogEntry } from '@voltagent/internal';
2
2
  import { z } from 'zod';
3
- import { ServerProviderDeps, IServerProvider } from '@voltagent/core';
3
+ import { MCPServerRegistry, A2AServerRegistry, ServerProviderDeps, IServerProvider } from '@voltagent/core';
4
+ import { Tool, CallToolResult, Prompt, GetPromptRequest, GetPromptResult, Resource, ResourceContents, ResourceTemplate } from '@modelcontextprotocol/sdk/types.js';
5
+ export { CallToolResult, GetPromptRequest, GetPromptResult, Prompt, Resource, ResourceContents, ResourceTemplate } from '@modelcontextprotocol/sdk/types.js';
6
+ import { MCPServerLike as MCPServerLike$1, MCPServerDeps, MCPServerMetadata as MCPServerMetadata$1 } from '@voltagent/internal/mcp';
7
+ import { A2AServerLike, A2AServerMetadata } from '@voltagent/internal/a2a';
4
8
  import jwt from 'jsonwebtoken';
5
9
  import { IncomingMessage, Server } from 'node:http';
6
10
  import { Socket } from 'node:net';
@@ -35,13 +39,15 @@ interface PortConfig {
35
39
  /**
36
40
  * Options for server startup display
37
41
  */
42
+ interface ServerEndpointSummary {
43
+ path: string;
44
+ method: string;
45
+ description?: string;
46
+ group?: string;
47
+ }
38
48
  interface ServerStartupOptions {
39
49
  enableSwaggerUI?: boolean;
40
- customEndpoints?: Array<{
41
- path: string;
42
- method: string;
43
- description?: string;
44
- }>;
50
+ customEndpoints?: ServerEndpointSummary[];
45
51
  }
46
52
  /**
47
53
  * Common server configuration that all implementations should support
@@ -1335,6 +1341,277 @@ declare const ALL_ROUTES: {
1335
1341
  * Helper to get all routes as an array
1336
1342
  */
1337
1343
  declare function getAllRoutesArray(): RouteDefinition[];
1344
+ /**
1345
+ * MCP route definitions
1346
+ */
1347
+ declare const MCP_ROUTES: {
1348
+ listServers: {
1349
+ method: "get";
1350
+ path: string;
1351
+ summary: string;
1352
+ description: string;
1353
+ tags: string[];
1354
+ operationId: string;
1355
+ responses: {
1356
+ 200: {
1357
+ description: string;
1358
+ contentType: string;
1359
+ };
1360
+ 500: {
1361
+ description: string;
1362
+ contentType: string;
1363
+ };
1364
+ };
1365
+ };
1366
+ getServer: {
1367
+ method: "get";
1368
+ path: string;
1369
+ summary: string;
1370
+ description: string;
1371
+ tags: string[];
1372
+ operationId: string;
1373
+ responses: {
1374
+ 200: {
1375
+ description: string;
1376
+ contentType: string;
1377
+ };
1378
+ 404: {
1379
+ description: string;
1380
+ contentType: string;
1381
+ };
1382
+ };
1383
+ };
1384
+ listTools: {
1385
+ method: "get";
1386
+ path: string;
1387
+ summary: string;
1388
+ description: string;
1389
+ tags: string[];
1390
+ operationId: string;
1391
+ responses: {
1392
+ 200: {
1393
+ description: string;
1394
+ contentType: string;
1395
+ };
1396
+ 404: {
1397
+ description: string;
1398
+ contentType: string;
1399
+ };
1400
+ 500: {
1401
+ description: string;
1402
+ contentType: string;
1403
+ };
1404
+ };
1405
+ };
1406
+ invokeTool: {
1407
+ method: "post";
1408
+ path: string;
1409
+ summary: string;
1410
+ description: string;
1411
+ tags: string[];
1412
+ operationId: string;
1413
+ responses: {
1414
+ 200: {
1415
+ description: string;
1416
+ contentType: string;
1417
+ };
1418
+ 404: {
1419
+ description: string;
1420
+ contentType: string;
1421
+ };
1422
+ 500: {
1423
+ description: string;
1424
+ contentType: string;
1425
+ };
1426
+ };
1427
+ };
1428
+ setLogLevel: {
1429
+ method: "post";
1430
+ path: string;
1431
+ summary: string;
1432
+ description: string;
1433
+ tags: string[];
1434
+ operationId: string;
1435
+ responses: {
1436
+ 200: {
1437
+ description: string;
1438
+ contentType: string;
1439
+ };
1440
+ 404: {
1441
+ description: string;
1442
+ contentType: string;
1443
+ };
1444
+ 500: {
1445
+ description: string;
1446
+ contentType: string;
1447
+ };
1448
+ };
1449
+ };
1450
+ listPrompts: {
1451
+ method: "get";
1452
+ path: string;
1453
+ summary: string;
1454
+ description: string;
1455
+ tags: string[];
1456
+ operationId: string;
1457
+ responses: {
1458
+ 200: {
1459
+ description: string;
1460
+ contentType: string;
1461
+ };
1462
+ 404: {
1463
+ description: string;
1464
+ contentType: string;
1465
+ };
1466
+ 500: {
1467
+ description: string;
1468
+ contentType: string;
1469
+ };
1470
+ };
1471
+ };
1472
+ getPrompt: {
1473
+ method: "get";
1474
+ path: string;
1475
+ summary: string;
1476
+ description: string;
1477
+ tags: string[];
1478
+ operationId: string;
1479
+ responses: {
1480
+ 200: {
1481
+ description: string;
1482
+ contentType: string;
1483
+ };
1484
+ 400: {
1485
+ description: string;
1486
+ contentType: string;
1487
+ };
1488
+ 404: {
1489
+ description: string;
1490
+ contentType: string;
1491
+ };
1492
+ 500: {
1493
+ description: string;
1494
+ contentType: string;
1495
+ };
1496
+ };
1497
+ };
1498
+ listResources: {
1499
+ method: "get";
1500
+ path: string;
1501
+ summary: string;
1502
+ description: string;
1503
+ tags: string[];
1504
+ operationId: string;
1505
+ responses: {
1506
+ 200: {
1507
+ description: string;
1508
+ contentType: string;
1509
+ };
1510
+ 404: {
1511
+ description: string;
1512
+ contentType: string;
1513
+ };
1514
+ 500: {
1515
+ description: string;
1516
+ contentType: string;
1517
+ };
1518
+ };
1519
+ };
1520
+ readResource: {
1521
+ method: "get";
1522
+ path: string;
1523
+ summary: string;
1524
+ description: string;
1525
+ tags: string[];
1526
+ operationId: string;
1527
+ responses: {
1528
+ 200: {
1529
+ description: string;
1530
+ contentType: string;
1531
+ };
1532
+ 400: {
1533
+ description: string;
1534
+ contentType: string;
1535
+ };
1536
+ 404: {
1537
+ description: string;
1538
+ contentType: string;
1539
+ };
1540
+ 500: {
1541
+ description: string;
1542
+ contentType: string;
1543
+ };
1544
+ };
1545
+ };
1546
+ listResourceTemplates: {
1547
+ method: "get";
1548
+ path: string;
1549
+ summary: string;
1550
+ description: string;
1551
+ tags: string[];
1552
+ operationId: string;
1553
+ responses: {
1554
+ 200: {
1555
+ description: string;
1556
+ contentType: string;
1557
+ };
1558
+ 404: {
1559
+ description: string;
1560
+ contentType: string;
1561
+ };
1562
+ 500: {
1563
+ description: string;
1564
+ contentType: string;
1565
+ };
1566
+ };
1567
+ };
1568
+ };
1569
+ declare const A2A_ROUTES: {
1570
+ agentCard: {
1571
+ method: "get";
1572
+ path: string;
1573
+ summary: string;
1574
+ description: string;
1575
+ tags: string[];
1576
+ operationId: string;
1577
+ responses: {
1578
+ 200: {
1579
+ description: string;
1580
+ contentType: string;
1581
+ };
1582
+ 404: {
1583
+ description: string;
1584
+ contentType: string;
1585
+ };
1586
+ 400: {
1587
+ description: string;
1588
+ contentType: string;
1589
+ };
1590
+ };
1591
+ };
1592
+ jsonRpc: {
1593
+ method: "post";
1594
+ path: string;
1595
+ summary: string;
1596
+ description: string;
1597
+ tags: string[];
1598
+ operationId: string;
1599
+ responses: {
1600
+ 200: {
1601
+ description: string;
1602
+ contentType: string;
1603
+ };
1604
+ 400: {
1605
+ description: string;
1606
+ contentType: string;
1607
+ };
1608
+ 404: {
1609
+ description: string;
1610
+ contentType: string;
1611
+ };
1612
+ };
1613
+ };
1614
+ };
1338
1615
  /**
1339
1616
  * Helper to get routes by tag
1340
1617
  */
@@ -2337,6 +2614,277 @@ declare const WorkflowResumeResponseSchema: z.ZodObject<{
2337
2614
  };
2338
2615
  }>;
2339
2616
 
2617
+ declare const DEFAULT_MCP_ROUTE_PREFIX: "/mcp";
2618
+ declare const DEFAULT_MCP_SSE_SEGMENT: "sse";
2619
+ declare const DEFAULT_MCP_MESSAGES_SEGMENT: "messages";
2620
+ declare const DEFAULT_MCP_HTTP_SEGMENT: "mcp";
2621
+ declare const MCP_SESSION_QUERY_PARAM: "sessionId";
2622
+
2623
+ interface McpRouteOptions {
2624
+ basePath?: string;
2625
+ httpSegment?: string;
2626
+ sseSegment?: string;
2627
+ messageSegment?: string;
2628
+ }
2629
+ interface McpRoutePaths {
2630
+ basePath: string;
2631
+ httpPath: string;
2632
+ ssePath: string;
2633
+ messagePath: string;
2634
+ }
2635
+ declare function buildMcpRoutePaths(serverId: string, options?: McpRouteOptions): McpRoutePaths;
2636
+
2637
+ interface FilterContext {
2638
+ transport: "stdio" | "sse" | "http";
2639
+ sessionId?: string;
2640
+ userRole?: string;
2641
+ metadata?: Record<string, unknown>;
2642
+ }
2643
+ interface MCPAgentMetadata {
2644
+ id: string;
2645
+ name: string;
2646
+ description?: string;
2647
+ purpose?: string;
2648
+ instructions?: string;
2649
+ }
2650
+ interface MCPToolMetadata {
2651
+ id?: string;
2652
+ name: string;
2653
+ description?: string;
2654
+ }
2655
+ interface MCPWorkflowSummary {
2656
+ id: string;
2657
+ name: string;
2658
+ purpose?: string;
2659
+ metadata?: Record<string, unknown>;
2660
+ }
2661
+ interface MCPServerPackageInfo {
2662
+ name: string;
2663
+ version: string;
2664
+ description?: string;
2665
+ installCommand?: string[];
2666
+ homepage?: string;
2667
+ }
2668
+ interface MCPServerRemoteInfo {
2669
+ environment: string;
2670
+ url: string;
2671
+ headers?: Record<string, string>;
2672
+ description?: string;
2673
+ }
2674
+ interface ProtocolConfig {
2675
+ stdio?: boolean;
2676
+ sse?: boolean;
2677
+ http?: boolean;
2678
+ [key: string]: unknown;
2679
+ }
2680
+ type ProtocolRecord = ProtocolConfig & Record<string, unknown>;
2681
+ interface MCPServerCapabilitiesConfig {
2682
+ logging?: boolean;
2683
+ prompts?: boolean;
2684
+ resources?: boolean;
2685
+ elicitation?: boolean;
2686
+ [key: string]: unknown;
2687
+ }
2688
+ type CapabilityRecord = MCPServerCapabilitiesConfig & Record<string, unknown>;
2689
+ interface MCPServerMetadata extends MCPServerMetadata$1 {
2690
+ protocols?: ProtocolRecord;
2691
+ capabilities?: CapabilityRecord;
2692
+ agents?: MCPAgentMetadata[];
2693
+ workflows?: MCPWorkflowSummary[];
2694
+ tools?: MCPToolMetadata[];
2695
+ releaseDate?: string;
2696
+ packages?: MCPServerPackageInfo[];
2697
+ remotes?: MCPServerRemoteInfo[];
2698
+ }
2699
+ type MCPToolOrigin = "tool" | "agent" | "workflow";
2700
+ interface MCPListedTool {
2701
+ name: string;
2702
+ type: MCPToolOrigin;
2703
+ definition: Tool;
2704
+ }
2705
+ interface MCPServerLike extends MCPServerLike$1 {
2706
+ initialize(deps: MCPServerDeps): void;
2707
+ listTools?(contextOverrides?: Partial<Omit<FilterContext, "transport">>): MCPListedTool[];
2708
+ executeTool?(name: string, args: unknown, contextOverrides?: Partial<Omit<FilterContext, "transport">>): Promise<CallToolResult>;
2709
+ setLogLevel?(level: string): Promise<void> | void;
2710
+ listPrompts?(): Promise<Prompt[]>;
2711
+ getPrompt?(params: GetPromptRequest["params"]): Promise<GetPromptResult>;
2712
+ listResources?(): Promise<Resource[]>;
2713
+ readResource?(uri: string): Promise<ResourceContents | ResourceContents[]>;
2714
+ listResourceTemplates?(): Promise<ResourceTemplate[]>;
2715
+ }
2716
+
2717
+ interface McpServerLookupResult {
2718
+ server?: MCPServerLike;
2719
+ metadata?: MCPServerMetadata;
2720
+ }
2721
+ declare function listMcpServers(registry: MCPServerRegistry): MCPServerMetadata[];
2722
+ declare function lookupMcpServer(registry: MCPServerRegistry, serverId: string): McpServerLookupResult;
2723
+
2724
+ declare class McpSessionStore<T> {
2725
+ private readonly sessions;
2726
+ set(sessionId: string, value: T): void;
2727
+ get(sessionId: string): T | undefined;
2728
+ delete(sessionId: string): void;
2729
+ has(sessionId: string): boolean;
2730
+ ids(): string[];
2731
+ values(): T[];
2732
+ clear(): void;
2733
+ }
2734
+
2735
+ interface McpServerListResponse {
2736
+ servers: MCPServerMetadata[];
2737
+ }
2738
+ interface McpServerDetailResponse extends MCPServerMetadata {
2739
+ }
2740
+ interface McpToolListResponse {
2741
+ server: MCPServerMetadata;
2742
+ tools: MCPListedTool[];
2743
+ }
2744
+ interface McpInvokeToolRequest {
2745
+ arguments?: unknown;
2746
+ context?: Partial<Omit<FilterContext, "transport">>;
2747
+ }
2748
+ type McpInvokeToolResponse = CallToolResult;
2749
+ interface McpSetLogLevelRequest {
2750
+ level: string;
2751
+ }
2752
+ type McpSetLogLevelResponse = {
2753
+ success: true;
2754
+ };
2755
+ interface McpPromptListResponse {
2756
+ prompts: Prompt[];
2757
+ }
2758
+ type McpPromptDetailResponse = GetPromptResult;
2759
+ interface McpResourceListResponse {
2760
+ resources: Resource[];
2761
+ }
2762
+ type McpResourceDetailResponse = ResourceContents | ResourceContents[];
2763
+ interface McpResourceTemplateListResponse {
2764
+ resourceTemplates: ResourceTemplate[];
2765
+ }
2766
+ declare function handleListMcpServers(registry: MCPServerRegistry): ApiResponse<McpServerListResponse>;
2767
+ declare function handleGetMcpServer(registry: MCPServerRegistry, serverId: string): ApiResponse<McpServerDetailResponse>;
2768
+ declare function handleListMcpServerTools(registry: MCPServerRegistry, logger: Logger, serverId: string): ApiResponse<McpToolListResponse>;
2769
+ declare function handleInvokeMcpServerTool(registry: MCPServerRegistry, logger: Logger, serverId: string, toolName: string, request: McpInvokeToolRequest): Promise<ApiResponse<McpInvokeToolResponse>>;
2770
+ declare function handleSetMcpLogLevel(registry: MCPServerRegistry, logger: Logger, serverId: string, request: McpSetLogLevelRequest): Promise<ApiResponse<McpSetLogLevelResponse>>;
2771
+ declare function handleListMcpPrompts(registry: MCPServerRegistry, logger: Logger, serverId: string): Promise<ApiResponse<McpPromptListResponse>>;
2772
+ declare function handleGetMcpPrompt(registry: MCPServerRegistry, logger: Logger, serverId: string, params: GetPromptRequest["params"]): Promise<ApiResponse<McpPromptDetailResponse>>;
2773
+ declare function handleListMcpResources(registry: MCPServerRegistry, logger: Logger, serverId: string): Promise<ApiResponse<McpResourceListResponse>>;
2774
+ declare function handleGetMcpResource(registry: MCPServerRegistry, logger: Logger, serverId: string, uri: string): Promise<ApiResponse<McpResourceDetailResponse>>;
2775
+ declare function handleListMcpResourceTemplates(registry: MCPServerRegistry, logger: Logger, serverId: string): Promise<ApiResponse<McpResourceTemplateListResponse>>;
2776
+
2777
+ type A2AJsonRpcId = string | number | null;
2778
+ interface JsonRpcError<Data = unknown> {
2779
+ code: number;
2780
+ message: string;
2781
+ data?: Data;
2782
+ }
2783
+ interface JsonRpcResponse<Result = unknown, ErrorData = unknown> {
2784
+ jsonrpc: "2.0";
2785
+ id: A2AJsonRpcId;
2786
+ result?: Result;
2787
+ error?: JsonRpcError<ErrorData> | null;
2788
+ }
2789
+ interface JsonRpcStream<Result = unknown, ErrorData = unknown> {
2790
+ kind: "stream";
2791
+ id: A2AJsonRpcId;
2792
+ stream: AsyncGenerator<JsonRpcResponse<Result, ErrorData>>;
2793
+ }
2794
+ type JsonRpcHandlerResult<Result = unknown, ErrorData = unknown> = JsonRpcResponse<Result, ErrorData> | JsonRpcStream<Result, ErrorData>;
2795
+ interface JsonRpcRequest<Params = unknown> {
2796
+ jsonrpc: "2.0";
2797
+ id: A2AJsonRpcId;
2798
+ method: string;
2799
+ params?: Params;
2800
+ }
2801
+ interface A2ARequestContext {
2802
+ userId?: string;
2803
+ sessionId?: string;
2804
+ metadata?: Record<string, unknown>;
2805
+ }
2806
+ interface AgentCardSkill {
2807
+ id: string;
2808
+ name: string;
2809
+ description?: string;
2810
+ tags?: string[];
2811
+ }
2812
+ interface AgentCardProviderInfo {
2813
+ organization?: string;
2814
+ url?: string;
2815
+ }
2816
+ interface AgentCardCapabilities {
2817
+ streaming: boolean;
2818
+ pushNotifications: boolean;
2819
+ stateTransitionHistory: boolean;
2820
+ }
2821
+ interface AgentCard {
2822
+ name: string;
2823
+ description?: string;
2824
+ url: string;
2825
+ provider?: AgentCardProviderInfo;
2826
+ version: string;
2827
+ capabilities: AgentCardCapabilities;
2828
+ defaultInputModes: string[];
2829
+ defaultOutputModes: string[];
2830
+ skills: AgentCardSkill[];
2831
+ }
2832
+ interface A2AServerLikeWithHandlers extends A2AServerLike {
2833
+ getAgentCard?(agentId: string, context?: A2ARequestContext): AgentCard;
2834
+ handleRequest?(agentId: string, request: JsonRpcRequest, context?: A2ARequestContext): Promise<JsonRpcHandlerResult>;
2835
+ }
2836
+ declare const A2AErrorCode: {
2837
+ readonly PARSE_ERROR: -32700;
2838
+ readonly INVALID_REQUEST: -32600;
2839
+ readonly METHOD_NOT_FOUND: -32601;
2840
+ readonly INVALID_PARAMS: -32602;
2841
+ readonly INTERNAL_ERROR: -32603;
2842
+ readonly TASK_NOT_FOUND: -32001;
2843
+ readonly TASK_NOT_CANCELABLE: -32002;
2844
+ readonly PUSH_NOTIFICATION_UNSUPPORTED: -32003;
2845
+ readonly UNSUPPORTED_OPERATION: -32004;
2846
+ };
2847
+ type A2AErrorCode = (typeof A2AErrorCode)[keyof typeof A2AErrorCode];
2848
+ declare class VoltA2AError extends Error {
2849
+ code: A2AErrorCode;
2850
+ data?: unknown | undefined;
2851
+ taskId?: string | undefined;
2852
+ constructor(code: A2AErrorCode, message: string, data?: unknown | undefined, taskId?: string | undefined);
2853
+ toJsonRpcError(): JsonRpcError;
2854
+ static parseError(details?: unknown): VoltA2AError;
2855
+ static invalidRequest(message?: string, details?: unknown): VoltA2AError;
2856
+ static methodNotFound(method: string): VoltA2AError;
2857
+ static invalidParams(message?: string, details?: unknown): VoltA2AError;
2858
+ static taskNotFound(taskId: string): VoltA2AError;
2859
+ static taskNotCancelable(taskId: string): VoltA2AError;
2860
+ static unsupportedOperation(message?: string): VoltA2AError;
2861
+ static internal(message?: string, details?: unknown): VoltA2AError;
2862
+ }
2863
+ declare function normalizeError(id: A2AJsonRpcId, cause: unknown): JsonRpcResponse<never>;
2864
+ declare function isJsonRpcRequest(value: unknown): value is JsonRpcRequest;
2865
+
2866
+ interface A2AServerLookupResult {
2867
+ server?: A2AServerLikeWithHandlers;
2868
+ metadata?: A2AServerMetadata;
2869
+ }
2870
+ declare function listA2AServers(registry: A2AServerRegistry<A2AServerLikeWithHandlers>): A2AServerMetadata[];
2871
+ declare function lookupA2AServer(registry: A2AServerRegistry<A2AServerLikeWithHandlers>, serverId: string): A2AServerLookupResult;
2872
+
2873
+ declare const DEFAULT_A2A_ROUTE_PREFIX: "/a2a";
2874
+ declare const DEFAULT_A2A_WELL_KNOWN_PREFIX: "/.well-known";
2875
+ declare function buildAgentCardPath(agentId: string): string;
2876
+ declare function buildA2AEndpointPath(serverId: string): string;
2877
+
2878
+ declare function parseJsonRpcRequest(payload: unknown): JsonRpcRequest;
2879
+ declare function resolveAgentCard(registry: A2AServerRegistry<A2AServerLikeWithHandlers>, serverId: string, agentId: string, context?: A2ARequestContext): AgentCard;
2880
+ declare function executeA2ARequest(params: {
2881
+ registry: A2AServerRegistry<A2AServerLikeWithHandlers>;
2882
+ serverId: string;
2883
+ request: JsonRpcRequest;
2884
+ context?: A2ARequestContext;
2885
+ logger?: Logger;
2886
+ }): Promise<JsonRpcHandlerResult>;
2887
+
2340
2888
  /**
2341
2889
  * Handler for listing all agents
2342
2890
  * Returns agent data array
@@ -2773,6 +3321,7 @@ declare const portManager: PortManager;
2773
3321
  /**
2774
3322
  * Shared server utilities for all server implementations
2775
3323
  */
3324
+
2776
3325
  declare const colors: {
2777
3326
  reset: string;
2778
3327
  bright: string;
@@ -2805,13 +3354,7 @@ declare const preferredPorts: {
2805
3354
  /**
2806
3355
  * Print server startup message with formatted console output
2807
3356
  */
2808
- declare function printServerStartup(port: number, options?: {
2809
- enableSwaggerUI?: boolean;
2810
- customEndpoints?: Array<{
2811
- path: string;
2812
- method: string;
2813
- }>;
2814
- }): void;
3357
+ declare function printServerStartup(port: number, options?: ServerStartupOptions): void;
2815
3358
  /**
2816
3359
  * Get all ports to try in order
2817
3360
  */
@@ -3106,6 +3649,7 @@ declare abstract class BaseServerProvider implements IServerProvider {
3106
3649
  * Handle graceful shutdown
3107
3650
  */
3108
3651
  protected setupGracefulShutdown(): void;
3652
+ private collectFeatureEndpoints;
3109
3653
  }
3110
3654
 
3111
3655
  /**
@@ -3184,4 +3728,4 @@ declare const DEFAULT_CORS_OPTIONS: {
3184
3728
  credentials: boolean;
3185
3729
  };
3186
3730
 
3187
- export { AGENT_ROUTES, ALL_ROUTES, AgentListSchema, AgentParamsSchema, AgentResponseSchema, type ApiResponse, type AppSetupConfig, type AuthFrameworkAdapter, type AuthProvider, type BaseCustomEndpointDefinition, type BaseServerConfig, BaseServerProvider, BasicJsonSchema, CustomEndpointError, type CustomEndpointHandler, DEFAULT_CORS_OPTIONS, DEFAULT_PUBLIC_ROUTES, type ErrorResponse, ErrorSchema, GenerateOptionsSchema, type HttpMethod, type IWebSocket, type JWTAuthOptions, LOG_ROUTES, type LogFilterOptions, type LogHandlerResponse, type LogStreamClient, LogStreamManager, OBSERVABILITY_ROUTES, ObjectRequestSchema, ObjectResponseSchema, type OpenApiInfo, PROTECTED_ROUTES, ParamsSchema, type PortConfig, type ProcessedAgentOptions, type ResponseDefinition, type RouteDefinition, type ServerProviderConfig, type ServerStartupOptions, StreamObjectEventSchema, type StreamResponse, StreamTextEventSchema, SubAgentResponseSchema, type SuccessResponse, TextRequestSchema, TextResponseSchema, UPDATE_ROUTES, WORKFLOW_ROUTES, type WebSocketAdapter, type WebSocketConnectionHandler, type WebSocketConnectionInfo, type WebSocketEventHandlers, type WebSocketMessage, WebSocketRouter, WorkflowExecutionParamsSchema, WorkflowExecutionRequestSchema, WorkflowExecutionResponseSchema, WorkflowListSchema, WorkflowParamsSchema, WorkflowResponseSchema, WorkflowResumeRequestSchema, WorkflowResumeResponseSchema, WorkflowStreamEventSchema, WorkflowSuspendRequestSchema, WorkflowSuspendResponseSchema, cleanupWebSockets, closeAllObservabilityConnections, colors, createAuthErrorResponse, createAuthMiddlewareFactory, createJWT, createSSEHeaders, createSSEResponse, createSSEStream, createUserContext, createWebSocketRouter, createWebSocketServer, extractBearerToken, extractToken, formatSSE, getAllRoutesArray, getLandingPageHTML, getLogsBySpanIdHandler, getLogsByTraceIdHandler, getObservabilityStatusHandler, getOpenApiDoc, getOrCreateLogger, getPortsToTry, getResponseStatus, getRoutesByTag, getSpanByIdHandler, getTraceByIdHandler, getTracesHandler, handleChatStream, handleCheckUpdates, handleExecuteWorkflow, handleGenerateObject, handleGenerateText, handleGetAgent, handleGetAgentHistory, handleGetAgents, handleGetLogs, handleGetWorkflow, handleGetWorkflowState, handleGetWorkflows, handleInstallUpdates, handleObservabilityConnection, handleResumeWorkflow, handleStreamObject, handleStreamText, handleStreamWorkflow, handleSuspendWorkflow, handleWebSocketConnection, injectUserIntoBody, isErrorResponse, isSuccessResponse, jwtAuth, mapHandlerResponse, mapLogResponse, pathMatches, portManager, preferredPorts, printServerStartup, processAgentOptions, processWorkflowOptions, queryLogsHandler, requiresAuth, setupObservabilityHandler, setupObservabilityListeners, setupWebSocketUpgrade, shouldEnableSwaggerUI, transformToSSE, validateBaseCustomEndpoint, validateEndpointMethod, validateEndpointPath };
3731
+ export { A2AErrorCode, type A2AJsonRpcId, type A2ARequestContext, type A2AServerLikeWithHandlers, type A2AServerLookupResult, A2A_ROUTES, AGENT_ROUTES, ALL_ROUTES, type AgentCard, type AgentCardCapabilities, type AgentCardProviderInfo, type AgentCardSkill, AgentListSchema, AgentParamsSchema, AgentResponseSchema, type ApiResponse, type AppSetupConfig, type AuthFrameworkAdapter, type AuthProvider, type BaseCustomEndpointDefinition, type BaseServerConfig, BaseServerProvider, BasicJsonSchema, type CapabilityRecord, CustomEndpointError, type CustomEndpointHandler, DEFAULT_A2A_ROUTE_PREFIX, DEFAULT_A2A_WELL_KNOWN_PREFIX, DEFAULT_CORS_OPTIONS, DEFAULT_MCP_HTTP_SEGMENT, DEFAULT_MCP_MESSAGES_SEGMENT, DEFAULT_MCP_ROUTE_PREFIX, DEFAULT_MCP_SSE_SEGMENT, DEFAULT_PUBLIC_ROUTES, type ErrorResponse, ErrorSchema, type FilterContext, GenerateOptionsSchema, type HttpMethod, type IWebSocket, type JWTAuthOptions, type JsonRpcError, type JsonRpcHandlerResult, type JsonRpcRequest, type JsonRpcResponse, type JsonRpcStream, LOG_ROUTES, type LogFilterOptions, type LogHandlerResponse, type LogStreamClient, LogStreamManager, type MCPAgentMetadata, type MCPListedTool, type MCPServerCapabilitiesConfig, type MCPServerLike, type MCPServerMetadata, type MCPServerPackageInfo, type MCPServerRemoteInfo, type MCPToolMetadata, type MCPToolOrigin, type MCPWorkflowSummary, MCP_ROUTES, MCP_SESSION_QUERY_PARAM, type McpInvokeToolRequest, type McpInvokeToolResponse, type McpPromptDetailResponse, type McpPromptListResponse, type McpResourceDetailResponse, type McpResourceListResponse, type McpResourceTemplateListResponse, type McpRouteOptions, type McpRoutePaths, type McpServerDetailResponse, type McpServerListResponse, type McpServerLookupResult, McpSessionStore, type McpSetLogLevelRequest, type McpSetLogLevelResponse, type McpToolListResponse, OBSERVABILITY_ROUTES, ObjectRequestSchema, ObjectResponseSchema, type OpenApiInfo, PROTECTED_ROUTES, ParamsSchema, type PortConfig, type ProcessedAgentOptions, type ProtocolConfig, type ProtocolRecord, type ResponseDefinition, type RouteDefinition, type ServerEndpointSummary, type ServerProviderConfig, type ServerStartupOptions, StreamObjectEventSchema, type StreamResponse, StreamTextEventSchema, SubAgentResponseSchema, type SuccessResponse, TextRequestSchema, TextResponseSchema, UPDATE_ROUTES, VoltA2AError, WORKFLOW_ROUTES, type WebSocketAdapter, type WebSocketConnectionHandler, type WebSocketConnectionInfo, type WebSocketEventHandlers, type WebSocketMessage, WebSocketRouter, WorkflowExecutionParamsSchema, WorkflowExecutionRequestSchema, WorkflowExecutionResponseSchema, WorkflowListSchema, WorkflowParamsSchema, WorkflowResponseSchema, WorkflowResumeRequestSchema, WorkflowResumeResponseSchema, WorkflowStreamEventSchema, WorkflowSuspendRequestSchema, WorkflowSuspendResponseSchema, buildA2AEndpointPath, buildAgentCardPath, buildMcpRoutePaths, cleanupWebSockets, closeAllObservabilityConnections, colors, createAuthErrorResponse, createAuthMiddlewareFactory, createJWT, createSSEHeaders, createSSEResponse, createSSEStream, createUserContext, createWebSocketRouter, createWebSocketServer, executeA2ARequest, extractBearerToken, extractToken, formatSSE, getAllRoutesArray, getLandingPageHTML, getLogsBySpanIdHandler, getLogsByTraceIdHandler, getObservabilityStatusHandler, getOpenApiDoc, getOrCreateLogger, getPortsToTry, getResponseStatus, getRoutesByTag, getSpanByIdHandler, getTraceByIdHandler, getTracesHandler, handleChatStream, handleCheckUpdates, handleExecuteWorkflow, handleGenerateObject, handleGenerateText, handleGetAgent, handleGetAgentHistory, handleGetAgents, handleGetLogs, handleGetMcpPrompt, handleGetMcpResource, handleGetMcpServer, handleGetWorkflow, handleGetWorkflowState, handleGetWorkflows, handleInstallUpdates, handleInvokeMcpServerTool, handleListMcpPrompts, handleListMcpResourceTemplates, handleListMcpResources, handleListMcpServerTools, handleListMcpServers, handleObservabilityConnection, handleResumeWorkflow, handleSetMcpLogLevel, handleStreamObject, handleStreamText, handleStreamWorkflow, handleSuspendWorkflow, handleWebSocketConnection, injectUserIntoBody, isErrorResponse, isJsonRpcRequest, isSuccessResponse, jwtAuth, listA2AServers, listMcpServers, lookupA2AServer, lookupMcpServer, mapHandlerResponse, mapLogResponse, normalizeError, parseJsonRpcRequest, pathMatches, portManager, preferredPorts, printServerStartup, processAgentOptions, processWorkflowOptions, queryLogsHandler, requiresAuth, resolveAgentCard, setupObservabilityHandler, setupObservabilityListeners, setupWebSocketUpgrade, shouldEnableSwaggerUI, transformToSSE, validateBaseCustomEndpoint, validateEndpointMethod, validateEndpointPath };