UNPKG

@juspay/neurolink

Version:

Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio

179 lines (178 loc) 4.52 kB
/** * MCP CLI Commands for NeuroLink * Implements comprehensive MCP server management commands * Part of Phase 4.2 - MCP CLI Commands * * Enhanced in Phase 8.39.0 with: * - neurolink mcp servers - List all MCP servers * - neurolink mcp tools - List all available tools * - neurolink mcp discover - Enhanced tool discovery * - neurolink mcp create-server - Scaffold a new MCP server * - neurolink mcp annotate - Add/update tool annotations */ import type { CommandModule } from "yargs"; /** * MCP CLI command factory */ export declare class MCPCommandFactory { /** * Create the main MCP command with subcommands */ static createMCPCommands(): CommandModule; /** * Create discover command (top-level command) */ static createDiscoverCommand(): CommandModule; /** * Build options for list command */ private static buildListOptions; /** * Build options for install command */ private static buildInstallOptions; /** * Build options for add command */ private static buildAddOptions; /** * Build options for test command */ private static buildTestOptions; /** * Build options for exec command */ private static buildExecOptions; /** * Build options for remove command */ private static buildRemoveOptions; /** * Execute list command */ private static executeList; /** * Execute install command */ private static executeInstall; /** * Execute add command */ private static executeAdd; /** * Execute test command */ private static executeTest; /** * Execute exec command */ private static executeExec; /** * Run the actual MCP tool execution and format/write the output. * Extracted to keep executeExec nesting within ESLint max-depth limit. * Returns 0 on success, 1 on failure. */ private static runExecTool; /** * Execute remove command */ private static executeRemove; /** * Execute discover command */ private static executeDiscover; /** * Discover servers from Claude Desktop configuration */ private static discoverFromClaudeDesktop; /** * Discover servers from VS Code configuration */ private static discoverFromVSCode; /** * Build options for servers command */ private static buildServersOptions; /** * Build options for tools command */ private static buildToolsOptions; /** * Build options for discover tools command */ private static buildDiscoverToolsOptions; /** * Build options for create-server command */ private static buildCreateServerOptions; /** * Execute servers command */ private static executeServers; /** * Execute tools command */ private static executeTools; /** * Execute discover tools command */ private static executeDiscoverTools; /** * Execute create-server command */ private static executeCreateServer; /** * Generate TypeScript MCP server */ private static generateTypeScriptServer; /** * Generate Python MCP server */ private static generatePythonServer; /** * Generate basic JavaScript MCP server */ private static generateBasicServer; /** * Infer tool category from name and description */ private static inferToolCategory; /** * Create the registry subcommand */ static createRegistryCommand(): CommandModule; /** * Execute registry search */ private static executeRegistrySearch; /** * Execute registry list */ private static executeRegistryList; /** * Execute registry info */ private static executeRegistryInfo; /** * Execute registry categories */ private static executeRegistryCategories; /** * Execute registry popular */ private static executeRegistryPopular; /** * Build options for annotate command */ private static buildAnnotateOptions; /** * Execute annotate command */ private static executeAnnotate; private static getMCPStatusWithTimeout; private static listToolAnnotations; private static collectToolAnnotations; private static findToolForAnnotation; private static buildAnnotationsFromArgs; private static printAnnotationUpdate; }