@juspay/neurolink 9.27.0 → 9.28.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 +12 -0
- package/README.md +78 -25
- package/dist/adapters/providerImageAdapter.js +9 -1
- package/dist/cli/commands/config.d.ts +4 -4
- package/dist/cli/commands/mcp.d.ts +87 -0
- package/dist/cli/commands/mcp.js +1524 -0
- package/dist/cli/loop/optionsSchema.js +4 -0
- package/dist/constants/contextWindows.js +18 -7
- package/dist/constants/enums.d.ts +36 -6
- package/dist/constants/enums.js +38 -5
- package/dist/constants/tokens.d.ts +4 -0
- package/dist/constants/tokens.js +4 -0
- package/dist/core/modules/ToolsManager.js +29 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +27 -1
- package/dist/lib/adapters/providerImageAdapter.js +9 -1
- package/dist/lib/constants/contextWindows.js +18 -7
- package/dist/lib/constants/enums.d.ts +36 -6
- package/dist/lib/constants/enums.js +38 -5
- package/dist/lib/constants/tokens.d.ts +4 -0
- package/dist/lib/constants/tokens.js +4 -0
- package/dist/lib/core/modules/ToolsManager.js +29 -2
- package/dist/lib/index.d.ts +2 -1
- package/dist/lib/index.js +27 -1
- package/dist/lib/mcp/agentExposure.d.ts +228 -0
- package/dist/lib/mcp/agentExposure.js +357 -0
- package/dist/lib/mcp/batching/index.d.ts +11 -0
- package/dist/lib/mcp/batching/index.js +11 -0
- package/dist/lib/mcp/batching/requestBatcher.d.ts +202 -0
- package/dist/lib/mcp/batching/requestBatcher.js +442 -0
- package/dist/lib/mcp/caching/index.d.ts +11 -0
- package/dist/lib/mcp/caching/index.js +11 -0
- package/dist/lib/mcp/caching/toolCache.d.ts +221 -0
- package/dist/lib/mcp/caching/toolCache.js +434 -0
- package/dist/lib/mcp/elicitation/elicitationManager.d.ts +169 -0
- package/dist/lib/mcp/elicitation/elicitationManager.js +377 -0
- package/dist/lib/mcp/elicitation/index.d.ts +11 -0
- package/dist/lib/mcp/elicitation/index.js +12 -0
- package/dist/lib/mcp/elicitation/types.d.ts +278 -0
- package/dist/lib/mcp/elicitation/types.js +11 -0
- package/dist/lib/mcp/elicitationProtocol.d.ts +228 -0
- package/dist/lib/mcp/elicitationProtocol.js +376 -0
- package/dist/lib/mcp/enhancedToolDiscovery.d.ts +205 -0
- package/dist/lib/mcp/enhancedToolDiscovery.js +482 -0
- package/dist/lib/mcp/index.d.ts +38 -1
- package/dist/lib/mcp/index.js +36 -3
- package/dist/lib/mcp/mcpRegistryClient.d.ts +332 -0
- package/dist/lib/mcp/mcpRegistryClient.js +489 -0
- package/dist/lib/mcp/mcpServerBase.d.ts +227 -0
- package/dist/lib/mcp/mcpServerBase.js +374 -0
- package/dist/lib/mcp/multiServerManager.d.ts +310 -0
- package/dist/lib/mcp/multiServerManager.js +580 -0
- package/dist/lib/mcp/routing/index.d.ts +11 -0
- package/dist/lib/mcp/routing/index.js +11 -0
- package/dist/lib/mcp/routing/toolRouter.d.ts +219 -0
- package/dist/lib/mcp/routing/toolRouter.js +417 -0
- package/dist/lib/mcp/serverCapabilities.d.ts +341 -0
- package/dist/lib/mcp/serverCapabilities.js +503 -0
- package/dist/lib/mcp/toolAnnotations.d.ts +154 -0
- package/dist/lib/mcp/toolAnnotations.js +240 -0
- package/dist/lib/mcp/toolConverter.d.ts +178 -0
- package/dist/lib/mcp/toolConverter.js +259 -0
- package/dist/lib/mcp/toolIntegration.d.ts +136 -0
- package/dist/lib/mcp/toolIntegration.js +335 -0
- package/dist/lib/neurolink.d.ts +275 -2
- package/dist/lib/neurolink.js +596 -56
- package/dist/lib/providers/amazonBedrock.js +1 -1
- package/dist/lib/providers/anthropic.js +1 -1
- package/dist/lib/providers/litellm.d.ts +10 -0
- package/dist/lib/providers/litellm.js +104 -2
- package/dist/lib/types/configTypes.d.ts +56 -0
- package/dist/lib/types/generateTypes.d.ts +4 -0
- package/dist/lib/types/index.d.ts +1 -1
- package/dist/lib/types/modelTypes.d.ts +6 -6
- package/dist/lib/types/streamTypes.d.ts +2 -0
- package/dist/lib/types/tools.d.ts +2 -0
- package/dist/lib/utils/pricing.js +177 -17
- package/dist/lib/utils/schemaConversion.d.ts +6 -1
- package/dist/lib/utils/schemaConversion.js +50 -28
- package/dist/lib/workflow/config.d.ts +16 -16
- package/dist/mcp/agentExposure.d.ts +228 -0
- package/dist/mcp/agentExposure.js +356 -0
- package/dist/mcp/batching/index.d.ts +11 -0
- package/dist/mcp/batching/index.js +10 -0
- package/dist/mcp/batching/requestBatcher.d.ts +202 -0
- package/dist/mcp/batching/requestBatcher.js +441 -0
- package/dist/mcp/caching/index.d.ts +11 -0
- package/dist/mcp/caching/index.js +10 -0
- package/dist/mcp/caching/toolCache.d.ts +221 -0
- package/dist/mcp/caching/toolCache.js +433 -0
- package/dist/mcp/elicitation/elicitationManager.d.ts +169 -0
- package/dist/mcp/elicitation/elicitationManager.js +376 -0
- package/dist/mcp/elicitation/index.d.ts +11 -0
- package/dist/mcp/elicitation/index.js +11 -0
- package/dist/mcp/elicitation/types.d.ts +278 -0
- package/dist/mcp/elicitation/types.js +10 -0
- package/dist/mcp/elicitationProtocol.d.ts +228 -0
- package/dist/mcp/elicitationProtocol.js +375 -0
- package/dist/mcp/enhancedToolDiscovery.d.ts +205 -0
- package/dist/mcp/enhancedToolDiscovery.js +481 -0
- package/dist/mcp/index.d.ts +38 -1
- package/dist/mcp/index.js +36 -3
- package/dist/mcp/mcpRegistryClient.d.ts +332 -0
- package/dist/mcp/mcpRegistryClient.js +488 -0
- package/dist/mcp/mcpServerBase.d.ts +227 -0
- package/dist/mcp/mcpServerBase.js +373 -0
- package/dist/mcp/multiServerManager.d.ts +310 -0
- package/dist/mcp/multiServerManager.js +579 -0
- package/dist/mcp/routing/index.d.ts +11 -0
- package/dist/mcp/routing/index.js +10 -0
- package/dist/mcp/routing/toolRouter.d.ts +219 -0
- package/dist/mcp/routing/toolRouter.js +416 -0
- package/dist/mcp/serverCapabilities.d.ts +341 -0
- package/dist/mcp/serverCapabilities.js +502 -0
- package/dist/mcp/toolAnnotations.d.ts +154 -0
- package/dist/mcp/toolAnnotations.js +239 -0
- package/dist/mcp/toolConverter.d.ts +178 -0
- package/dist/mcp/toolConverter.js +258 -0
- package/dist/mcp/toolIntegration.d.ts +136 -0
- package/dist/mcp/toolIntegration.js +334 -0
- package/dist/neurolink.d.ts +275 -2
- package/dist/neurolink.js +596 -56
- package/dist/providers/amazonBedrock.js +1 -1
- package/dist/providers/anthropic.js +1 -1
- package/dist/providers/litellm.d.ts +10 -0
- package/dist/providers/litellm.js +104 -2
- package/dist/types/configTypes.d.ts +56 -0
- package/dist/types/generateTypes.d.ts +4 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/streamTypes.d.ts +2 -0
- package/dist/types/tools.d.ts +2 -0
- package/dist/utils/pricing.js +177 -17
- package/dist/utils/schemaConversion.d.ts +6 -1
- package/dist/utils/schemaConversion.js +50 -28
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [9.28.1](https://github.com/juspay/neurolink/compare/v9.28.0...v9.28.1) (2026-03-18)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **(docs):** comprehensive documentation audit, code example fixes, and model updates ([f294ff2](https://github.com/juspay/neurolink/commit/f294ff2eef71a09e271c5dc536a9d00d97cfd5e5))
|
|
6
|
+
|
|
7
|
+
## [9.28.0](https://github.com/juspay/neurolink/compare/v9.27.0...v9.28.0) (2026-03-18)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- **(mcp):** add MCP enhancement modules with routing, caching, batching, and wire into core SDK ([ee8a0b8](https://github.com/juspay/neurolink/commit/ee8a0b8e5e33dcafe44d33944bf9ff99ef59701a))
|
|
12
|
+
|
|
1
13
|
## [9.27.0](https://github.com/juspay/neurolink/compare/v9.26.2...v9.27.0) (2026-03-18)
|
|
2
14
|
|
|
3
15
|
### Features
|
package/README.md
CHANGED
|
@@ -9,11 +9,14 @@ generated (LLM providers: the neurons) to where they are needed (connectors: the
|
|
|
9
9
|
```typescript
|
|
10
10
|
import { NeuroLink } from "@juspay/neurolink";
|
|
11
11
|
|
|
12
|
-
const pipe = new NeuroLink(
|
|
12
|
+
const pipe = new NeuroLink();
|
|
13
13
|
|
|
14
14
|
// Everything is a stream
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
const result = await pipe.stream({ input: { text: "Hello" } });
|
|
16
|
+
for await (const chunk of result.stream) {
|
|
17
|
+
if ("content" in chunk) {
|
|
18
|
+
process.stdout.write(chunk.content);
|
|
19
|
+
}
|
|
17
20
|
}
|
|
18
21
|
```
|
|
19
22
|
|
|
@@ -37,15 +40,20 @@ Extracted from production systems at Juspay and battle-tested at enterprise scal
|
|
|
37
40
|
|
|
38
41
|
## What's New (Q1 2026)
|
|
39
42
|
|
|
40
|
-
| Feature | Version | Description | Guide
|
|
41
|
-
| ----------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
42
|
-
| **
|
|
43
|
-
| **
|
|
44
|
-
| **
|
|
45
|
-
| **
|
|
46
|
-
| **
|
|
47
|
-
| **RAG with generate()/stream()** | v9.2.0 | Pass `rag: { files }` to generate/stream for automatic document chunking, embedding, and AI-powered search. 10 chunking strategies, hybrid search, reranking. | [RAG Guide](docs/features/rag.md)
|
|
48
|
-
| **
|
|
43
|
+
| Feature | Version | Description | Guide |
|
|
44
|
+
| ----------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
|
45
|
+
| **MCP Enhancements** | v9.16.0 | Advanced MCP features: tool routing, result caching, request batching, annotations, elicitation, custom server base, multi-server management | [MCP Enhancements Guide](docs/features/mcp-enhancements.md) |
|
|
46
|
+
| **Memory** | v9.12.0 | Per-user condensed memory that persists across conversations. LLM-powered condensation with S3, Redis, or SQLite backends. | [Memory Guide](docs/features/memory.md) |
|
|
47
|
+
| **Context Window Management** | v9.2.0 | 4-stage compaction pipeline with auto-detection, budget gate at 80% usage, per-provider token estimation | [Context Compaction Guide](docs/features/context-compaction.md) |
|
|
48
|
+
| **Tool Execution Control** | v9.3.0 | `prepareStep` and `toolChoice` support for per-step tool enforcement in multi-step agentic loops. API-level control over tool calls. | [API Reference](docs/api/type-aliases/GenerateOptions.md#preparestep) |
|
|
49
|
+
| **File Processor System** | v9.1.0 | 17+ file type processors with ProcessorRegistry, security sanitization, SVG text injection | [File Processors Guide](docs/features/file-processors.md) |
|
|
50
|
+
| **RAG with generate()/stream()** | v9.2.0 | Pass `rag: { files }` to generate/stream for automatic document chunking, embedding, and AI-powered search. 10 chunking strategies, hybrid search, reranking. | [RAG Guide](docs/features/rag.md) |
|
|
51
|
+
| **External TracerProvider Support** | v8.43.0 | Integrate NeuroLink with existing OpenTelemetry instrumentation. Prevents duplicate registration conflicts. | [Observability Guide](docs/features/observability.md) |
|
|
52
|
+
| **Server Adapters** | v8.43.0 | Multi-framework HTTP server with Hono, Express, Fastify, Koa support. Full CLI for server management with foreground/background modes. | [Server Adapters Guide](docs/guides/server-adapters/index.md) |
|
|
53
|
+
| **Title Generation Events** | v8.38.0 | Emit `conversation:titleGenerated` event when conversation title is generated. Supports custom title prompts via `NEUROLINK_TITLE_PROMPT`. | [Conversation Memory Guide](docs/conversation-memory.md) |
|
|
54
|
+
| **Video Generation with Veo** | v8.32.0 | Video generation using Veo 3.1 (`veo-3.1`). Realistic video generation with many parameter options | [Video Generation Guide](docs/features/video-generation.md) |
|
|
55
|
+
| **Image Generation with Gemini** | v8.31.0 | Native image generation using Gemini 2.0 Flash Experimental (`imagen-3.0-generate-002`). High-quality image synthesis directly from Google AI. | [Image Generation Guide](docs/image-generation-streaming.md) |
|
|
56
|
+
| **HTTP/Streamable HTTP Transport** | v8.29.0 | Connect to remote MCP servers via HTTP with authentication headers, automatic retry with exponential backoff, and configurable rate limiting. | [HTTP Transport Guide](docs/mcp-http-transport.md) |
|
|
49
57
|
|
|
50
58
|
- **Memory** – Per-user condensed memory that persists across all conversations. Automatically retrieves and stores memory on each `generate()`/`stream()` call. Supports S3, Redis, and SQLite storage with LLM-powered condensation. → [Memory Guide](docs/features/memory.md)
|
|
51
59
|
- **External TracerProvider Support** – Integrate NeuroLink with applications that already have OpenTelemetry instrumentation. Supports auto-detection and manual configuration. → [Observability Guide](docs/features/observability.md)
|
|
@@ -69,15 +77,17 @@ Extracted from production systems at Juspay and battle-tested at enterprise scal
|
|
|
69
77
|
- **Human-in-the-loop workflows** – Pause generation for user approval/input before tool execution. → [HITL Guide](docs/features/hitl.md)
|
|
70
78
|
- **Guardrails middleware** – Block PII, profanity, and unsafe content with built-in filtering. → [Guardrails Guide](docs/features/guardrails.md)
|
|
71
79
|
- **Context summarization** – Automatic conversation compression for long-running sessions. → [Summarization Guide](docs/context-summarization.md)
|
|
80
|
+
- **MCP Enhancements** – 14 production-grade modules: tool routing (6 strategies), result caching (LRU/FIFO/LFU), request batching, tool annotations with auto-inference, middleware chain, elicitation protocol, multi-server management, and more. → [MCP Enhancements Guide](docs/features/mcp-enhancements.md)
|
|
72
81
|
- **Redis conversation export** – Export full session history as JSON for analytics and debugging. → [History Guide](docs/features/conversation-history.md)
|
|
73
82
|
|
|
74
83
|
```typescript
|
|
75
84
|
// Image Generation with Gemini (v8.31.0)
|
|
76
|
-
const image = await neurolink.
|
|
77
|
-
|
|
85
|
+
const image = await neurolink.generate({
|
|
86
|
+
input: { text: "A futuristic cityscape" },
|
|
78
87
|
provider: "google-ai",
|
|
79
88
|
model: "imagen-3.0-generate-002",
|
|
80
89
|
});
|
|
90
|
+
console.log(image.imageOutput?.base64); // Base64-encoded image
|
|
81
91
|
|
|
82
92
|
// HTTP Transport for Remote MCP (v8.29.0)
|
|
83
93
|
await neurolink.addExternalMCPServer("remote-tools", {
|
|
@@ -233,6 +243,50 @@ const result = await neurolink.generate({
|
|
|
233
243
|
|
|
234
244
|
---
|
|
235
245
|
|
|
246
|
+
### 🔌 MCP Enhancements
|
|
247
|
+
|
|
248
|
+
**Production-grade MCP capabilities** for managing tool calls at scale across multi-server environments:
|
|
249
|
+
|
|
250
|
+
| Module | Purpose |
|
|
251
|
+
| ----------------------------- | ---------------------------------------------------------- |
|
|
252
|
+
| **Tool Router** | Intelligent routing across servers with 6 strategies |
|
|
253
|
+
| **Tool Cache** | Result caching with LRU, FIFO, and LFU eviction |
|
|
254
|
+
| **Request Batcher** | Automatic batching of tool calls for throughput |
|
|
255
|
+
| **Tool Annotations** | Safety metadata and behavior hints for MCP tools |
|
|
256
|
+
| **Tool Converter** | Bidirectional conversion between NeuroLink and MCP formats |
|
|
257
|
+
| **Elicitation Protocol** | Interactive user input during tool execution (HITL) |
|
|
258
|
+
| **Multi-Server Manager** | Load balancing and failover across server groups |
|
|
259
|
+
| **MCP Server Base** | Abstract base class for building custom MCP servers |
|
|
260
|
+
| **Enhanced Tool Discovery** | Advanced search and filtering across servers |
|
|
261
|
+
| **Agent & Workflow Exposure** | Expose agents and workflows as MCP tools |
|
|
262
|
+
| **Server Capabilities** | Resource and prompt management per MCP spec |
|
|
263
|
+
| **Registry Client** | Discover and connect to MCP servers from registries |
|
|
264
|
+
| **Tool Integration** | End-to-end tool lifecycle with middleware chain |
|
|
265
|
+
| **Elicitation Manager** | Manages elicitation flows with validation and timeouts |
|
|
266
|
+
|
|
267
|
+
```typescript
|
|
268
|
+
import { ToolRouter, ToolCache, RequestBatcher } from "@juspay/neurolink";
|
|
269
|
+
|
|
270
|
+
// Route tool calls across multiple MCP servers
|
|
271
|
+
const router = new ToolRouter({
|
|
272
|
+
strategy: "capability-based",
|
|
273
|
+
servers: [
|
|
274
|
+
{ name: "github", url: "https://mcp-github.example.com" },
|
|
275
|
+
{ name: "db", url: "https://mcp-postgres.example.com" },
|
|
276
|
+
],
|
|
277
|
+
});
|
|
278
|
+
|
|
279
|
+
// Cache repeated tool results (LRU, FIFO, or LFU)
|
|
280
|
+
const cache = new ToolCache({ strategy: "lru", maxSize: 500, ttl: 60_000 });
|
|
281
|
+
|
|
282
|
+
// Batch concurrent tool calls for throughput
|
|
283
|
+
const batcher = new RequestBatcher({ maxBatchSize: 10, maxWaitMs: 50 });
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
**[📖 MCP Enhancements Guide](docs/features/mcp-enhancements.md)** - Full reference for all 14 modules
|
|
287
|
+
|
|
288
|
+
---
|
|
289
|
+
|
|
236
290
|
### 💻 Developer Experience Features
|
|
237
291
|
|
|
238
292
|
**SDK-First Design** with TypeScript, IntelliSense, and type safety:
|
|
@@ -348,27 +402,25 @@ import { NeuroLink } from "@juspay/neurolink";
|
|
|
348
402
|
const neurolink = new NeuroLink({
|
|
349
403
|
conversationMemory: {
|
|
350
404
|
enabled: true,
|
|
351
|
-
|
|
352
|
-
ttl: 86400, // 24-hour session expiration
|
|
405
|
+
enableSummarization: true,
|
|
353
406
|
},
|
|
354
407
|
});
|
|
355
408
|
|
|
356
|
-
// Or explicit configuration
|
|
409
|
+
// Or explicit Redis configuration
|
|
357
410
|
const neurolinkExplicit = new NeuroLink({
|
|
358
411
|
conversationMemory: {
|
|
359
412
|
enabled: true,
|
|
360
|
-
|
|
361
|
-
redis: {
|
|
413
|
+
redisConfig: {
|
|
362
414
|
host: "redis.example.com",
|
|
363
415
|
port: 6379,
|
|
364
416
|
password: process.env.REDIS_PASSWORD,
|
|
365
|
-
|
|
417
|
+
ttl: 86400, // 24-hour session expiration (seconds)
|
|
366
418
|
},
|
|
367
419
|
},
|
|
368
420
|
});
|
|
369
421
|
|
|
370
|
-
//
|
|
371
|
-
const history = await neurolink.
|
|
422
|
+
// Retrieve conversation history for analytics
|
|
423
|
+
const history = await neurolink.getConversationHistory("session-id");
|
|
372
424
|
await saveToDataWarehouse(history);
|
|
373
425
|
```
|
|
374
426
|
|
|
@@ -555,7 +607,6 @@ import { NeuroLink } from "@juspay/neurolink";
|
|
|
555
607
|
const neurolink = new NeuroLink({
|
|
556
608
|
conversationMemory: {
|
|
557
609
|
enabled: true,
|
|
558
|
-
store: "redis",
|
|
559
610
|
},
|
|
560
611
|
enableOrchestration: true,
|
|
561
612
|
});
|
|
@@ -583,7 +634,7 @@ console.log(result.evaluation?.overallScore);
|
|
|
583
634
|
|
|
584
635
|
// RAG: Ask questions about your documents
|
|
585
636
|
const answer = await neurolink.generate({
|
|
586
|
-
|
|
637
|
+
input: { text: "What are the main architectural decisions?" },
|
|
587
638
|
rag: {
|
|
588
639
|
files: ["./docs/architecture.md", "./docs/decisions.md"],
|
|
589
640
|
strategy: "markdown",
|
|
@@ -607,7 +658,9 @@ const result = await neurolink.generate({
|
|
|
607
658
|
},
|
|
608
659
|
provider: "vertex",
|
|
609
660
|
model: "gemini-3-flash-preview",
|
|
610
|
-
|
|
661
|
+
thinkingConfig: {
|
|
662
|
+
thinkingLevel: "medium", // Options: "minimal", "low", "medium", "high"
|
|
663
|
+
},
|
|
611
664
|
});
|
|
612
665
|
|
|
613
666
|
console.log(result.content);
|
|
@@ -62,7 +62,12 @@ function normalizeVisionProvider(provider) {
|
|
|
62
62
|
*/
|
|
63
63
|
const VISION_CAPABILITIES = {
|
|
64
64
|
openai: [
|
|
65
|
-
// GPT-5.
|
|
65
|
+
// GPT-5.4 family (released Mar 2026) - Latest flagship models
|
|
66
|
+
"gpt-5.4",
|
|
67
|
+
"gpt-5.4-mini",
|
|
68
|
+
"gpt-5.4-nano",
|
|
69
|
+
"gpt-5.4-pro",
|
|
70
|
+
// GPT-5.2 family (released Dec 11, 2025)
|
|
66
71
|
"gpt-5.2",
|
|
67
72
|
"gpt-5.2-chat-latest",
|
|
68
73
|
"gpt-5.2-pro",
|
|
@@ -118,6 +123,9 @@ const VISION_CAPABILITIES = {
|
|
|
118
123
|
"gemini-pro-vision",
|
|
119
124
|
],
|
|
120
125
|
anthropic: [
|
|
126
|
+
// Claude 4.6 Series (February 2026)
|
|
127
|
+
"claude-opus-4-6",
|
|
128
|
+
"claude-sonnet-4-6",
|
|
121
129
|
// Claude 4.5 Series (September-November 2025)
|
|
122
130
|
"claude-sonnet-4-5",
|
|
123
131
|
"claude-sonnet-4-5-20250929",
|
|
@@ -247,8 +247,8 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
247
247
|
enableEvaluationByDefault: z.ZodDefault<z.ZodBoolean>;
|
|
248
248
|
}, "strip", z.ZodTypeAny, {
|
|
249
249
|
temperature: number;
|
|
250
|
-
outputFormat: "text" | "json" | "yaml";
|
|
251
250
|
enableLogging: boolean;
|
|
251
|
+
outputFormat: "text" | "json" | "yaml";
|
|
252
252
|
enableCaching: boolean;
|
|
253
253
|
cacheStrategy: "memory" | "redis" | "file";
|
|
254
254
|
enableAnalyticsByDefault: boolean;
|
|
@@ -258,8 +258,8 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
258
258
|
}, {
|
|
259
259
|
temperature?: number | undefined;
|
|
260
260
|
maxTokens?: number | undefined;
|
|
261
|
-
outputFormat?: "text" | "json" | "yaml" | undefined;
|
|
262
261
|
enableLogging?: boolean | undefined;
|
|
262
|
+
outputFormat?: "text" | "json" | "yaml" | undefined;
|
|
263
263
|
enableCaching?: boolean | undefined;
|
|
264
264
|
cacheStrategy?: "memory" | "redis" | "file" | undefined;
|
|
265
265
|
defaultEvaluationDomain?: string | undefined;
|
|
@@ -509,8 +509,8 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
509
509
|
profiles: Record<string, any>;
|
|
510
510
|
preferences: {
|
|
511
511
|
temperature: number;
|
|
512
|
-
outputFormat: "text" | "json" | "yaml";
|
|
513
512
|
enableLogging: boolean;
|
|
513
|
+
outputFormat: "text" | "json" | "yaml";
|
|
514
514
|
enableCaching: boolean;
|
|
515
515
|
cacheStrategy: "memory" | "redis" | "file";
|
|
516
516
|
enableAnalyticsByDefault: boolean;
|
|
@@ -608,8 +608,8 @@ declare const ConfigSchema: z.ZodObject<{
|
|
|
608
608
|
preferences?: {
|
|
609
609
|
temperature?: number | undefined;
|
|
610
610
|
maxTokens?: number | undefined;
|
|
611
|
-
outputFormat?: "text" | "json" | "yaml" | undefined;
|
|
612
611
|
enableLogging?: boolean | undefined;
|
|
612
|
+
outputFormat?: "text" | "json" | "yaml" | undefined;
|
|
613
613
|
enableCaching?: boolean | undefined;
|
|
614
614
|
cacheStrategy?: "memory" | "redis" | "file" | undefined;
|
|
615
615
|
defaultEvaluationDomain?: string | undefined;
|
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
* MCP CLI Commands for NeuroLink
|
|
3
3
|
* Implements comprehensive MCP server management commands
|
|
4
4
|
* Part of Phase 4.2 - MCP CLI Commands
|
|
5
|
+
*
|
|
6
|
+
* Enhanced in Phase 8.39.0 with:
|
|
7
|
+
* - neurolink mcp servers - List all MCP servers
|
|
8
|
+
* - neurolink mcp tools - List all available tools
|
|
9
|
+
* - neurolink mcp discover - Enhanced tool discovery
|
|
10
|
+
* - neurolink mcp create-server - Scaffold a new MCP server
|
|
11
|
+
* - neurolink mcp annotate - Add/update tool annotations
|
|
5
12
|
*/
|
|
6
13
|
import type { CommandModule } from "yargs";
|
|
7
14
|
/**
|
|
@@ -76,4 +83,84 @@ export declare class MCPCommandFactory {
|
|
|
76
83
|
* Discover servers from VS Code configuration
|
|
77
84
|
*/
|
|
78
85
|
private static discoverFromVSCode;
|
|
86
|
+
/**
|
|
87
|
+
* Build options for servers command
|
|
88
|
+
*/
|
|
89
|
+
private static buildServersOptions;
|
|
90
|
+
/**
|
|
91
|
+
* Build options for tools command
|
|
92
|
+
*/
|
|
93
|
+
private static buildToolsOptions;
|
|
94
|
+
/**
|
|
95
|
+
* Build options for discover tools command
|
|
96
|
+
*/
|
|
97
|
+
private static buildDiscoverToolsOptions;
|
|
98
|
+
/**
|
|
99
|
+
* Build options for create-server command
|
|
100
|
+
*/
|
|
101
|
+
private static buildCreateServerOptions;
|
|
102
|
+
/**
|
|
103
|
+
* Execute servers command
|
|
104
|
+
*/
|
|
105
|
+
private static executeServers;
|
|
106
|
+
/**
|
|
107
|
+
* Execute tools command
|
|
108
|
+
*/
|
|
109
|
+
private static executeTools;
|
|
110
|
+
/**
|
|
111
|
+
* Execute discover tools command
|
|
112
|
+
*/
|
|
113
|
+
private static executeDiscoverTools;
|
|
114
|
+
/**
|
|
115
|
+
* Execute create-server command
|
|
116
|
+
*/
|
|
117
|
+
private static executeCreateServer;
|
|
118
|
+
/**
|
|
119
|
+
* Generate TypeScript MCP server
|
|
120
|
+
*/
|
|
121
|
+
private static generateTypeScriptServer;
|
|
122
|
+
/**
|
|
123
|
+
* Generate Python MCP server
|
|
124
|
+
*/
|
|
125
|
+
private static generatePythonServer;
|
|
126
|
+
/**
|
|
127
|
+
* Generate basic JavaScript MCP server
|
|
128
|
+
*/
|
|
129
|
+
private static generateBasicServer;
|
|
130
|
+
/**
|
|
131
|
+
* Infer tool category from name and description
|
|
132
|
+
*/
|
|
133
|
+
private static inferToolCategory;
|
|
134
|
+
/**
|
|
135
|
+
* Create the registry subcommand
|
|
136
|
+
*/
|
|
137
|
+
static createRegistryCommand(): CommandModule;
|
|
138
|
+
/**
|
|
139
|
+
* Execute registry search
|
|
140
|
+
*/
|
|
141
|
+
private static executeRegistrySearch;
|
|
142
|
+
/**
|
|
143
|
+
* Execute registry list
|
|
144
|
+
*/
|
|
145
|
+
private static executeRegistryList;
|
|
146
|
+
/**
|
|
147
|
+
* Execute registry info
|
|
148
|
+
*/
|
|
149
|
+
private static executeRegistryInfo;
|
|
150
|
+
/**
|
|
151
|
+
* Execute registry categories
|
|
152
|
+
*/
|
|
153
|
+
private static executeRegistryCategories;
|
|
154
|
+
/**
|
|
155
|
+
* Execute registry popular
|
|
156
|
+
*/
|
|
157
|
+
private static executeRegistryPopular;
|
|
158
|
+
/**
|
|
159
|
+
* Build options for annotate command
|
|
160
|
+
*/
|
|
161
|
+
private static buildAnnotateOptions;
|
|
162
|
+
/**
|
|
163
|
+
* Execute annotate command
|
|
164
|
+
*/
|
|
165
|
+
private static executeAnnotate;
|
|
79
166
|
}
|