mcp-meilisearch 1.4.15 → 1.4.16
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/README.md +0 -14
- package/dist/client.d.ts +4 -4
- package/dist/client.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -110,13 +110,6 @@ Calls a specific tool on the MCP server with optional arguments.
|
|
|
110
110
|
- `name`: String - The name of the tool to call
|
|
111
111
|
- `args`: Object (Optional) - Arguments to pass to the tool
|
|
112
112
|
|
|
113
|
-
**Returns:**
|
|
114
|
-
|
|
115
|
-
- Promise resolving to a `ToolClientResponse` object with:
|
|
116
|
-
- `success`: Boolean - Whether the tool call was successful
|
|
117
|
-
- `data`: Any (Optional) - The data returned by the tool if successful
|
|
118
|
-
- `error`: String (Optional) - Error message if the tool call failed
|
|
119
|
-
|
|
120
113
|
##### `processSummary(query)`
|
|
121
114
|
|
|
122
115
|
Processes data using AI to generate a human-readable summary.
|
|
@@ -125,13 +118,6 @@ Processes data using AI to generate a human-readable summary.
|
|
|
125
118
|
|
|
126
119
|
- `query`: Any - The data to be summarized
|
|
127
120
|
|
|
128
|
-
**Returns:**
|
|
129
|
-
|
|
130
|
-
- Promise resolving to an `AIToolClientResponse` object with:
|
|
131
|
-
- `success`: Boolean - Whether the summary generation was successful
|
|
132
|
-
- `data`: Any (Optional) - The generated summary if successful
|
|
133
|
-
- `error`: String (Optional) - Error message if summary generation failed
|
|
134
|
-
|
|
135
121
|
##### `callToolWithAI(query, options)`
|
|
136
122
|
|
|
137
123
|
Processes a user query through AI to determine and execute the most appropriate tool.
|
package/dist/client.d.ts
CHANGED
|
@@ -3,12 +3,12 @@ interface ToolClientResponse {
|
|
|
3
3
|
error?: string;
|
|
4
4
|
success: boolean;
|
|
5
5
|
}
|
|
6
|
-
interface
|
|
6
|
+
interface SearchToolClientResponse extends ToolClientResponse {
|
|
7
7
|
summary?: any;
|
|
8
8
|
toolUsed?: string;
|
|
9
9
|
reasoning?: string;
|
|
10
10
|
}
|
|
11
|
-
interface
|
|
11
|
+
interface SearchToolClientOptions {
|
|
12
12
|
specificTools?: string[];
|
|
13
13
|
justReasoning?: boolean;
|
|
14
14
|
provideSummary?: boolean;
|
|
@@ -73,13 +73,13 @@ export declare class MCPClient {
|
|
|
73
73
|
* @throws Error if AI inference fails
|
|
74
74
|
* @returns The result of calling the selected tool, or an error
|
|
75
75
|
*/
|
|
76
|
-
callToolWithAI(query: string, options?:
|
|
76
|
+
callToolWithAI(query: string, options?: SearchToolClientOptions): Promise<SearchToolClientResponse>;
|
|
77
77
|
/**
|
|
78
78
|
* Process a summary text using AI
|
|
79
79
|
* @param query The natural language query to process
|
|
80
80
|
* @throws Error if AI inference fails
|
|
81
81
|
*/
|
|
82
|
-
processSummary(query:
|
|
82
|
+
processSummary(query: any): Promise<ToolClientResponse>;
|
|
83
83
|
/**
|
|
84
84
|
* Closes the connection to the server and resets the connection state
|
|
85
85
|
* Called automatically on transport error or can be called manually
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAQA,UAAU,kBAAkB;IAC1B,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,UAAU,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAQA,UAAU,kBAAkB;IAC1B,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,UAAU,wBAAyB,SAAQ,kBAAkB;IAC3D,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA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