@nuvin/agent-core 0.1.0-rc.7 → 0.1.0-rc.8
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/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-FKZ3QQWZ.js +1 -1
- package/dist/chunk-NHBKADBW.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-QDOE7NWO.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/models/index.js +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/mcp-server-manager.d.ts +18 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ListToolsResult } from "@modelcontextprotocol/sdk/types.js";
|
|
2
2
|
import type { MCPServerConfig } from "@nuvin/config";
|
|
3
|
-
import type { AnyToolDefinition } from "../shared/types.ts";
|
|
3
|
+
import type { AnyToolDefinition, JsonValue } from "../shared/types.ts";
|
|
4
4
|
import { type McpToolClient } from "./mcp-tool-adapter.ts";
|
|
5
5
|
interface ConnectedMcpClient extends McpToolClient {
|
|
6
6
|
listTools(): Promise<ListToolsResult>;
|
|
@@ -18,9 +18,26 @@ export type McpServerConnectionStatus = {
|
|
|
18
18
|
status: "error";
|
|
19
19
|
message: string;
|
|
20
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* One MCP tool's user-facing descriptor, grouped per server. Populated only for
|
|
23
|
+
* connected + allowed tools so the Ctrl+P MCP tab can render each server's tool
|
|
24
|
+
* list without a second round-trip (the flat {@link McpToolBundle.tools} array
|
|
25
|
+
* carries no per-server bucketing).
|
|
26
|
+
*/
|
|
27
|
+
export type McpServerToolInfo = {
|
|
28
|
+
name: string;
|
|
29
|
+
description?: string;
|
|
30
|
+
inputSchema?: JsonValue;
|
|
31
|
+
};
|
|
21
32
|
export interface McpToolBundle {
|
|
22
33
|
tools: AnyToolDefinition[];
|
|
23
34
|
servers: Record<string, McpServerConnectionStatus>;
|
|
35
|
+
/**
|
|
36
|
+
* Per-server tool descriptors for the connected + allowed tools (server name →
|
|
37
|
+
* descriptors). Optional so existing bundle literals stay valid; consumers
|
|
38
|
+
* default to `{}`.
|
|
39
|
+
*/
|
|
40
|
+
serverTools?: Record<string, McpServerToolInfo[]>;
|
|
24
41
|
close(): Promise<void>;
|
|
25
42
|
}
|
|
26
43
|
export interface McpConnectionOptions {
|