modality-ai 0.1.4 → 0.2.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/dist/index.js
CHANGED
|
@@ -126604,8 +126604,7 @@ var createStdioToHttpClient = (options) => {
|
|
|
126604
126604
|
}, timeout6);
|
|
126605
126605
|
return client;
|
|
126606
126606
|
};
|
|
126607
|
-
var setupStdioToHttpTools = async (
|
|
126608
|
-
const client = createStdioToHttpClient(options);
|
|
126607
|
+
var setupStdioToHttpTools = async (client, mcpServer) => {
|
|
126609
126608
|
const tools = await client.listTools();
|
|
126610
126609
|
const aiTools = {};
|
|
126611
126610
|
for (const tool2 of tools.tools) {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export { createAIChat, mergeToolCallsAndResults, OllamaProvider, } from "./util_
|
|
|
2
2
|
export { ModalityClient } from "./ModalityClient";
|
|
3
3
|
export { setupStdioToHttpTools, createStdioToHttpClient, } from "./setupStdioToHttpTools";
|
|
4
4
|
export type { ModalityClientInstance } from "./ModalityClient";
|
|
5
|
+
export type { StdioToHttpOptions } from "./setupStdioToHttpTools";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ModalityFastMCP, type AITools } from "modality-mcp-kit";
|
|
2
2
|
import { type ModalityClientInstance } from "./ModalityClient";
|
|
3
|
-
interface StdioToHttpOptions {
|
|
3
|
+
export interface StdioToHttpOptions {
|
|
4
4
|
command?: string;
|
|
5
5
|
args?: string[];
|
|
6
6
|
env?: Record<string, string>;
|
|
@@ -12,5 +12,4 @@ export declare const createStdioToHttpClient: (options?: StdioToHttpOptions) =>
|
|
|
12
12
|
* Setup Chrome DevTools MCP tools
|
|
13
13
|
* Dynamically loads all tools from chrome-devtools-mcp@latest and exposes them as AITools
|
|
14
14
|
*/
|
|
15
|
-
export declare const setupStdioToHttpTools: (
|
|
16
|
-
export {};
|
|
15
|
+
export declare const setupStdioToHttpTools: (client: ModalityClientInstance, mcpServer?: ModalityFastMCP) => Promise<AITools>;
|
package/package.json
CHANGED