agentic-qe 3.8.13 → 3.8.14

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.
@@ -14,6 +14,9 @@ import { createServer } from 'http';
14
14
  import { join, dirname } from 'path';
15
15
  import { fileURLToPath } from 'url';
16
16
  import { safeJsonParse } from '../shared/safe-json.js';
17
+ import { createRequire } from 'module';
18
+ const _require = createRequire(import.meta.url);
19
+ const _pkg = _require('../../package.json');
17
20
  // AG-UI imports
18
21
  import { createEventAdapter, } from '../adapters/ag-ui/index.js';
19
22
  // A2A imports
@@ -626,7 +629,7 @@ class HTTPServerImpl {
626
629
  res.setHeader('Content-Type', 'application/json');
627
630
  res.end(JSON.stringify({
628
631
  status: 'ok',
629
- version: '3.0.0',
632
+ version: _pkg.version,
630
633
  protocols: ['ag-ui', 'a2a', 'a2ui'],
631
634
  agentCardsLoaded: this.agentCardsLoaded,
632
635
  agentCount: this.discoveryService.getAgentCount(),
@@ -8,9 +8,9 @@ export { getConnectionPool, initializeConnectionPool, shutdownConnectionPool, cr
8
8
  export { getLoadBalancer, resetLoadBalancer, createLoadBalancer, type AgentLoadInfo, type LoadBalancingStrategy, type LoadBalancerConfig, type LoadBalancerStats, DEFAULT_LOAD_BALANCER_CONFIG, } from './load-balancer';
9
9
  export { getPerformanceMonitor, resetPerformanceMonitor, createPerformanceMonitor, type LatencySample, type ToolExecutionMetric, type PoolMetric, type PerformanceAlert, type PerformanceReport, type PerformanceMonitorConfig, DEFAULT_MONITOR_CONFIG, } from './performance-monitor';
10
10
  export * from './handlers';
11
- export { MCPServer, createMCPServer } from './server';
12
- export { default } from './server';
13
11
  export * from './transport';
14
12
  export { MCPProtocolServer, createMCPProtocolServer, quickStart, type MCPServerConfig, type MCPCapabilities, type MCPServerInfo, } from './protocol-server';
13
+ export { MCPProtocolServer as MCPServer } from './protocol-server';
14
+ export { createMCPProtocolServer as createMCPServer } from './protocol-server';
15
15
  export { isToolAllowed, getToolScope, getAllowedTools, validateToolAccess, type AgentRole, type ToolScope, } from './tool-scoping';
16
16
  //# sourceMappingURL=index.d.ts.map
package/dist/mcp/index.js CHANGED
@@ -14,13 +14,14 @@ export { getLoadBalancer, resetLoadBalancer, createLoadBalancer, DEFAULT_LOAD_BA
14
14
  export { getPerformanceMonitor, resetPerformanceMonitor, createPerformanceMonitor, DEFAULT_MONITOR_CONFIG, } from './performance-monitor';
15
15
  // Handlers
16
16
  export * from './handlers';
17
- // Server (legacy)
18
- export { MCPServer, createMCPServer } from './server';
19
- export { default } from './server';
20
17
  // Transport Layer
21
18
  export * from './transport';
22
- // Protocol Server (v3 - claude-flow pattern)
19
+ // Protocol Server (production MCP server)
23
20
  export { MCPProtocolServer, createMCPProtocolServer, quickStart, } from './protocol-server';
21
+ // Legacy aliases — server.ts was removed (dead code, never used in production).
22
+ // MCPProtocolServer is the only server. These aliases prevent import breakage.
23
+ export { MCPProtocolServer as MCPServer } from './protocol-server';
24
+ export { createMCPProtocolServer as createMCPServer } from './protocol-server';
24
25
  // Per-Agent Tool Scoping
25
26
  export { isToolAllowed, getToolScope, getAllowedTools, validateToolAccess, } from './tool-scoping';
26
27
  //# sourceMappingURL=index.js.map
@@ -5,6 +5,7 @@
5
5
  *
6
6
  * ADR-039: Integrated with connection pooling, load balancing, and performance monitoring
7
7
  */
8
+ import { ToolDefinition } from './types';
8
9
  import { type EventAdapter } from '../adapters/ag-ui/index.js';
9
10
  export interface MCPServerConfig {
10
11
  name?: string;
@@ -65,6 +66,10 @@ export declare class MCPProtocolServer {
65
66
  * Get server capabilities
66
67
  */
67
68
  getCapabilities(): MCPCapabilities;
69
+ /**
70
+ * Get registered tool definitions (for testing and introspection)
71
+ */
72
+ getToolDefinitions(): ToolDefinition[];
68
73
  /**
69
74
  * Get server info
70
75
  */
@@ -29,6 +29,9 @@ import { registerMissingQETools } from './qe-tool-bridge.js';
29
29
  import { getConnectionPool, initializeConnectionPool, shutdownConnectionPool, } from './connection-pool';
30
30
  import { getLoadBalancer, } from './load-balancer';
31
31
  import { getPerformanceMonitor, } from './performance-monitor';
32
+ import { createRequire } from 'module';
33
+ const _require = createRequire(import.meta.url);
34
+ const _pkg = _require('../../package.json');
32
35
  // ============================================================================
33
36
  // MCP Protocol Server
34
37
  // ============================================================================
@@ -51,7 +54,7 @@ export class MCPProtocolServer {
51
54
  constructor(config = {}) {
52
55
  this.config = {
53
56
  name: config.name ?? 'agentic-qe-v3',
54
- version: config.version ?? '3.0.0',
57
+ version: config.version ?? _pkg.version,
55
58
  transport: config.transport ?? 'stdio',
56
59
  maxRequestSize: config.maxRequestSize ?? 10 * 1024 * 1024,
57
60
  };
@@ -171,6 +174,12 @@ export class MCPProtocolServer {
171
174
  logging: {},
172
175
  };
173
176
  }
177
+ /**
178
+ * Get registered tool definitions (for testing and introspection)
179
+ */
180
+ getToolDefinitions() {
181
+ return Array.from(this.tools.values()).map(entry => entry.definition);
182
+ }
174
183
  /**
175
184
  * Get server info
176
185
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-qe",
3
- "version": "3.8.13",
3
+ "version": "3.8.14",
4
4
  "description": "Agentic Quality Engineering V3 - Domain-Driven Design Architecture with 13 Bounded Contexts, O(log n) coverage analysis, ReasoningBank learning, 60 specialized QE agents, mathematical Coherence verification, deep Claude Flow integration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,46 +0,0 @@
1
- /**
2
- * Agentic QE v3 - MCP Server
3
- * Model Context Protocol server for AI integration
4
- */
5
- import { ToolRegistry } from './tool-registry';
6
- import { ToolDefinition } from './types';
7
- export declare class MCPServer {
8
- private readonly registry;
9
- private initialized;
10
- constructor();
11
- /**
12
- * Initialize the server and register all tools
13
- */
14
- initialize(): Promise<void>;
15
- /**
16
- * Get tool registry
17
- */
18
- getRegistry(): ToolRegistry;
19
- /**
20
- * Get all tool definitions
21
- */
22
- getTools(): ToolDefinition[];
23
- /**
24
- * Get loaded tool definitions (for MCP protocol)
25
- */
26
- getLoadedTools(): ToolDefinition[];
27
- /**
28
- * Invoke a tool
29
- */
30
- invoke<T = unknown>(toolName: string, params: Record<string, unknown>): Promise<T>;
31
- /**
32
- * Load tools for a specific message (lazy loading)
33
- */
34
- loadToolsForMessage(message: string): string[];
35
- /**
36
- * Get server statistics
37
- */
38
- getStats(): import("./tool-registry").ToolStats;
39
- /**
40
- * Dispose server resources
41
- */
42
- dispose(): Promise<void>;
43
- }
44
- export declare function createMCPServer(): MCPServer;
45
- export default MCPServer;
46
- //# sourceMappingURL=server.d.ts.map