@keystrokehq/exa 0.0.16 → 0.0.55
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 +90 -2
- package/dist/actions/index.cjs +17 -0
- package/dist/actions/index.d.cts +2 -0
- package/dist/actions/index.d.mts +2 -0
- package/dist/actions/index.mjs +2 -0
- package/dist/actions-Bl-9uz6K.cjs +491 -0
- package/dist/actions-Bl-9uz6K.cjs.map +1 -0
- package/dist/actions-DnHafheX.mjs +373 -0
- package/dist/actions-DnHafheX.mjs.map +1 -0
- package/dist/credential-BWous9Uu.cjs +16 -0
- package/dist/credential-BWous9Uu.cjs.map +1 -0
- package/dist/credential-NfXyV_Vy.mjs +11 -0
- package/dist/credential-NfXyV_Vy.mjs.map +1 -0
- package/dist/index-BwCGHs6v.d.cts +357 -0
- package/dist/index-BwCGHs6v.d.cts.map +1 -0
- package/dist/index-BwCGHs6v.d.mts +357 -0
- package/dist/index-BwCGHs6v.d.mts.map +1 -0
- package/dist/index.cjs +14 -0
- package/dist/index.d.cts +20 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +20 -4
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +4 -5
- package/dist/mcp.cjs +57 -0
- package/dist/mcp.cjs.map +1 -0
- package/dist/mcp.d.cts +16 -0
- package/dist/mcp.d.cts.map +1 -0
- package/dist/mcp.d.mts +16 -0
- package/dist/mcp.d.mts.map +1 -0
- package/dist/mcp.mjs +54 -0
- package/dist/mcp.mjs.map +1 -0
- package/package.json +49 -54
- package/dist/contents.schema-BNgTB2DN.mjs +0 -133
- package/dist/credential-sets/index.d.mts +0 -2
- package/dist/credential-sets/index.mjs +0 -3
- package/dist/exa.credential-set-BGLENRlR.d.mts +0 -14
- package/dist/exa.credential-set-Ba-RsxL2.mjs +0 -15
- package/dist/operations/index.d.mts +0 -2
- package/dist/operations/index.mjs +0 -3
- package/dist/schemas/index.d.mts +0 -2
- package/dist/schemas/index.mjs +0 -3
- package/dist/search.schema-Cw-d91N6.d.mts +0 -204
- package/dist/update-monitor.operation-D-vWJFP3.mjs +0 -478
- package/dist/update-monitor.operation-Dm50YoS7.d.mts +0 -570
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/answer.d.ts
|
|
4
|
+
declare const ExaAnswerInput: z.ZodObject<{
|
|
5
|
+
query: z.ZodString;
|
|
6
|
+
includeCitationText: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
+
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const ExaAnswerOutput: z.ZodObject<{
|
|
10
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
answer: z.ZodUnknown;
|
|
12
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
13
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
url: z.ZodString;
|
|
15
|
+
id: z.ZodOptional<z.ZodString>;
|
|
16
|
+
publishedDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
costDollars: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const exaAnswer: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
query: string;
|
|
26
|
+
includeCitationText: boolean;
|
|
27
|
+
outputSchema?: Record<string, unknown> | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
answer: unknown;
|
|
30
|
+
citations: {
|
|
31
|
+
url: string;
|
|
32
|
+
title?: string | null | undefined;
|
|
33
|
+
id?: string | undefined;
|
|
34
|
+
publishedDate?: string | null | undefined;
|
|
35
|
+
author?: string | null | undefined;
|
|
36
|
+
text?: string | null | undefined;
|
|
37
|
+
}[];
|
|
38
|
+
requestId?: string | undefined;
|
|
39
|
+
costDollars?: {
|
|
40
|
+
total?: number | undefined;
|
|
41
|
+
} | undefined;
|
|
42
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"exa", z.ZodObject<{
|
|
43
|
+
apiKey: z.ZodString;
|
|
44
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"exa", z.ZodObject<{
|
|
45
|
+
apiKey: z.ZodString;
|
|
46
|
+
}, z.core.$strip>>]>;
|
|
47
|
+
//#endregion
|
|
48
|
+
//#region src/actions/get-contents.d.ts
|
|
49
|
+
declare const ExaGetContentsInput: z.ZodObject<{
|
|
50
|
+
urls: z.ZodArray<z.ZodString>;
|
|
51
|
+
highlights: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
+
text: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
summary: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
declare const ExaGetContentsOutput: z.ZodObject<{
|
|
56
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
57
|
+
results: z.ZodArray<z.ZodObject<{
|
|
58
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
|
+
url: z.ZodString;
|
|
60
|
+
id: z.ZodOptional<z.ZodString>;
|
|
61
|
+
publishedDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
+
highlights: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
65
|
+
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
|
+
entities: z.ZodOptional<z.ZodUnknown>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
statuses: z.ZodArray<z.ZodObject<{
|
|
69
|
+
id: z.ZodString;
|
|
70
|
+
status: z.ZodEnum<{
|
|
71
|
+
success: "success";
|
|
72
|
+
error: "error";
|
|
73
|
+
}>;
|
|
74
|
+
source: z.ZodOptional<z.ZodEnum<{
|
|
75
|
+
cached: "cached";
|
|
76
|
+
crawled: "crawled";
|
|
77
|
+
}>>;
|
|
78
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
79
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
80
|
+
httpStatusCode: z.ZodOptional<z.ZodNumber>;
|
|
81
|
+
}, z.core.$strip>>;
|
|
82
|
+
}, z.core.$strip>>;
|
|
83
|
+
costDollars: z.ZodOptional<z.ZodObject<{
|
|
84
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
declare const exaGetContents: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
88
|
+
urls: string[];
|
|
89
|
+
highlights?: boolean | undefined;
|
|
90
|
+
text?: boolean | undefined;
|
|
91
|
+
summary?: boolean | undefined;
|
|
92
|
+
}, {
|
|
93
|
+
results: {
|
|
94
|
+
url: string;
|
|
95
|
+
title?: string | null | undefined;
|
|
96
|
+
id?: string | undefined;
|
|
97
|
+
publishedDate?: string | null | undefined;
|
|
98
|
+
author?: string | null | undefined;
|
|
99
|
+
text?: string | null | undefined;
|
|
100
|
+
highlights?: string[] | undefined;
|
|
101
|
+
summary?: string | null | undefined;
|
|
102
|
+
entities?: unknown;
|
|
103
|
+
}[];
|
|
104
|
+
statuses: {
|
|
105
|
+
id: string;
|
|
106
|
+
status: "success" | "error";
|
|
107
|
+
source?: "cached" | "crawled" | undefined;
|
|
108
|
+
error?: {
|
|
109
|
+
tag?: string | undefined;
|
|
110
|
+
httpStatusCode?: number | undefined;
|
|
111
|
+
} | undefined;
|
|
112
|
+
}[];
|
|
113
|
+
requestId?: string | undefined;
|
|
114
|
+
costDollars?: {
|
|
115
|
+
total?: number | undefined;
|
|
116
|
+
} | undefined;
|
|
117
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"exa", z.ZodObject<{
|
|
118
|
+
apiKey: z.ZodString;
|
|
119
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"exa", z.ZodObject<{
|
|
120
|
+
apiKey: z.ZodString;
|
|
121
|
+
}, z.core.$strip>>]>;
|
|
122
|
+
//#endregion
|
|
123
|
+
//#region src/actions/get-context.d.ts
|
|
124
|
+
declare const ExaGetContextInput: z.ZodObject<{
|
|
125
|
+
query: z.ZodString;
|
|
126
|
+
tokensNum: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodLiteral<"dynamic">]>>;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
declare const ExaGetContextOutput: z.ZodObject<{
|
|
129
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
130
|
+
query: z.ZodOptional<z.ZodString>;
|
|
131
|
+
response: z.ZodString;
|
|
132
|
+
resultsCount: z.ZodOptional<z.ZodNumber>;
|
|
133
|
+
searchTime: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
outputTokens: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
costDollars: z.ZodOptional<z.ZodObject<{
|
|
136
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
}, z.core.$strip>>;
|
|
138
|
+
}, z.core.$strip>;
|
|
139
|
+
declare const exaGetContext: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
140
|
+
query: string;
|
|
141
|
+
tokensNum: number | "dynamic";
|
|
142
|
+
}, {
|
|
143
|
+
response: string;
|
|
144
|
+
requestId?: string | undefined;
|
|
145
|
+
query?: string | undefined;
|
|
146
|
+
resultsCount?: number | undefined;
|
|
147
|
+
searchTime?: number | undefined;
|
|
148
|
+
outputTokens?: number | undefined;
|
|
149
|
+
costDollars?: {
|
|
150
|
+
total?: number | undefined;
|
|
151
|
+
} | undefined;
|
|
152
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"exa", z.ZodObject<{
|
|
153
|
+
apiKey: z.ZodString;
|
|
154
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"exa", z.ZodObject<{
|
|
155
|
+
apiKey: z.ZodString;
|
|
156
|
+
}, z.core.$strip>>]>;
|
|
157
|
+
//#endregion
|
|
158
|
+
//#region src/actions/search.d.ts
|
|
159
|
+
declare const ExaSearchInput: z.ZodObject<{
|
|
160
|
+
query: z.ZodString;
|
|
161
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
162
|
+
instant: "instant";
|
|
163
|
+
fast: "fast";
|
|
164
|
+
auto: "auto";
|
|
165
|
+
"deep-lite": "deep-lite";
|
|
166
|
+
deep: "deep";
|
|
167
|
+
"deep-reasoning": "deep-reasoning";
|
|
168
|
+
}>>;
|
|
169
|
+
category: z.ZodOptional<z.ZodEnum<{
|
|
170
|
+
company: "company";
|
|
171
|
+
people: "people";
|
|
172
|
+
"research paper": "research paper";
|
|
173
|
+
news: "news";
|
|
174
|
+
"personal site": "personal site";
|
|
175
|
+
"financial report": "financial report";
|
|
176
|
+
}>>;
|
|
177
|
+
numResults: z.ZodDefault<z.ZodNumber>;
|
|
178
|
+
includeDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
179
|
+
excludeDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
180
|
+
startPublishedDate: z.ZodOptional<z.ZodString>;
|
|
181
|
+
endPublishedDate: z.ZodOptional<z.ZodString>;
|
|
182
|
+
userLocation: z.ZodOptional<z.ZodString>;
|
|
183
|
+
additionalQueries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
184
|
+
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
185
|
+
highlights: z.ZodDefault<z.ZodBoolean>;
|
|
186
|
+
text: z.ZodOptional<z.ZodBoolean>;
|
|
187
|
+
summary: z.ZodOptional<z.ZodBoolean>;
|
|
188
|
+
}, z.core.$strip>;
|
|
189
|
+
declare const ExaSearchOutput: z.ZodObject<{
|
|
190
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
191
|
+
searchType: z.ZodOptional<z.ZodString>;
|
|
192
|
+
results: z.ZodArray<z.ZodObject<{
|
|
193
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
194
|
+
url: z.ZodString;
|
|
195
|
+
id: z.ZodOptional<z.ZodString>;
|
|
196
|
+
publishedDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
197
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
198
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
199
|
+
highlights: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
200
|
+
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
201
|
+
entities: z.ZodOptional<z.ZodUnknown>;
|
|
202
|
+
}, z.core.$strip>>;
|
|
203
|
+
costDollars: z.ZodOptional<z.ZodObject<{
|
|
204
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
205
|
+
}, z.core.$strip>>;
|
|
206
|
+
}, z.core.$strip>;
|
|
207
|
+
declare const exaSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
208
|
+
query: string;
|
|
209
|
+
type: "instant" | "fast" | "auto" | "deep-lite" | "deep" | "deep-reasoning";
|
|
210
|
+
numResults: number;
|
|
211
|
+
highlights: boolean;
|
|
212
|
+
category?: "company" | "people" | "research paper" | "news" | "personal site" | "financial report" | undefined;
|
|
213
|
+
includeDomains?: string[] | undefined;
|
|
214
|
+
excludeDomains?: string[] | undefined;
|
|
215
|
+
startPublishedDate?: string | undefined;
|
|
216
|
+
endPublishedDate?: string | undefined;
|
|
217
|
+
userLocation?: string | undefined;
|
|
218
|
+
additionalQueries?: string[] | undefined;
|
|
219
|
+
systemPrompt?: string | undefined;
|
|
220
|
+
text?: boolean | undefined;
|
|
221
|
+
summary?: boolean | undefined;
|
|
222
|
+
}, {
|
|
223
|
+
results: {
|
|
224
|
+
url: string;
|
|
225
|
+
title?: string | null | undefined;
|
|
226
|
+
id?: string | undefined;
|
|
227
|
+
publishedDate?: string | null | undefined;
|
|
228
|
+
author?: string | null | undefined;
|
|
229
|
+
text?: string | null | undefined;
|
|
230
|
+
highlights?: string[] | undefined;
|
|
231
|
+
summary?: string | null | undefined;
|
|
232
|
+
entities?: unknown;
|
|
233
|
+
}[];
|
|
234
|
+
requestId?: string | undefined;
|
|
235
|
+
searchType?: string | undefined;
|
|
236
|
+
costDollars?: {
|
|
237
|
+
total?: number | undefined;
|
|
238
|
+
} | undefined;
|
|
239
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"exa", z.ZodObject<{
|
|
240
|
+
apiKey: z.ZodString;
|
|
241
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"exa", z.ZodObject<{
|
|
242
|
+
apiKey: z.ZodString;
|
|
243
|
+
}, z.core.$strip>>]>;
|
|
244
|
+
//#endregion
|
|
245
|
+
//#region src/actions/search-structured.d.ts
|
|
246
|
+
declare const ExaSearchStructuredInput: z.ZodObject<{
|
|
247
|
+
query: z.ZodString;
|
|
248
|
+
outputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
249
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
250
|
+
instant: "instant";
|
|
251
|
+
fast: "fast";
|
|
252
|
+
auto: "auto";
|
|
253
|
+
"deep-lite": "deep-lite";
|
|
254
|
+
deep: "deep";
|
|
255
|
+
"deep-reasoning": "deep-reasoning";
|
|
256
|
+
}>>;
|
|
257
|
+
category: z.ZodOptional<z.ZodEnum<{
|
|
258
|
+
company: "company";
|
|
259
|
+
people: "people";
|
|
260
|
+
"research paper": "research paper";
|
|
261
|
+
news: "news";
|
|
262
|
+
"personal site": "personal site";
|
|
263
|
+
"financial report": "financial report";
|
|
264
|
+
}>>;
|
|
265
|
+
numResults: z.ZodDefault<z.ZodNumber>;
|
|
266
|
+
includeDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
267
|
+
excludeDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
268
|
+
startPublishedDate: z.ZodOptional<z.ZodString>;
|
|
269
|
+
endPublishedDate: z.ZodOptional<z.ZodString>;
|
|
270
|
+
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
271
|
+
additionalQueries: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
272
|
+
highlights: z.ZodDefault<z.ZodBoolean>;
|
|
273
|
+
text: z.ZodOptional<z.ZodBoolean>;
|
|
274
|
+
}, z.core.$strip>;
|
|
275
|
+
declare const ExaSearchStructuredOutput: z.ZodObject<{
|
|
276
|
+
requestId: z.ZodOptional<z.ZodString>;
|
|
277
|
+
searchType: z.ZodOptional<z.ZodString>;
|
|
278
|
+
results: z.ZodArray<z.ZodObject<{
|
|
279
|
+
title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
280
|
+
url: z.ZodString;
|
|
281
|
+
id: z.ZodOptional<z.ZodString>;
|
|
282
|
+
publishedDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
283
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
284
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
285
|
+
highlights: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
286
|
+
summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
287
|
+
entities: z.ZodOptional<z.ZodUnknown>;
|
|
288
|
+
}, z.core.$strip>>;
|
|
289
|
+
output: z.ZodOptional<z.ZodObject<{
|
|
290
|
+
content: z.ZodUnknown;
|
|
291
|
+
grounding: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
292
|
+
field: z.ZodString;
|
|
293
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
294
|
+
url: z.ZodString;
|
|
295
|
+
title: z.ZodOptional<z.ZodString>;
|
|
296
|
+
}, z.core.$strip>>;
|
|
297
|
+
confidence: z.ZodOptional<z.ZodEnum<{
|
|
298
|
+
low: "low";
|
|
299
|
+
medium: "medium";
|
|
300
|
+
high: "high";
|
|
301
|
+
}>>;
|
|
302
|
+
}, z.core.$strip>>>;
|
|
303
|
+
}, z.core.$strip>>;
|
|
304
|
+
costDollars: z.ZodOptional<z.ZodObject<{
|
|
305
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
306
|
+
}, z.core.$strip>>;
|
|
307
|
+
}, z.core.$strip>;
|
|
308
|
+
declare const exaSearchStructured: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
309
|
+
query: string;
|
|
310
|
+
outputSchema: Record<string, unknown>;
|
|
311
|
+
type: "instant" | "fast" | "auto" | "deep-lite" | "deep" | "deep-reasoning";
|
|
312
|
+
numResults: number;
|
|
313
|
+
highlights: boolean;
|
|
314
|
+
category?: "company" | "people" | "research paper" | "news" | "personal site" | "financial report" | undefined;
|
|
315
|
+
includeDomains?: string[] | undefined;
|
|
316
|
+
excludeDomains?: string[] | undefined;
|
|
317
|
+
startPublishedDate?: string | undefined;
|
|
318
|
+
endPublishedDate?: string | undefined;
|
|
319
|
+
systemPrompt?: string | undefined;
|
|
320
|
+
additionalQueries?: string[] | undefined;
|
|
321
|
+
text?: boolean | undefined;
|
|
322
|
+
}, {
|
|
323
|
+
results: {
|
|
324
|
+
url: string;
|
|
325
|
+
title?: string | null | undefined;
|
|
326
|
+
id?: string | undefined;
|
|
327
|
+
publishedDate?: string | null | undefined;
|
|
328
|
+
author?: string | null | undefined;
|
|
329
|
+
text?: string | null | undefined;
|
|
330
|
+
highlights?: string[] | undefined;
|
|
331
|
+
summary?: string | null | undefined;
|
|
332
|
+
entities?: unknown;
|
|
333
|
+
}[];
|
|
334
|
+
requestId?: string | undefined;
|
|
335
|
+
searchType?: string | undefined;
|
|
336
|
+
output?: {
|
|
337
|
+
content: unknown;
|
|
338
|
+
grounding?: {
|
|
339
|
+
field: string;
|
|
340
|
+
citations: {
|
|
341
|
+
url: string;
|
|
342
|
+
title?: string | undefined;
|
|
343
|
+
}[];
|
|
344
|
+
confidence?: "low" | "medium" | "high" | undefined;
|
|
345
|
+
}[] | undefined;
|
|
346
|
+
} | undefined;
|
|
347
|
+
costDollars?: {
|
|
348
|
+
total?: number | undefined;
|
|
349
|
+
} | undefined;
|
|
350
|
+
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"exa", z.ZodObject<{
|
|
351
|
+
apiKey: z.ZodString;
|
|
352
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"exa", z.ZodObject<{
|
|
353
|
+
apiKey: z.ZodString;
|
|
354
|
+
}, z.core.$strip>>]>;
|
|
355
|
+
//#endregion
|
|
356
|
+
export { ExaSearchOutput as a, ExaGetContextOutput as c, ExaGetContentsOutput as d, exaGetContents as f, exaAnswer as h, ExaSearchInput as i, exaGetContext as l, ExaAnswerOutput as m, ExaSearchStructuredOutput as n, exaSearch as o, ExaAnswerInput as p, exaSearchStructured as r, ExaGetContextInput as s, ExaSearchStructuredInput as t, ExaGetContentsInput as u };
|
|
357
|
+
//# sourceMappingURL=index-BwCGHs6v.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index-BwCGHs6v.d.mts","names":[],"sources":["../src/actions/answer.ts","../src/actions/get-contents.ts","../src/actions/get-context.ts","../src/actions/search.ts","../src/actions/search-structured.ts"],"mappings":";;;cAMa,cAAA,EAAc,CAAA,CAAA,SAAA;;;;;cAYd,eAAA,EAAe,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAOf,SAAA,gCAAS,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;cCnBT,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;cAOnB,oBAAA,EAAoB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAOpB,cAAA,gCAAc,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cCfd,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;cAYlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;cAUnB,aAAA,gCAAa,wBAAA;;;;;;;;;;;;;;;;;;;;cCfb,cAAA,EAAc,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA+Cd,eAAA,EAAe,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAOf,SAAA,gCAAS,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cCrDT,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAazB,mBAAA,gCAAmB,wBAAA"}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_actions = require("./actions-Bl-9uz6K.cjs");
|
|
3
|
+
const require_credential = require("./credential-BWous9Uu.cjs");
|
|
4
|
+
const require_mcp = require("./mcp.cjs");
|
|
5
|
+
exports.createExaClient = require_actions.createExaClient;
|
|
6
|
+
exports.exaAnswer = require_actions.exaAnswer;
|
|
7
|
+
exports.exaCredential = require_credential.exaCredential;
|
|
8
|
+
exports.exaGetContents = require_actions.exaGetContents;
|
|
9
|
+
exports.exaGetContext = require_actions.exaGetContext;
|
|
10
|
+
exports.exaMcp = require_mcp.exaMcp;
|
|
11
|
+
exports.exaSearch = require_actions.exaSearch;
|
|
12
|
+
exports.exaSearchMcp = require_mcp.exaSearchMcp;
|
|
13
|
+
exports.exaSearchStructured = require_actions.exaSearchStructured;
|
|
14
|
+
exports.exaWebsetsMcp = require_mcp.exaWebsetsMcp;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { f as exaGetContents, h as exaAnswer, l as exaGetContext, o as exaSearch, r as exaSearchStructured } from "./index-BwCGHs6v.cjs";
|
|
2
|
+
import { exaMcp, exaSearchMcp, exaWebsetsMcp } from "./mcp.cjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/credential.d.ts
|
|
6
|
+
declare const exaCredential: import("@keystrokehq/shared").Credential<"exa", z.ZodObject<{
|
|
7
|
+
apiKey: z.ZodString;
|
|
8
|
+
}, z.core.$strip>>;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/client.d.ts
|
|
11
|
+
type ExaClient = {
|
|
12
|
+
search: (body: Record<string, unknown>) => Promise<unknown>;
|
|
13
|
+
contents: (body: Record<string, unknown>) => Promise<unknown>;
|
|
14
|
+
answer: (body: Record<string, unknown>) => Promise<unknown>;
|
|
15
|
+
context: (body: Record<string, unknown>) => Promise<unknown>;
|
|
16
|
+
};
|
|
17
|
+
declare function createExaClient(apiKey: string): ExaClient;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { type ExaClient, createExaClient, exaAnswer, exaCredential, exaGetContents, exaGetContext, exaMcp, exaSearch, exaSearchMcp, exaSearchStructured, exaWebsetsMcp };
|
|
20
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/credential.ts","../src/client.ts"],"mappings":";;;;;cAGa,aAAA,gCAAa,UAAA,QAAA,CAAA,CAAA,SAAA;;;;;KCCd,SAAA;EACV,MAAA,GAAS,IAAA,EAAM,MAAA,sBAA4B,OAAA;EAC3C,QAAA,GAAW,IAAA,EAAM,MAAA,sBAA4B,OAAA;EAC7C,MAAA,GAAS,IAAA,EAAM,MAAA,sBAA4B,OAAA;EAC3C,OAAA,GAAU,IAAA,EAAM,MAAA,sBAA4B,OAAA;AAAA;AAAA,iBAG9B,eAAA,CAAgB,MAAA,WAAiB,SAAS"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { f as exaGetContents, h as exaAnswer, l as exaGetContext, o as exaSearch, r as exaSearchStructured } from "./index-BwCGHs6v.mjs";
|
|
2
|
+
import { exaMcp, exaSearchMcp, exaWebsetsMcp } from "./mcp.mjs";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
|
|
5
|
+
//#region src/credential.d.ts
|
|
6
|
+
declare const exaCredential: import("@keystrokehq/shared").Credential<"exa", z.ZodObject<{
|
|
7
|
+
apiKey: z.ZodString;
|
|
8
|
+
}, z.core.$strip>>;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/client.d.ts
|
|
11
|
+
type ExaClient = {
|
|
12
|
+
search: (body: Record<string, unknown>) => Promise<unknown>;
|
|
13
|
+
contents: (body: Record<string, unknown>) => Promise<unknown>;
|
|
14
|
+
answer: (body: Record<string, unknown>) => Promise<unknown>;
|
|
15
|
+
context: (body: Record<string, unknown>) => Promise<unknown>;
|
|
16
|
+
};
|
|
17
|
+
declare function createExaClient(apiKey: string): ExaClient;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { type ExaClient, createExaClient, exaAnswer, exaCredential, exaGetContents, exaGetContext, exaMcp, exaSearch, exaSearchMcp, exaSearchStructured, exaWebsetsMcp };
|
|
20
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/credential.ts","../src/client.ts"],"mappings":";;;;;cAGa,aAAA,gCAAa,UAAA,QAAA,CAAA,CAAA,SAAA;;;;;KCCd,SAAA;EACV,MAAA,GAAS,IAAA,EAAM,MAAA,sBAA4B,OAAA;EAC3C,QAAA,GAAW,IAAA,EAAM,MAAA,sBAA4B,OAAA;EAC7C,MAAA,GAAS,IAAA,EAAM,MAAA,sBAA4B,OAAA;EAC3C,OAAA,GAAU,IAAA,EAAM,MAAA,sBAA4B,OAAA;AAAA;AAAA,iBAG9B,eAAA,CAAgB,MAAA,WAAiB,SAAS"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export { answerOperation, answerOperation as answerTool, contentsOptionsSchema, createMonitorOperation, createMonitorOperation as createMonitorTool, deleteMonitorOperation, deleteMonitorOperation as deleteMonitorTool, exaAnswerCitationSchema, exaAnswerResponseSchema, exaContentsResponseSchema, exaCostSchema, exaCredentialSet, exaMonitorListResponseSchema, exaMonitorRunListResponseSchema, exaMonitorRunSchema, exaMonitorSchema, exaSearchResponseSchema, exaSearchResultSchema, exaTriggerMonitorResponseSchema, findSimilarOperation, findSimilarOperation as findSimilarTool, findSimilarWithContentsOperation, findSimilarWithContentsOperation as findSimilarWithContentsTool, getContentsOperation, getContentsOperation as getContentsTool, getMonitorOperation, getMonitorOperation as getMonitorTool, getMonitorRunOperation, getMonitorRunOperation as getMonitorRunTool, listMonitorRunsOperation, listMonitorRunsOperation as listMonitorRunsTool, listMonitorsOperation, listMonitorsOperation as listMonitorsTool, searchOperation, searchOperation as searchTool, searchWithContentsOperation, searchWithContentsOperation as searchWithContentsTool, triggerMonitorOperation, triggerMonitorOperation as triggerMonitorTool, updateMonitorOperation, updateMonitorOperation as updateMonitorTool };
|
|
1
|
+
import { t as exaCredential } from "./credential-NfXyV_Vy.mjs";
|
|
2
|
+
import { f as exaGetContents, g as createExaClient, h as exaAnswer, l as exaGetContext, o as exaSearch, r as exaSearchStructured } from "./actions-DnHafheX.mjs";
|
|
3
|
+
import { exaMcp, exaSearchMcp, exaWebsetsMcp } from "./mcp.mjs";
|
|
4
|
+
export { createExaClient, exaAnswer, exaCredential, exaGetContents, exaGetContext, exaMcp, exaSearch, exaSearchMcp, exaSearchStructured, exaWebsetsMcp };
|
package/dist/mcp.cjs
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_credential = require("./credential-BWous9Uu.cjs");
|
|
3
|
+
let _keystrokehq_credentials = require("@keystrokehq/credentials");
|
|
4
|
+
//#region src/mcp.ts
|
|
5
|
+
const EXA_SEARCH_MCP_URL = "https://mcp.exa.ai/mcp";
|
|
6
|
+
const EXA_WEBSETS_MCP_URL = "https://websetsmcp.exa.ai/mcp";
|
|
7
|
+
const objectSchema = {
|
|
8
|
+
type: "object",
|
|
9
|
+
properties: {}
|
|
10
|
+
};
|
|
11
|
+
/** [Exa Web Search MCP](https://exa.ai/docs/reference/exa-mcp) — `web_search_exa`, `web_fetch_exa`, etc. */
|
|
12
|
+
const exaSearchMcp = (0, _keystrokehq_credentials.defineMcp)({
|
|
13
|
+
key: "exa",
|
|
14
|
+
name: "Exa Search",
|
|
15
|
+
transport: {
|
|
16
|
+
type: "http",
|
|
17
|
+
url: EXA_SEARCH_MCP_URL
|
|
18
|
+
},
|
|
19
|
+
credentials: [require_credential.exaCredential],
|
|
20
|
+
auth: (credentials) => ({ headers: { "x-api-key": credentials.exa.apiKey } }),
|
|
21
|
+
declaredTools: [{
|
|
22
|
+
name: "web_search_exa",
|
|
23
|
+
title: "Web Search",
|
|
24
|
+
description: "Search the web using Exa.",
|
|
25
|
+
inputSchema: objectSchema
|
|
26
|
+
}, {
|
|
27
|
+
name: "web_fetch_exa",
|
|
28
|
+
title: "Web Fetch",
|
|
29
|
+
description: "Fetch a page using Exa.",
|
|
30
|
+
inputSchema: objectSchema
|
|
31
|
+
}]
|
|
32
|
+
});
|
|
33
|
+
/** [Exa Websets MCP](https://exa.ai/docs/reference/websets-mcp) — collections, enrichments, imports. */
|
|
34
|
+
const exaWebsetsMcp = (0, _keystrokehq_credentials.defineMcp)({
|
|
35
|
+
key: "exa-websets",
|
|
36
|
+
name: "Exa Websets",
|
|
37
|
+
transport: {
|
|
38
|
+
type: "http",
|
|
39
|
+
url: EXA_WEBSETS_MCP_URL
|
|
40
|
+
},
|
|
41
|
+
credentials: [require_credential.exaCredential],
|
|
42
|
+
auth: (credentials) => ({ searchParams: { exaApiKey: credentials.exa.apiKey } }),
|
|
43
|
+
declaredTools: [{
|
|
44
|
+
name: "list_websets",
|
|
45
|
+
title: "List Websets",
|
|
46
|
+
description: "List Exa websets.",
|
|
47
|
+
inputSchema: objectSchema
|
|
48
|
+
}]
|
|
49
|
+
});
|
|
50
|
+
/** @deprecated Use {@link exaSearchMcp}. */
|
|
51
|
+
const exaMcp = exaSearchMcp;
|
|
52
|
+
//#endregion
|
|
53
|
+
exports.exaMcp = exaMcp;
|
|
54
|
+
exports.exaSearchMcp = exaSearchMcp;
|
|
55
|
+
exports.exaWebsetsMcp = exaWebsetsMcp;
|
|
56
|
+
|
|
57
|
+
//# sourceMappingURL=mcp.cjs.map
|
package/dist/mcp.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.cjs","names":["exaCredential"],"sources":["../src/mcp.ts"],"sourcesContent":["import { defineMcp } from \"@keystrokehq/credentials\";\nimport { exaCredential } from \"./credential\";\n\nconst EXA_SEARCH_MCP_URL = \"https://mcp.exa.ai/mcp\";\nconst EXA_WEBSETS_MCP_URL = \"https://websetsmcp.exa.ai/mcp\";\n\nconst objectSchema = { type: \"object\", properties: {} } as const;\n\n/** [Exa Web Search MCP](https://exa.ai/docs/reference/exa-mcp) — `web_search_exa`, `web_fetch_exa`, etc. */\nexport const exaSearchMcp = defineMcp({\n key: \"exa\",\n name: \"Exa Search\",\n transport: { type: \"http\", url: EXA_SEARCH_MCP_URL },\n credentials: [exaCredential],\n auth: (credentials) => ({\n headers: { \"x-api-key\": credentials.exa.apiKey },\n }),\n declaredTools: [\n {\n name: \"web_search_exa\",\n title: \"Web Search\",\n description: \"Search the web using Exa.\",\n inputSchema: objectSchema,\n },\n {\n name: \"web_fetch_exa\",\n title: \"Web Fetch\",\n description: \"Fetch a page using Exa.\",\n inputSchema: objectSchema,\n },\n ],\n});\n\n/** [Exa Websets MCP](https://exa.ai/docs/reference/websets-mcp) — collections, enrichments, imports. */\nexport const exaWebsetsMcp = defineMcp({\n key: \"exa-websets\",\n name: \"Exa Websets\",\n transport: { type: \"http\", url: EXA_WEBSETS_MCP_URL },\n credentials: [exaCredential],\n auth: (credentials) => ({\n searchParams: { exaApiKey: credentials.exa.apiKey },\n }),\n declaredTools: [\n {\n name: \"list_websets\",\n title: \"List Websets\",\n description: \"List Exa websets.\",\n inputSchema: objectSchema,\n },\n ],\n});\n\n/** @deprecated Use {@link exaSearchMcp}. */\nexport const exaMcp = exaSearchMcp;\n"],"mappings":";;;;AAGA,MAAM,qBAAqB;AAC3B,MAAM,sBAAsB;AAE5B,MAAM,eAAe;CAAE,MAAM;CAAU,YAAY,CAAC;AAAE;;AAGtD,MAAa,gBAAA,GAAA,yBAAA,WAAyB;CACpC,KAAK;CACL,MAAM;CACN,WAAW;EAAE,MAAM;EAAQ,KAAK;CAAmB;CACnD,aAAa,CAACA,mBAAAA,aAAa;CAC3B,OAAO,iBAAiB,EACtB,SAAS,EAAE,aAAa,YAAY,IAAI,OAAO,EACjD;CACA,eAAe,CACb;EACE,MAAM;EACN,OAAO;EACP,aAAa;EACb,aAAa;CACf,GACA;EACE,MAAM;EACN,OAAO;EACP,aAAa;EACb,aAAa;CACf,CACF;AACF,CAAC;;AAGD,MAAa,iBAAA,GAAA,yBAAA,WAA0B;CACrC,KAAK;CACL,MAAM;CACN,WAAW;EAAE,MAAM;EAAQ,KAAK;CAAoB;CACpD,aAAa,CAACA,mBAAAA,aAAa;CAC3B,OAAO,iBAAiB,EACtB,cAAc,EAAE,WAAW,YAAY,IAAI,OAAO,EACpD;CACA,eAAe,CACb;EACE,MAAM;EACN,OAAO;EACP,aAAa;EACb,aAAa;CACf,CACF;AACF,CAAC;;AAGD,MAAa,SAAS"}
|
package/dist/mcp.d.cts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/mcp.d.ts
|
|
2
|
+
/** [Exa Web Search MCP](https://exa.ai/docs/reference/exa-mcp) — `web_search_exa`, `web_fetch_exa`, etc. */
|
|
3
|
+
declare const exaSearchMcp: import("@keystrokehq/mcp").McpDefinition<import("@keystrokehq/shared").ResolvedCredentials<import("@keystrokehq/shared").Credential<"exa", import("zod").ZodObject<{
|
|
4
|
+
apiKey: import("zod").ZodString;
|
|
5
|
+
}, import("zod/v4/core").$strip>>[]>>;
|
|
6
|
+
/** [Exa Websets MCP](https://exa.ai/docs/reference/websets-mcp) — collections, enrichments, imports. */
|
|
7
|
+
declare const exaWebsetsMcp: import("@keystrokehq/mcp").McpDefinition<import("@keystrokehq/shared").ResolvedCredentials<import("@keystrokehq/shared").Credential<"exa", import("zod").ZodObject<{
|
|
8
|
+
apiKey: import("zod").ZodString;
|
|
9
|
+
}, import("zod/v4/core").$strip>>[]>>;
|
|
10
|
+
/** @deprecated Use {@link exaSearchMcp}. */
|
|
11
|
+
declare const exaMcp: import("@keystrokehq/mcp").McpDefinition<import("@keystrokehq/shared").ResolvedCredentials<import("@keystrokehq/shared").Credential<"exa", import("zod").ZodObject<{
|
|
12
|
+
apiKey: import("zod").ZodString;
|
|
13
|
+
}, import("zod/v4/core").$strip>>[]>>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { exaMcp, exaSearchMcp, exaWebsetsMcp };
|
|
16
|
+
//# sourceMappingURL=mcp.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.d.cts","names":[],"sources":["../src/mcp.ts"],"mappings":";;cASa,YAAA,6BAAY,aAAA,+BAAA,mBAAA,+BAAA,UAAA,sBAAA,SAAA;;;;cAyBZ,aAAA,6BAAa,aAAA,+BAAA,mBAAA,+BAAA,UAAA,sBAAA,SAAA;;;;cAmBb,MAAA,6BAAM,aAAA,+BAAA,mBAAA,+BAAA,UAAA,sBAAA,SAAA"}
|
package/dist/mcp.d.mts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/mcp.d.ts
|
|
2
|
+
/** [Exa Web Search MCP](https://exa.ai/docs/reference/exa-mcp) — `web_search_exa`, `web_fetch_exa`, etc. */
|
|
3
|
+
declare const exaSearchMcp: import("@keystrokehq/mcp").McpDefinition<import("@keystrokehq/shared").ResolvedCredentials<import("@keystrokehq/shared").Credential<"exa", import("zod").ZodObject<{
|
|
4
|
+
apiKey: import("zod").ZodString;
|
|
5
|
+
}, import("zod/v4/core").$strip>>[]>>;
|
|
6
|
+
/** [Exa Websets MCP](https://exa.ai/docs/reference/websets-mcp) — collections, enrichments, imports. */
|
|
7
|
+
declare const exaWebsetsMcp: import("@keystrokehq/mcp").McpDefinition<import("@keystrokehq/shared").ResolvedCredentials<import("@keystrokehq/shared").Credential<"exa", import("zod").ZodObject<{
|
|
8
|
+
apiKey: import("zod").ZodString;
|
|
9
|
+
}, import("zod/v4/core").$strip>>[]>>;
|
|
10
|
+
/** @deprecated Use {@link exaSearchMcp}. */
|
|
11
|
+
declare const exaMcp: import("@keystrokehq/mcp").McpDefinition<import("@keystrokehq/shared").ResolvedCredentials<import("@keystrokehq/shared").Credential<"exa", import("zod").ZodObject<{
|
|
12
|
+
apiKey: import("zod").ZodString;
|
|
13
|
+
}, import("zod/v4/core").$strip>>[]>>;
|
|
14
|
+
//#endregion
|
|
15
|
+
export { exaMcp, exaSearchMcp, exaWebsetsMcp };
|
|
16
|
+
//# sourceMappingURL=mcp.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.d.mts","names":[],"sources":["../src/mcp.ts"],"mappings":";;cASa,YAAA,6BAAY,aAAA,+BAAA,mBAAA,+BAAA,UAAA,sBAAA,SAAA;;;;cAyBZ,aAAA,6BAAa,aAAA,+BAAA,mBAAA,+BAAA,UAAA,sBAAA,SAAA;;;;cAmBb,MAAA,6BAAM,aAAA,+BAAA,mBAAA,+BAAA,UAAA,sBAAA,SAAA"}
|
package/dist/mcp.mjs
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { t as exaCredential } from "./credential-NfXyV_Vy.mjs";
|
|
2
|
+
import { defineMcp } from "@keystrokehq/credentials";
|
|
3
|
+
//#region src/mcp.ts
|
|
4
|
+
const EXA_SEARCH_MCP_URL = "https://mcp.exa.ai/mcp";
|
|
5
|
+
const EXA_WEBSETS_MCP_URL = "https://websetsmcp.exa.ai/mcp";
|
|
6
|
+
const objectSchema = {
|
|
7
|
+
type: "object",
|
|
8
|
+
properties: {}
|
|
9
|
+
};
|
|
10
|
+
/** [Exa Web Search MCP](https://exa.ai/docs/reference/exa-mcp) — `web_search_exa`, `web_fetch_exa`, etc. */
|
|
11
|
+
const exaSearchMcp = defineMcp({
|
|
12
|
+
key: "exa",
|
|
13
|
+
name: "Exa Search",
|
|
14
|
+
transport: {
|
|
15
|
+
type: "http",
|
|
16
|
+
url: EXA_SEARCH_MCP_URL
|
|
17
|
+
},
|
|
18
|
+
credentials: [exaCredential],
|
|
19
|
+
auth: (credentials) => ({ headers: { "x-api-key": credentials.exa.apiKey } }),
|
|
20
|
+
declaredTools: [{
|
|
21
|
+
name: "web_search_exa",
|
|
22
|
+
title: "Web Search",
|
|
23
|
+
description: "Search the web using Exa.",
|
|
24
|
+
inputSchema: objectSchema
|
|
25
|
+
}, {
|
|
26
|
+
name: "web_fetch_exa",
|
|
27
|
+
title: "Web Fetch",
|
|
28
|
+
description: "Fetch a page using Exa.",
|
|
29
|
+
inputSchema: objectSchema
|
|
30
|
+
}]
|
|
31
|
+
});
|
|
32
|
+
/** [Exa Websets MCP](https://exa.ai/docs/reference/websets-mcp) — collections, enrichments, imports. */
|
|
33
|
+
const exaWebsetsMcp = defineMcp({
|
|
34
|
+
key: "exa-websets",
|
|
35
|
+
name: "Exa Websets",
|
|
36
|
+
transport: {
|
|
37
|
+
type: "http",
|
|
38
|
+
url: EXA_WEBSETS_MCP_URL
|
|
39
|
+
},
|
|
40
|
+
credentials: [exaCredential],
|
|
41
|
+
auth: (credentials) => ({ searchParams: { exaApiKey: credentials.exa.apiKey } }),
|
|
42
|
+
declaredTools: [{
|
|
43
|
+
name: "list_websets",
|
|
44
|
+
title: "List Websets",
|
|
45
|
+
description: "List Exa websets.",
|
|
46
|
+
inputSchema: objectSchema
|
|
47
|
+
}]
|
|
48
|
+
});
|
|
49
|
+
/** @deprecated Use {@link exaSearchMcp}. */
|
|
50
|
+
const exaMcp = exaSearchMcp;
|
|
51
|
+
//#endregion
|
|
52
|
+
export { exaMcp, exaSearchMcp, exaWebsetsMcp };
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=mcp.mjs.map
|
package/dist/mcp.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.mjs","names":[],"sources":["../src/mcp.ts"],"sourcesContent":["import { defineMcp } from \"@keystrokehq/credentials\";\nimport { exaCredential } from \"./credential\";\n\nconst EXA_SEARCH_MCP_URL = \"https://mcp.exa.ai/mcp\";\nconst EXA_WEBSETS_MCP_URL = \"https://websetsmcp.exa.ai/mcp\";\n\nconst objectSchema = { type: \"object\", properties: {} } as const;\n\n/** [Exa Web Search MCP](https://exa.ai/docs/reference/exa-mcp) — `web_search_exa`, `web_fetch_exa`, etc. */\nexport const exaSearchMcp = defineMcp({\n key: \"exa\",\n name: \"Exa Search\",\n transport: { type: \"http\", url: EXA_SEARCH_MCP_URL },\n credentials: [exaCredential],\n auth: (credentials) => ({\n headers: { \"x-api-key\": credentials.exa.apiKey },\n }),\n declaredTools: [\n {\n name: \"web_search_exa\",\n title: \"Web Search\",\n description: \"Search the web using Exa.\",\n inputSchema: objectSchema,\n },\n {\n name: \"web_fetch_exa\",\n title: \"Web Fetch\",\n description: \"Fetch a page using Exa.\",\n inputSchema: objectSchema,\n },\n ],\n});\n\n/** [Exa Websets MCP](https://exa.ai/docs/reference/websets-mcp) — collections, enrichments, imports. */\nexport const exaWebsetsMcp = defineMcp({\n key: \"exa-websets\",\n name: \"Exa Websets\",\n transport: { type: \"http\", url: EXA_WEBSETS_MCP_URL },\n credentials: [exaCredential],\n auth: (credentials) => ({\n searchParams: { exaApiKey: credentials.exa.apiKey },\n }),\n declaredTools: [\n {\n name: \"list_websets\",\n title: \"List Websets\",\n description: \"List Exa websets.\",\n inputSchema: objectSchema,\n },\n ],\n});\n\n/** @deprecated Use {@link exaSearchMcp}. */\nexport const exaMcp = exaSearchMcp;\n"],"mappings":";;;AAGA,MAAM,qBAAqB;AAC3B,MAAM,sBAAsB;AAE5B,MAAM,eAAe;CAAE,MAAM;CAAU,YAAY,CAAC;AAAE;;AAGtD,MAAa,eAAe,UAAU;CACpC,KAAK;CACL,MAAM;CACN,WAAW;EAAE,MAAM;EAAQ,KAAK;CAAmB;CACnD,aAAa,CAAC,aAAa;CAC3B,OAAO,iBAAiB,EACtB,SAAS,EAAE,aAAa,YAAY,IAAI,OAAO,EACjD;CACA,eAAe,CACb;EACE,MAAM;EACN,OAAO;EACP,aAAa;EACb,aAAa;CACf,GACA;EACE,MAAM;EACN,OAAO;EACP,aAAa;EACb,aAAa;CACf,CACF;AACF,CAAC;;AAGD,MAAa,gBAAgB,UAAU;CACrC,KAAK;CACL,MAAM;CACN,WAAW;EAAE,MAAM;EAAQ,KAAK;CAAoB;CACpD,aAAa,CAAC,aAAa;CAC3B,OAAO,iBAAiB,EACtB,cAAc,EAAE,WAAW,YAAY,IAAI,OAAO,EACpD;CACA,eAAe,CACb;EACE,MAAM;EACN,OAAO;EACP,aAAa;EACb,aAAa;CACf,CACF;AACF,CAAC;;AAGD,MAAa,SAAS"}
|