@juspay/neurolink 1.10.0 → 1.11.1
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/CHANGELOG.md +43 -33
- package/README.md +16 -0
- package/dist/agent/direct-tools.d.ts +9 -9
- package/dist/cli/commands/agent-generate.d.ts +1 -2
- package/dist/cli/commands/agent-generate.js +5 -8
- package/dist/cli/commands/config.d.ts +2 -2
- package/dist/cli/commands/config.js +1 -1
- package/dist/cli/commands/mcp.js +91 -100
- package/dist/cli/commands/ollama.d.ts +2 -7
- package/dist/cli/commands/ollama.js +5 -8
- package/dist/cli/index.js +185 -276
- package/dist/core/factory.js +9 -10
- package/dist/index.d.ts +23 -0
- package/dist/index.js +35 -0
- package/dist/lib/agent/direct-tools.d.ts +9 -9
- package/dist/lib/core/factory.js +9 -10
- package/dist/lib/index.d.ts +23 -0
- package/dist/lib/index.js +35 -0
- package/dist/lib/mcp/adapters/plugin-bridge.d.ts +39 -0
- package/dist/lib/mcp/adapters/plugin-bridge.js +82 -0
- package/dist/lib/mcp/auto-discovery.d.ts +38 -96
- package/dist/lib/mcp/auto-discovery.js +100 -744
- package/dist/lib/mcp/client.js +4 -4
- package/dist/lib/mcp/context-manager.js +72 -1
- package/dist/lib/mcp/contracts/mcp-contract.d.ts +162 -0
- package/dist/lib/mcp/contracts/mcp-contract.js +58 -0
- package/dist/lib/mcp/core/plugin-manager.d.ts +45 -0
- package/dist/lib/mcp/core/plugin-manager.js +110 -0
- package/dist/lib/mcp/demo/plugin-demo.d.ts +20 -0
- package/dist/lib/mcp/demo/plugin-demo.js +116 -0
- package/dist/lib/mcp/ecosystem.d.ts +75 -0
- package/dist/lib/mcp/ecosystem.js +161 -0
- package/dist/lib/mcp/external-client.d.ts +88 -0
- package/dist/lib/mcp/external-client.js +323 -0
- package/dist/lib/mcp/external-manager.d.ts +112 -0
- package/dist/lib/mcp/external-manager.js +302 -0
- package/dist/lib/mcp/factory.d.ts +4 -4
- package/dist/lib/mcp/function-calling.js +59 -34
- package/dist/lib/mcp/index.d.ts +39 -184
- package/dist/lib/mcp/index.js +72 -150
- package/dist/lib/mcp/initialize.js +5 -5
- package/dist/lib/mcp/logging.d.ts +27 -60
- package/dist/lib/mcp/logging.js +77 -165
- package/dist/lib/mcp/neurolink-mcp-client.js +31 -3
- package/dist/lib/mcp/orchestrator.d.ts +1 -1
- package/dist/lib/mcp/orchestrator.js +13 -12
- package/dist/lib/mcp/plugin-manager.d.ts +98 -0
- package/dist/lib/mcp/plugin-manager.js +294 -0
- package/dist/lib/mcp/plugins/core/filesystem-mcp.d.ts +35 -0
- package/dist/lib/mcp/plugins/core/filesystem-mcp.js +139 -0
- package/dist/lib/mcp/plugins/filesystem-mcp.d.ts +36 -0
- package/dist/lib/mcp/plugins/filesystem-mcp.js +54 -0
- package/dist/lib/mcp/registry.d.ts +27 -176
- package/dist/lib/mcp/registry.js +31 -372
- package/dist/lib/mcp/security-manager.d.ts +85 -0
- package/dist/lib/mcp/security-manager.js +344 -0
- package/dist/lib/mcp/servers/ai-providers/ai-workflow-tools.d.ts +2 -2
- package/dist/lib/mcp/tool-integration.d.ts +4 -14
- package/dist/lib/mcp/tool-integration.js +43 -21
- package/dist/lib/mcp/tool-registry.d.ts +66 -0
- package/dist/lib/mcp/tool-registry.js +160 -0
- package/dist/lib/mcp/unified-mcp.d.ts +123 -0
- package/dist/lib/mcp/unified-mcp.js +246 -0
- package/dist/lib/mcp/unified-registry.d.ts +42 -229
- package/dist/lib/mcp/unified-registry.js +96 -1346
- package/dist/lib/neurolink.d.ts +3 -4
- package/dist/lib/neurolink.js +17 -18
- package/dist/lib/providers/agent-enhanced-provider.js +2 -2
- package/dist/lib/providers/amazonBedrock.js +2 -2
- package/dist/lib/providers/anthropic.js +3 -3
- package/dist/lib/providers/azureOpenAI.js +3 -3
- package/dist/lib/providers/function-calling-provider.js +34 -25
- package/dist/lib/providers/googleAIStudio.js +9 -3
- package/dist/lib/providers/googleVertexAI.js +2 -2
- package/dist/lib/providers/huggingFace.js +2 -2
- package/dist/lib/providers/mcp-provider.js +33 -5
- package/dist/lib/providers/mistralAI.js +2 -2
- package/dist/lib/providers/ollama.js +2 -2
- package/dist/lib/providers/openAI.js +2 -2
- package/dist/lib/utils/providerUtils-fixed.js +9 -9
- package/dist/mcp/adapters/plugin-bridge.d.ts +39 -0
- package/dist/mcp/adapters/plugin-bridge.js +82 -0
- package/dist/mcp/auto-discovery.d.ts +38 -96
- package/dist/mcp/auto-discovery.js +100 -745
- package/dist/mcp/client.js +4 -4
- package/dist/mcp/context-manager.js +72 -1
- package/dist/mcp/contracts/mcp-contract.d.ts +162 -0
- package/dist/mcp/contracts/mcp-contract.js +58 -0
- package/dist/mcp/core/plugin-manager.d.ts +45 -0
- package/dist/mcp/core/plugin-manager.js +110 -0
- package/dist/mcp/demo/plugin-demo.d.ts +20 -0
- package/dist/mcp/demo/plugin-demo.js +116 -0
- package/dist/mcp/ecosystem.d.ts +75 -0
- package/dist/mcp/ecosystem.js +162 -0
- package/dist/mcp/external-client.d.ts +88 -0
- package/dist/mcp/external-client.js +323 -0
- package/dist/mcp/external-manager.d.ts +112 -0
- package/dist/mcp/external-manager.js +302 -0
- package/dist/mcp/factory.d.ts +4 -4
- package/dist/mcp/function-calling.js +59 -34
- package/dist/mcp/index.d.ts +39 -184
- package/dist/mcp/index.js +72 -150
- package/dist/mcp/initialize.js +5 -5
- package/dist/mcp/logging.d.ts +27 -60
- package/dist/mcp/logging.js +77 -165
- package/dist/mcp/neurolink-mcp-client.js +31 -3
- package/dist/mcp/orchestrator.d.ts +1 -1
- package/dist/mcp/orchestrator.js +13 -12
- package/dist/mcp/plugin-manager.d.ts +98 -0
- package/dist/mcp/plugin-manager.js +295 -0
- package/dist/mcp/plugins/core/filesystem-mcp.d.ts +35 -0
- package/dist/mcp/plugins/core/filesystem-mcp.js +139 -0
- package/dist/mcp/plugins/core/neurolink-mcp.json +17 -0
- package/dist/mcp/plugins/filesystem-mcp.d.ts +36 -0
- package/dist/mcp/plugins/filesystem-mcp.js +54 -0
- package/dist/mcp/registry.d.ts +27 -176
- package/dist/mcp/registry.js +31 -372
- package/dist/mcp/security-manager.d.ts +85 -0
- package/dist/mcp/security-manager.js +344 -0
- package/dist/mcp/servers/ai-providers/ai-workflow-tools.d.ts +2 -2
- package/dist/mcp/tool-integration.d.ts +4 -14
- package/dist/mcp/tool-integration.js +43 -21
- package/dist/mcp/tool-registry.d.ts +66 -0
- package/dist/mcp/tool-registry.js +160 -0
- package/dist/mcp/unified-mcp.d.ts +123 -0
- package/dist/mcp/unified-mcp.js +246 -0
- package/dist/mcp/unified-registry.d.ts +42 -229
- package/dist/mcp/unified-registry.js +96 -1345
- package/dist/neurolink.d.ts +3 -4
- package/dist/neurolink.js +17 -18
- package/dist/providers/agent-enhanced-provider.js +2 -2
- package/dist/providers/amazonBedrock.js +2 -2
- package/dist/providers/anthropic.js +3 -3
- package/dist/providers/azureOpenAI.js +3 -3
- package/dist/providers/function-calling-provider.js +34 -25
- package/dist/providers/googleAIStudio.js +9 -3
- package/dist/providers/googleVertexAI.js +2 -2
- package/dist/providers/huggingFace.js +2 -2
- package/dist/providers/mcp-provider.js +33 -5
- package/dist/providers/mistralAI.js +2 -2
- package/dist/providers/ollama.js +2 -2
- package/dist/providers/openAI.js +2 -2
- package/dist/utils/providerUtils-fixed.js +9 -9
- package/package.json +1 -1
|
@@ -1,120 +1,62 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Supports VS Code, Cursor, Claude Desktop, Windsurf, Roo Code, and generic configurations
|
|
2
|
+
* Auto-Discovery Module for MCP Plugins
|
|
3
|
+
* Handles automatic plugin discovery and registration
|
|
5
4
|
*/
|
|
6
|
-
import {
|
|
5
|
+
import type { DiscoveredMCP } from "./contracts/mcp-contract.js";
|
|
7
6
|
/**
|
|
8
|
-
*
|
|
7
|
+
* Auto-discovery configuration
|
|
9
8
|
*/
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
args?: string[];
|
|
15
|
-
env?: Record<string, string>;
|
|
16
|
-
cwd?: string;
|
|
17
|
-
source: DiscoverySource;
|
|
18
|
-
configPath: string;
|
|
19
|
-
rawConfig: any;
|
|
9
|
+
interface AutoDiscoveryConfig {
|
|
10
|
+
searchPaths: string[];
|
|
11
|
+
manifestName: string;
|
|
12
|
+
maxDepth: number;
|
|
20
13
|
}
|
|
21
14
|
/**
|
|
22
|
-
*
|
|
15
|
+
* Auto-discovery service for MCP plugins
|
|
23
16
|
*/
|
|
24
|
-
export
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
priority: number;
|
|
28
|
-
description: string;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Discovery configuration options
|
|
32
|
-
*/
|
|
33
|
-
export interface DiscoveryOptions {
|
|
34
|
-
searchWorkspace?: boolean;
|
|
35
|
-
searchGlobal?: boolean;
|
|
36
|
-
searchCommonPaths?: boolean;
|
|
37
|
-
followSymlinks?: boolean;
|
|
38
|
-
maxDepth?: number;
|
|
39
|
-
includeInactive?: boolean;
|
|
40
|
-
preferredTools?: string[];
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Discovery result
|
|
44
|
-
*/
|
|
45
|
-
export interface DiscoveryResult {
|
|
46
|
-
discovered: DiscoveredMCPServer[];
|
|
47
|
-
sources: DiscoverySource[];
|
|
48
|
-
errors: string[];
|
|
49
|
-
stats: {
|
|
50
|
-
configFilesFound: number;
|
|
51
|
-
serversDiscovered: number;
|
|
52
|
-
duplicatesRemoved: number;
|
|
53
|
-
executionTime: number;
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* MCP Auto-Discovery Engine
|
|
58
|
-
*/
|
|
59
|
-
export declare class MCPAutoDiscovery {
|
|
60
|
-
private parsers;
|
|
61
|
-
/**
|
|
62
|
-
* Discover MCP servers from all common locations
|
|
63
|
-
*
|
|
64
|
-
* @param options Discovery configuration options
|
|
65
|
-
* @returns Discovery result with found servers
|
|
66
|
-
*/
|
|
67
|
-
discoverServers(options?: DiscoveryOptions): Promise<DiscoveryResult>;
|
|
68
|
-
/**
|
|
69
|
-
* Auto-register discovered servers with a registry
|
|
70
|
-
*
|
|
71
|
-
* @param registry Target MCP registry
|
|
72
|
-
* @param options Discovery options
|
|
73
|
-
* @returns Registration results
|
|
74
|
-
*/
|
|
75
|
-
autoRegisterServers(registry: MCPToolRegistry, options?: DiscoveryOptions): Promise<{
|
|
76
|
-
registered: string[];
|
|
77
|
-
failed: string[];
|
|
78
|
-
errors: string[];
|
|
79
|
-
}>;
|
|
80
|
-
/**
|
|
81
|
-
* Get standard search paths for MCP configurations
|
|
82
|
-
*/
|
|
83
|
-
private getSearchPaths;
|
|
84
|
-
/**
|
|
85
|
-
* Search a specific path for MCP configurations
|
|
86
|
-
*/
|
|
87
|
-
private searchPath;
|
|
17
|
+
export declare class AutoDiscovery {
|
|
18
|
+
private config;
|
|
19
|
+
constructor(config?: Partial<AutoDiscoveryConfig>);
|
|
88
20
|
/**
|
|
89
|
-
*
|
|
21
|
+
* Discover all available MCP plugins
|
|
90
22
|
*/
|
|
91
|
-
|
|
23
|
+
discover(): Promise<DiscoveredMCP[]>;
|
|
92
24
|
/**
|
|
93
|
-
*
|
|
25
|
+
* Discover plugins in a specific path
|
|
94
26
|
*/
|
|
95
|
-
private
|
|
27
|
+
private discoverInPath;
|
|
96
28
|
/**
|
|
97
|
-
*
|
|
29
|
+
* Load plugin from manifest
|
|
98
30
|
*/
|
|
99
|
-
private
|
|
31
|
+
private loadPlugin;
|
|
100
32
|
/**
|
|
101
|
-
*
|
|
33
|
+
* Determine plugin source based on path
|
|
102
34
|
*/
|
|
103
|
-
private
|
|
35
|
+
private determineSource;
|
|
104
36
|
}
|
|
105
37
|
/**
|
|
106
38
|
* Default auto-discovery instance
|
|
107
39
|
*/
|
|
108
|
-
export declare const
|
|
40
|
+
export declare const autoDiscovery: AutoDiscovery;
|
|
41
|
+
/**
|
|
42
|
+
* Discovery options interface
|
|
43
|
+
*/
|
|
44
|
+
export interface DiscoveryOptions {
|
|
45
|
+
searchPaths?: string[];
|
|
46
|
+
manifestName?: string;
|
|
47
|
+
maxDepth?: number;
|
|
48
|
+
includeDevPlugins?: boolean;
|
|
49
|
+
}
|
|
109
50
|
/**
|
|
110
|
-
*
|
|
51
|
+
* Discover MCP servers using auto-discovery
|
|
111
52
|
*/
|
|
112
|
-
export declare function discoverMCPServers(options?: DiscoveryOptions): Promise<
|
|
53
|
+
export declare function discoverMCPServers(options?: DiscoveryOptions): Promise<DiscoveredMCP[]>;
|
|
113
54
|
/**
|
|
114
|
-
*
|
|
55
|
+
* Auto-register discovered MCP servers
|
|
115
56
|
*/
|
|
116
|
-
export declare function autoRegisterMCPServers(
|
|
117
|
-
registered:
|
|
118
|
-
failed:
|
|
119
|
-
|
|
57
|
+
export declare function autoRegisterMCPServers(options?: DiscoveryOptions): Promise<{
|
|
58
|
+
registered: number;
|
|
59
|
+
failed: number;
|
|
60
|
+
plugins: DiscoveredMCP[];
|
|
120
61
|
}>;
|
|
62
|
+
export {};
|