@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.
@@ -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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuvin/agent-core",
3
- "version": "0.1.0-rc.7",
3
+ "version": "0.1.0-rc.8",
4
4
  "private": false,
5
5
  "description": "Core agent, model, format, and tool primitives for Nuvin",
6
6
  "license": "Apache-2.0",