@qverisai/sdk 0.1.2 → 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/LICENSE +1 -1
- package/README.md +93 -216
- package/dist/client.d.ts +106 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +293 -0
- package/dist/client.js.map +1 -0
- package/dist/errors.d.ts +25 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +34 -0
- package/dist/errors.js.map +1 -0
- package/dist/index.d.ts +14 -20
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -260
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +260 -62
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +3 -2
- package/dist/types.js.map +1 -1
- package/package.json +53 -55
- package/dist/api/client.d.ts +0 -147
- package/dist/api/client.d.ts.map +0 -1
- package/dist/api/client.js +0 -201
- package/dist/api/client.js.map +0 -1
- package/dist/tools/execute.d.ts +0 -89
- package/dist/tools/execute.d.ts.map +0 -1
- package/dist/tools/execute.js +0 -73
- package/dist/tools/execute.js.map +0 -1
- package/dist/tools/get-by-ids.d.ts +0 -69
- package/dist/tools/get-by-ids.d.ts.map +0 -1
- package/dist/tools/get-by-ids.js +0 -55
- package/dist/tools/get-by-ids.js.map +0 -1
- package/dist/tools/search.d.ts +0 -71
- package/dist/tools/search.d.ts.map +0 -1
- package/dist/tools/search.js +0 -53
- package/dist/tools/search.js.map +0 -1
package/dist/tools/search.d.ts
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* search_tools MCP Tool Implementation
|
|
3
|
-
*
|
|
4
|
-
* Searches for available tools based on natural language queries.
|
|
5
|
-
* Returns relevant tools that can help accomplish tasks.
|
|
6
|
-
*
|
|
7
|
-
* @module tools/search
|
|
8
|
-
*/
|
|
9
|
-
import type { QverisClient } from '../api/client.js';
|
|
10
|
-
import type { SearchResponse } from '../types.js';
|
|
11
|
-
/**
|
|
12
|
-
* Input parameters for the search_tools tool.
|
|
13
|
-
*/
|
|
14
|
-
export interface SearchToolsInput {
|
|
15
|
-
/**
|
|
16
|
-
* The search query describing the general capability of the tool.
|
|
17
|
-
* Should describe what you want to accomplish, not specific parameters.
|
|
18
|
-
*
|
|
19
|
-
* @example "weather forecast API"
|
|
20
|
-
* @example "send email notification"
|
|
21
|
-
* @example "stock price lookup"
|
|
22
|
-
*/
|
|
23
|
-
query: string;
|
|
24
|
-
/**
|
|
25
|
-
* Maximum number of results to return.
|
|
26
|
-
* @default 20
|
|
27
|
-
* @minimum 1
|
|
28
|
-
* @maximum 100
|
|
29
|
-
*/
|
|
30
|
-
limit?: number;
|
|
31
|
-
/**
|
|
32
|
-
* Session identifier for tracking user sessions.
|
|
33
|
-
* If not provided, the server will use an auto-generated session ID.
|
|
34
|
-
*/
|
|
35
|
-
session_id?: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* JSON Schema for the search_tools tool input.
|
|
39
|
-
* Used by MCP to validate and document the tool parameters.
|
|
40
|
-
*/
|
|
41
|
-
export declare const searchToolsSchema: {
|
|
42
|
-
type: "object";
|
|
43
|
-
properties: {
|
|
44
|
-
query: {
|
|
45
|
-
type: string;
|
|
46
|
-
description: string;
|
|
47
|
-
};
|
|
48
|
-
limit: {
|
|
49
|
-
type: string;
|
|
50
|
-
description: string;
|
|
51
|
-
default: number;
|
|
52
|
-
minimum: number;
|
|
53
|
-
maximum: number;
|
|
54
|
-
};
|
|
55
|
-
session_id: {
|
|
56
|
-
type: string;
|
|
57
|
-
description: string;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
required: string[];
|
|
61
|
-
};
|
|
62
|
-
/**
|
|
63
|
-
* Executes the search_tools operation.
|
|
64
|
-
*
|
|
65
|
-
* @param client - Initialized Qveris API client
|
|
66
|
-
* @param input - Search parameters
|
|
67
|
-
* @param defaultSessionId - Fallback session ID if not provided in input
|
|
68
|
-
* @returns Search results with matching tools
|
|
69
|
-
*/
|
|
70
|
-
export declare function executeSearchTools(client: QverisClient, input: SearchToolsInput, defaultSessionId: string): Promise<SearchResponse>;
|
|
71
|
-
//# sourceMappingURL=search.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/tools/search.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;OAOG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;CAyB7B,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,YAAY,EACpB,KAAK,EAAE,gBAAgB,EACvB,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC,cAAc,CAAC,CAQzB"}
|
package/dist/tools/search.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* search_tools MCP Tool Implementation
|
|
3
|
-
*
|
|
4
|
-
* Searches for available tools based on natural language queries.
|
|
5
|
-
* Returns relevant tools that can help accomplish tasks.
|
|
6
|
-
*
|
|
7
|
-
* @module tools/search
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* JSON Schema for the search_tools tool input.
|
|
11
|
-
* Used by MCP to validate and document the tool parameters.
|
|
12
|
-
*/
|
|
13
|
-
export const searchToolsSchema = {
|
|
14
|
-
type: 'object',
|
|
15
|
-
properties: {
|
|
16
|
-
query: {
|
|
17
|
-
type: 'string',
|
|
18
|
-
description: 'The search query describing the general capability of the tool. ' +
|
|
19
|
-
'Describe what you want to accomplish, not specific params you want to pass to the tool later. ' +
|
|
20
|
-
'Example: "weather forecast API", "send email", "stock prices"',
|
|
21
|
-
},
|
|
22
|
-
limit: {
|
|
23
|
-
type: 'number',
|
|
24
|
-
description: 'Maximum number of results to return (1-100)',
|
|
25
|
-
default: 20,
|
|
26
|
-
minimum: 1,
|
|
27
|
-
maximum: 100,
|
|
28
|
-
},
|
|
29
|
-
session_id: {
|
|
30
|
-
type: 'string',
|
|
31
|
-
description: 'Session identifier for tracking user sessions. ' +
|
|
32
|
-
'If not provided, an auto-generated session ID will be used.',
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
required: ['query'],
|
|
36
|
-
};
|
|
37
|
-
/**
|
|
38
|
-
* Executes the search_tools operation.
|
|
39
|
-
*
|
|
40
|
-
* @param client - Initialized Qveris API client
|
|
41
|
-
* @param input - Search parameters
|
|
42
|
-
* @param defaultSessionId - Fallback session ID if not provided in input
|
|
43
|
-
* @returns Search results with matching tools
|
|
44
|
-
*/
|
|
45
|
-
export async function executeSearchTools(client, input, defaultSessionId) {
|
|
46
|
-
const response = await client.searchTools({
|
|
47
|
-
query: input.query,
|
|
48
|
-
limit: input.limit ?? 20,
|
|
49
|
-
session_id: input.session_id ?? defaultSessionId,
|
|
50
|
-
});
|
|
51
|
-
return response;
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=search.js.map
|
package/dist/tools/search.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../src/tools/search.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAkCH;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,IAAI,EAAE,QAAiB;IACvB,UAAU,EAAE;QACV,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,kEAAkE;gBAClE,gGAAgG;gBAChG,+DAA+D;SAClE;QACD,KAAK,EAAE;YACL,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,6CAA6C;YAC1D,OAAO,EAAE,EAAE;YACX,OAAO,EAAE,CAAC;YACV,OAAO,EAAE,GAAG;SACb;QACD,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,WAAW,EACT,iDAAiD;gBACjD,6DAA6D;SAChE;KACF;IACD,QAAQ,EAAE,CAAC,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,MAAoB,EACpB,KAAuB,EACvB,gBAAwB;IAExB,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC;QACxC,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,EAAE;QACxB,UAAU,EAAE,KAAK,CAAC,UAAU,IAAI,gBAAgB;KACjD,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|