@interopio/mcp-core 1.0.0 → 1.1.0

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/mcp-core.d.ts CHANGED
@@ -20,6 +20,13 @@ export namespace IoIntelMCPCore {
20
20
  [x: string]: unknown;
21
21
  listChanged?: boolean;
22
22
  };
23
+ extensions?: {
24
+ [key: string]: unknown;
25
+ "io.modelcontextprotocol/ui"?: {
26
+ mimeTypes?: string[];
27
+ protocolVersion?: string;
28
+ };
29
+ };
23
30
  }
24
31
 
25
32
  export interface StaticToolConfig {
@@ -104,6 +111,13 @@ export namespace IoIntelMCPCore {
104
111
  description?: string;
105
112
  }
106
113
  };
114
+ getWorkspaceWidget?: {
115
+ enabled?: boolean; // default: true
116
+ overrides?: {
117
+ name?: string;
118
+ description?: string;
119
+ }
120
+ }
107
121
  }
108
122
 
109
123
  export interface McpServerConfig {
@@ -141,8 +155,24 @@ export namespace IoIntelMCPCore {
141
155
  createMCPInstance(clientCapabilities: ClientCapabilities): MCPCore;
142
156
  removeMCPInstance(id: string): void;
143
157
  }
158
+
159
+ export interface ToolUIMetadata {
160
+ resourceUri?: string;
161
+ visibility?: ("model" | "app")[];
162
+ csp?: {
163
+ connectDomains?: string[];
164
+ resourceDomains?: string[];
165
+ frameDomains?: string[];
166
+ baseUriDomains?: string[];
167
+ };
168
+ }
169
+
170
+ export interface ToolMeta {
171
+ ui?: ToolUIMetadata;
172
+ [key: string]: unknown;
173
+ }
144
174
  }
145
175
 
146
176
  export type IoIntelMCPCoreFactoryFunction = (io: IOConnectBrowser.API | IOConnectDesktop.API, config: IoIntelMCPCore.Config) => Promise<IoIntelMCPCore.API>;
147
177
 
148
- export declare const IoIntelMCPCoreFactory: IoIntelMCPCoreFactoryFunction;
178
+ export declare const IoIntelMCPCoreFactory: IoIntelMCPCoreFactoryFunction;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@interopio/mcp-core",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "description": "io.Intelligence MCP Core Library",
6
6
  "main": "./dist/mcp-core.umd.js",
@@ -16,12 +16,13 @@
16
16
  "scripts": {
17
17
  "build": "rollup -c",
18
18
  "build:docker": "rollup -c",
19
+ "test": "karma start karma.conf.cjs --single-run",
19
20
  "version": "npm run build"
20
21
  },
21
22
  "dependencies": {
22
23
  "@interopio/browser": "^4.0.0",
23
24
  "@interopio/desktop": "^6.0.0",
24
- "@interopio/working-context": "^1.0.0",
25
+ "@interopio/working-context": "^1.1.0",
25
26
  "@modelcontextprotocol/sdk": "^1.19.1"
26
27
  },
27
28
  "keywords": [
@@ -47,5 +48,5 @@
47
48
  "access": "public"
48
49
  },
49
50
  "license": "MIT",
50
- "gitHead": "48eed5aba906bcf98b959d15a43f2306acf3d292"
51
+ "gitHead": "ba697b00ed784a3cc308cdc7db4c23202fddb533"
51
52
  }