@smithery/api 0.60.0 → 0.61.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/CHANGELOG.md +21 -0
- package/client.d.mts +0 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +0 -6
- package/client.d.ts.map +1 -1
- package/client.js +0 -6
- package/client.js.map +1 -1
- package/client.mjs +0 -6
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/connections/connections.d.mts +116 -22
- package/resources/connections/connections.d.mts.map +1 -1
- package/resources/connections/connections.d.ts +116 -22
- package/resources/connections/connections.d.ts.map +1 -1
- package/resources/connections/connections.js +1 -2
- package/resources/connections/connections.js.map +1 -1
- package/resources/connections/connections.mjs +1 -2
- package/resources/connections/connections.mjs.map +1 -1
- package/resources/index.d.mts +0 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +0 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +0 -1
- package/resources/index.mjs.map +1 -1
- package/src/client.ts +0 -8
- package/src/resources/connections/connections.ts +135 -23
- package/src/resources/index.ts +0 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/uplink.d.mts +0 -20
- package/resources/uplink.d.mts.map +0 -1
- package/resources/uplink.d.ts +0 -20
- package/resources/uplink.d.ts.map +0 -1
- package/resources/uplink.js +0 -18
- package/resources/uplink.js.map +0 -1
- package/resources/uplink.mjs +0 -14
- package/resources/uplink.mjs.map +0 -1
- package/src/resources/uplink.ts +0 -27
package/src/client.ts
CHANGED
|
@@ -56,7 +56,6 @@ import {
|
|
|
56
56
|
TokenCreateParams,
|
|
57
57
|
Tokens,
|
|
58
58
|
} from './resources/tokens';
|
|
59
|
-
import { Uplink, UplinkCreateTokenResponse } from './resources/uplink';
|
|
60
59
|
import {
|
|
61
60
|
Connection,
|
|
62
61
|
ConnectionCreateParams,
|
|
@@ -820,10 +819,6 @@ export class Smithery {
|
|
|
820
819
|
* Browse the MCP server registry, manage server configuration, and handle deployments
|
|
821
820
|
*/
|
|
822
821
|
servers: API.Servers = new API.Servers(this);
|
|
823
|
-
/**
|
|
824
|
-
* Manage uplink tokens for connecting locally-running MCP servers to Smithery
|
|
825
|
-
*/
|
|
826
|
-
uplink: API.Uplink = new API.Uplink(this);
|
|
827
822
|
/**
|
|
828
823
|
* Discover and search reusable prompt-based skills for MCP servers
|
|
829
824
|
*/
|
|
@@ -836,7 +831,6 @@ export class Smithery {
|
|
|
836
831
|
|
|
837
832
|
Smithery.Health = Health;
|
|
838
833
|
Smithery.Servers = Servers;
|
|
839
|
-
Smithery.Uplink = Uplink;
|
|
840
834
|
Smithery.Skills = Skills;
|
|
841
835
|
Smithery.Namespaces = Namespaces;
|
|
842
836
|
Smithery.Organizations = Organizations;
|
|
@@ -879,8 +873,6 @@ export declare namespace Smithery {
|
|
|
879
873
|
type ServerListParams as ServerListParams,
|
|
880
874
|
};
|
|
881
875
|
|
|
882
|
-
export { Uplink as Uplink, type UplinkCreateTokenResponse as UplinkCreateTokenResponse };
|
|
883
|
-
|
|
884
876
|
export {
|
|
885
877
|
Skills as Skills,
|
|
886
878
|
type SkillCreateResponse as SkillCreateResponse,
|
|
@@ -18,11 +18,14 @@ export class Connections extends APIResource {
|
|
|
18
18
|
* ```ts
|
|
19
19
|
* const connection = await client.connections.create(
|
|
20
20
|
* 'namespace',
|
|
21
|
-
* { mcpUrl: 'https://mcp.example.com/sse' },
|
|
22
21
|
* );
|
|
23
22
|
* ```
|
|
24
23
|
*/
|
|
25
|
-
create(
|
|
24
|
+
create(
|
|
25
|
+
namespace: string,
|
|
26
|
+
body: ConnectionCreateParams | null | undefined = {},
|
|
27
|
+
options?: RequestOptions,
|
|
28
|
+
): APIPromise<Connection> {
|
|
26
29
|
return this._client.post(path`/connect/${namespace}`, { body, ...options });
|
|
27
30
|
}
|
|
28
31
|
|
|
@@ -109,9 +112,9 @@ export interface Connection {
|
|
|
109
112
|
connectionId: string;
|
|
110
113
|
|
|
111
114
|
/**
|
|
112
|
-
* MCP server URL
|
|
115
|
+
* MCP server URL. Null for uplink connections.
|
|
113
116
|
*/
|
|
114
|
-
mcpUrl: string;
|
|
117
|
+
mcpUrl: string | null;
|
|
115
118
|
|
|
116
119
|
metadata: { [key: string]: unknown } | null;
|
|
117
120
|
|
|
@@ -128,9 +131,10 @@ export interface Connection {
|
|
|
128
131
|
iconUrl?: string | null;
|
|
129
132
|
|
|
130
133
|
/**
|
|
131
|
-
*
|
|
134
|
+
* Mock-mode config: `{enabled: true, scenario?}` when LLM-simulated, absent
|
|
135
|
+
* otherwise.
|
|
132
136
|
*/
|
|
133
|
-
mock?:
|
|
137
|
+
mock?: Connection.Mock;
|
|
134
138
|
|
|
135
139
|
/**
|
|
136
140
|
* Server information from MCP initialization (name, version)
|
|
@@ -142,12 +146,35 @@ export interface Connection {
|
|
|
142
146
|
*/
|
|
143
147
|
status?:
|
|
144
148
|
| Connection.ConnectionStatusConnected
|
|
149
|
+
| Connection.ConnectionStatusDisconnected
|
|
145
150
|
| Connection.ConnectionStatusAuthRequired
|
|
146
151
|
| Connection.ConnectionStatusInputRequired
|
|
147
152
|
| Connection.ConnectionStatusError;
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Connection transport
|
|
156
|
+
*/
|
|
157
|
+
transport?: 'http' | 'uplink';
|
|
148
158
|
}
|
|
149
159
|
|
|
150
160
|
export namespace Connection {
|
|
161
|
+
/**
|
|
162
|
+
* Mock-mode config: `{enabled: true, scenario?}` when LLM-simulated, absent
|
|
163
|
+
* otherwise.
|
|
164
|
+
*/
|
|
165
|
+
export interface Mock {
|
|
166
|
+
/**
|
|
167
|
+
* Turn mock mode on for this connection.
|
|
168
|
+
*/
|
|
169
|
+
enabled: boolean;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Natural-language starting-state for the simulator (threaded into the LLM system
|
|
173
|
+
* prompt so generated data is consistent with the scenario across calls).
|
|
174
|
+
*/
|
|
175
|
+
scenario?: string;
|
|
176
|
+
}
|
|
177
|
+
|
|
151
178
|
/**
|
|
152
179
|
* Server information from MCP initialization (name, version)
|
|
153
180
|
*/
|
|
@@ -181,6 +208,10 @@ export namespace Connection {
|
|
|
181
208
|
state: 'connected';
|
|
182
209
|
}
|
|
183
210
|
|
|
211
|
+
export interface ConnectionStatusDisconnected {
|
|
212
|
+
state: 'disconnected';
|
|
213
|
+
}
|
|
214
|
+
|
|
184
215
|
export interface ConnectionStatusAuthRequired {
|
|
185
216
|
state: 'auth_required';
|
|
186
217
|
|
|
@@ -260,17 +291,18 @@ export interface ConnectionsListResponse {
|
|
|
260
291
|
}
|
|
261
292
|
|
|
262
293
|
export interface CreateConnectionRequest {
|
|
263
|
-
/**
|
|
264
|
-
* URL of the MCP server
|
|
265
|
-
*/
|
|
266
|
-
mcpUrl: string;
|
|
267
|
-
|
|
268
294
|
/**
|
|
269
295
|
* Custom headers to send with MCP requests (stored securely, not returned in
|
|
270
296
|
* responses)
|
|
271
297
|
*/
|
|
272
298
|
headers?: { [key: string]: string };
|
|
273
299
|
|
|
300
|
+
/**
|
|
301
|
+
* URL of the MCP server. Required for HTTP connections. Omit for uplink
|
|
302
|
+
* connections.
|
|
303
|
+
*/
|
|
304
|
+
mcpUrl?: string;
|
|
305
|
+
|
|
274
306
|
/**
|
|
275
307
|
* Custom metadata for filtering connections
|
|
276
308
|
*/
|
|
@@ -278,15 +310,42 @@ export interface CreateConnectionRequest {
|
|
|
278
310
|
|
|
279
311
|
/**
|
|
280
312
|
* Run this connection in mock mode. Tool calls are LLM-simulated against the
|
|
281
|
-
* registry's scanned schemas and never reach the upstream server.
|
|
282
|
-
*
|
|
313
|
+
* registry's scanned schemas and never reach the upstream server. Provide an
|
|
314
|
+
* optional `scenario` to seed the simulator with a starting-state description.
|
|
315
|
+
* Registry servers only; frozen at creation (cannot be toggled via PUT).
|
|
283
316
|
*/
|
|
284
|
-
mock?:
|
|
317
|
+
mock?: CreateConnectionRequest.Mock;
|
|
285
318
|
|
|
286
319
|
/**
|
|
287
320
|
* Human-readable name (optional, defaults to connection ID)
|
|
288
321
|
*/
|
|
289
322
|
name?: string;
|
|
323
|
+
|
|
324
|
+
/**
|
|
325
|
+
* Connection transport. Use `uplink` for a local server paired over Smithery CLI.
|
|
326
|
+
*/
|
|
327
|
+
transport?: 'http' | 'uplink';
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export namespace CreateConnectionRequest {
|
|
331
|
+
/**
|
|
332
|
+
* Run this connection in mock mode. Tool calls are LLM-simulated against the
|
|
333
|
+
* registry's scanned schemas and never reach the upstream server. Provide an
|
|
334
|
+
* optional `scenario` to seed the simulator with a starting-state description.
|
|
335
|
+
* Registry servers only; frozen at creation (cannot be toggled via PUT).
|
|
336
|
+
*/
|
|
337
|
+
export interface Mock {
|
|
338
|
+
/**
|
|
339
|
+
* Turn mock mode on for this connection.
|
|
340
|
+
*/
|
|
341
|
+
enabled: boolean;
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Natural-language starting-state for the simulator (threaded into the LLM system
|
|
345
|
+
* prompt so generated data is consistent with the scenario across calls).
|
|
346
|
+
*/
|
|
347
|
+
scenario?: string;
|
|
348
|
+
}
|
|
290
349
|
}
|
|
291
350
|
|
|
292
351
|
export interface ConnectionDeleteResponse {
|
|
@@ -294,17 +353,18 @@ export interface ConnectionDeleteResponse {
|
|
|
294
353
|
}
|
|
295
354
|
|
|
296
355
|
export interface ConnectionCreateParams {
|
|
297
|
-
/**
|
|
298
|
-
* URL of the MCP server
|
|
299
|
-
*/
|
|
300
|
-
mcpUrl: string;
|
|
301
|
-
|
|
302
356
|
/**
|
|
303
357
|
* Custom headers to send with MCP requests (stored securely, not returned in
|
|
304
358
|
* responses)
|
|
305
359
|
*/
|
|
306
360
|
headers?: { [key: string]: string };
|
|
307
361
|
|
|
362
|
+
/**
|
|
363
|
+
* URL of the MCP server. Required for HTTP connections. Omit for uplink
|
|
364
|
+
* connections.
|
|
365
|
+
*/
|
|
366
|
+
mcpUrl?: string;
|
|
367
|
+
|
|
308
368
|
/**
|
|
309
369
|
* Custom metadata for filtering connections
|
|
310
370
|
*/
|
|
@@ -312,15 +372,42 @@ export interface ConnectionCreateParams {
|
|
|
312
372
|
|
|
313
373
|
/**
|
|
314
374
|
* Run this connection in mock mode. Tool calls are LLM-simulated against the
|
|
315
|
-
* registry's scanned schemas and never reach the upstream server.
|
|
316
|
-
*
|
|
375
|
+
* registry's scanned schemas and never reach the upstream server. Provide an
|
|
376
|
+
* optional `scenario` to seed the simulator with a starting-state description.
|
|
377
|
+
* Registry servers only; frozen at creation (cannot be toggled via PUT).
|
|
317
378
|
*/
|
|
318
|
-
mock?:
|
|
379
|
+
mock?: ConnectionCreateParams.Mock;
|
|
319
380
|
|
|
320
381
|
/**
|
|
321
382
|
* Human-readable name (optional, defaults to connection ID)
|
|
322
383
|
*/
|
|
323
384
|
name?: string;
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Connection transport. Use `uplink` for a local server paired over Smithery CLI.
|
|
388
|
+
*/
|
|
389
|
+
transport?: 'http' | 'uplink';
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
export namespace ConnectionCreateParams {
|
|
393
|
+
/**
|
|
394
|
+
* Run this connection in mock mode. Tool calls are LLM-simulated against the
|
|
395
|
+
* registry's scanned schemas and never reach the upstream server. Provide an
|
|
396
|
+
* optional `scenario` to seed the simulator with a starting-state description.
|
|
397
|
+
* Registry servers only; frozen at creation (cannot be toggled via PUT).
|
|
398
|
+
*/
|
|
399
|
+
export interface Mock {
|
|
400
|
+
/**
|
|
401
|
+
* Turn mock mode on for this connection.
|
|
402
|
+
*/
|
|
403
|
+
enabled: boolean;
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Natural-language starting-state for the simulator (threaded into the LLM system
|
|
407
|
+
* prompt so generated data is consistent with the scenario across calls).
|
|
408
|
+
*/
|
|
409
|
+
scenario?: string;
|
|
410
|
+
}
|
|
324
411
|
}
|
|
325
412
|
|
|
326
413
|
export interface ConnectionListParams {
|
|
@@ -380,12 +467,37 @@ export interface ConnectionSetParams {
|
|
|
380
467
|
* Body param: Run this connection in mock mode. Only honored on first creation;
|
|
381
468
|
* ignored on updates to an existing connection.
|
|
382
469
|
*/
|
|
383
|
-
mock?:
|
|
470
|
+
mock?: ConnectionSetParams.Mock;
|
|
384
471
|
|
|
385
472
|
/**
|
|
386
473
|
* Body param: Human-readable name (optional, defaults to connection ID)
|
|
387
474
|
*/
|
|
388
475
|
name?: string;
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Body param: Connection transport. Defaults to the existing connection transport
|
|
479
|
+
* when updating.
|
|
480
|
+
*/
|
|
481
|
+
transport?: 'http' | 'uplink';
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
export namespace ConnectionSetParams {
|
|
485
|
+
/**
|
|
486
|
+
* Run this connection in mock mode. Only honored on first creation; ignored on
|
|
487
|
+
* updates to an existing connection.
|
|
488
|
+
*/
|
|
489
|
+
export interface Mock {
|
|
490
|
+
/**
|
|
491
|
+
* Turn mock mode on for this connection.
|
|
492
|
+
*/
|
|
493
|
+
enabled: boolean;
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* Natural-language starting-state for the simulator (threaded into the LLM system
|
|
497
|
+
* prompt so generated data is consistent with the scenario across calls).
|
|
498
|
+
*/
|
|
499
|
+
scenario?: string;
|
|
500
|
+
}
|
|
389
501
|
}
|
|
390
502
|
|
|
391
503
|
Connections.Mcp = Mcp;
|
package/src/resources/index.ts
CHANGED
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.61.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.61.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.61.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.61.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/resources/uplink.d.mts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
-
/**
|
|
5
|
-
* Manage uplink tokens for connecting locally-running MCP servers to Smithery
|
|
6
|
-
*/
|
|
7
|
-
export declare class Uplink extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Create or retrieve an authtoken for uplink connections
|
|
10
|
-
*/
|
|
11
|
-
createToken(options?: RequestOptions): APIPromise<UplinkCreateTokenResponse>;
|
|
12
|
-
}
|
|
13
|
-
export interface UplinkCreateTokenResponse {
|
|
14
|
-
authtoken: string;
|
|
15
|
-
domain: string;
|
|
16
|
-
}
|
|
17
|
-
export declare namespace Uplink {
|
|
18
|
-
export { type UplinkCreateTokenResponse as UplinkCreateTokenResponse };
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=uplink.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uplink.d.mts","sourceRoot":"","sources":["../src/resources/uplink.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,WAAW,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAG7E;AAED,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAElB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;CACxE"}
|
package/resources/uplink.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
-
/**
|
|
5
|
-
* Manage uplink tokens for connecting locally-running MCP servers to Smithery
|
|
6
|
-
*/
|
|
7
|
-
export declare class Uplink extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Create or retrieve an authtoken for uplink connections
|
|
10
|
-
*/
|
|
11
|
-
createToken(options?: RequestOptions): APIPromise<UplinkCreateTokenResponse>;
|
|
12
|
-
}
|
|
13
|
-
export interface UplinkCreateTokenResponse {
|
|
14
|
-
authtoken: string;
|
|
15
|
-
domain: string;
|
|
16
|
-
}
|
|
17
|
-
export declare namespace Uplink {
|
|
18
|
-
export { type UplinkCreateTokenResponse as UplinkCreateTokenResponse };
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=uplink.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uplink.d.ts","sourceRoot":"","sources":["../src/resources/uplink.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,WAAW,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,yBAAyB,CAAC;CAG7E;AAED,MAAM,WAAW,yBAAyB;IACxC,SAAS,EAAE,MAAM,CAAC;IAElB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EAAE,KAAK,yBAAyB,IAAI,yBAAyB,EAAE,CAAC;CACxE"}
|
package/resources/uplink.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Uplink = void 0;
|
|
5
|
-
const resource_1 = require("../core/resource.js");
|
|
6
|
-
/**
|
|
7
|
-
* Manage uplink tokens for connecting locally-running MCP servers to Smithery
|
|
8
|
-
*/
|
|
9
|
-
class Uplink extends resource_1.APIResource {
|
|
10
|
-
/**
|
|
11
|
-
* Create or retrieve an authtoken for uplink connections
|
|
12
|
-
*/
|
|
13
|
-
createToken(options) {
|
|
14
|
-
return this._client.post('/uplink/token', options);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.Uplink = Uplink;
|
|
18
|
-
//# sourceMappingURL=uplink.js.map
|
package/resources/uplink.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uplink.js","sourceRoot":"","sources":["../src/resources/uplink.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,WAAW,CAAC,OAAwB;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;CACF;AAPD,wBAOC"}
|
package/resources/uplink.mjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../core/resource.mjs";
|
|
3
|
-
/**
|
|
4
|
-
* Manage uplink tokens for connecting locally-running MCP servers to Smithery
|
|
5
|
-
*/
|
|
6
|
-
export class Uplink extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* Create or retrieve an authtoken for uplink connections
|
|
9
|
-
*/
|
|
10
|
-
createToken(options) {
|
|
11
|
-
return this._client.post('/uplink/token', options);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=uplink.mjs.map
|
package/resources/uplink.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"uplink.mjs","sourceRoot":"","sources":["../src/resources/uplink.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,WAAW,CAAC,OAAwB;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACrD,CAAC;CACF"}
|
package/src/resources/uplink.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../core/resource';
|
|
4
|
-
import { APIPromise } from '../core/api-promise';
|
|
5
|
-
import { RequestOptions } from '../internal/request-options';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Manage uplink tokens for connecting locally-running MCP servers to Smithery
|
|
9
|
-
*/
|
|
10
|
-
export class Uplink extends APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* Create or retrieve an authtoken for uplink connections
|
|
13
|
-
*/
|
|
14
|
-
createToken(options?: RequestOptions): APIPromise<UplinkCreateTokenResponse> {
|
|
15
|
-
return this._client.post('/uplink/token', options);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface UplinkCreateTokenResponse {
|
|
20
|
-
authtoken: string;
|
|
21
|
-
|
|
22
|
-
domain: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export declare namespace Uplink {
|
|
26
|
-
export { type UplinkCreateTokenResponse as UplinkCreateTokenResponse };
|
|
27
|
-
}
|