@smithery/api 0.60.1 → 0.62.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 +32 -0
- package/client.d.mts +3 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -6
- package/client.d.ts.map +1 -1
- package/client.js +3 -6
- package/client.js.map +1 -1
- package/client.mjs +3 -6
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/connections/connections.d.mts +42 -17
- package/resources/connections/connections.d.mts.map +1 -1
- package/resources/connections/connections.d.ts +42 -17
- package/resources/connections/connections.d.ts.map +1 -1
- package/resources/connections/connections.js +32 -11
- package/resources/connections/connections.js.map +1 -1
- package/resources/connections/connections.mjs +32 -11
- package/resources/connections/connections.mjs.map +1 -1
- package/resources/connections/index.d.mts +2 -1
- package/resources/connections/index.d.mts.map +1 -1
- package/resources/connections/index.d.ts +2 -1
- package/resources/connections/index.d.ts.map +1 -1
- package/resources/connections/index.js +5 -3
- package/resources/connections/index.js.map +1 -1
- package/resources/connections/index.mjs +2 -1
- package/resources/connections/index.mjs.map +1 -1
- package/resources/connections/subscriptions.d.mts +66 -0
- package/resources/connections/subscriptions.d.mts.map +1 -0
- package/resources/connections/subscriptions.d.ts +66 -0
- package/resources/connections/subscriptions.d.ts.map +1 -0
- package/resources/connections/subscriptions.js +71 -0
- package/resources/connections/subscriptions.js.map +1 -0
- package/resources/connections/subscriptions.mjs +67 -0
- package/resources/connections/subscriptions.mjs.map +1 -0
- package/resources/connections/triggers.d.mts +160 -0
- package/resources/connections/triggers.d.mts.map +1 -0
- package/resources/connections/triggers.d.ts +160 -0
- package/resources/connections/triggers.d.ts.map +1 -0
- package/resources/connections/triggers.js +111 -0
- package/resources/connections/triggers.js.map +1 -0
- package/resources/connections/triggers.mjs +107 -0
- package/resources/connections/triggers.mjs.map +1 -0
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/servers/servers.d.mts +2 -3
- package/resources/servers/servers.d.mts.map +1 -1
- package/resources/servers/servers.d.ts +2 -3
- package/resources/servers/servers.d.ts.map +1 -1
- package/resources/servers/servers.js.map +1 -1
- package/resources/servers/servers.mjs.map +1 -1
- package/resources/subscriptions.d.mts +76 -0
- package/resources/subscriptions.d.mts.map +1 -0
- package/resources/subscriptions.d.ts +76 -0
- package/resources/subscriptions.d.ts.map +1 -0
- package/resources/subscriptions.js +40 -0
- package/resources/subscriptions.js.map +1 -0
- package/resources/subscriptions.mjs +36 -0
- package/resources/subscriptions.mjs.map +1 -0
- package/src/client.ts +21 -8
- package/src/resources/connections/connections.ts +113 -27
- package/src/resources/connections/index.ts +20 -1
- package/src/resources/connections/subscriptions.ts +112 -0
- package/src/resources/connections/triggers.ts +245 -0
- package/src/resources/index.ts +9 -1
- package/src/resources/servers/servers.ts +4 -6
- package/src/resources/subscriptions.ts +122 -0
- 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/connections/mcp.d.mts +0 -44
- package/resources/connections/mcp.d.mts.map +0 -1
- package/resources/connections/mcp.d.ts +0 -44
- package/resources/connections/mcp.d.ts.map +0 -1
- package/resources/connections/mcp.js +0 -28
- package/resources/connections/mcp.js.map +0 -1
- package/resources/connections/mcp.mjs +0 -24
- package/resources/connections/mcp.mjs.map +0 -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/connections/mcp.ts +0 -63
- package/src/resources/uplink.ts +0 -27
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"}
|
|
@@ -1,63 +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
|
-
import { path } from '../../internal/utils/path';
|
|
7
|
-
|
|
8
|
-
export class Mcp extends APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* Stateless MCP endpoint using Streamable HTTP transport. Accepts JSON-RPC
|
|
11
|
-
* requests and notifications. Session management is handled internally by
|
|
12
|
-
* Connect—clients should not send mcp-session-id headers. Requires service token
|
|
13
|
-
* with mcp scope.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* const jsonRpcResponse = await client.connections.mcp.call(
|
|
18
|
-
* 'connectionId',
|
|
19
|
-
* { namespace: 'namespace' },
|
|
20
|
-
* );
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
call(connectionID: string, params: McpCallParams, options?: RequestOptions): APIPromise<JsonRpcResponse> {
|
|
24
|
-
const { namespace } = params;
|
|
25
|
-
return this._client.post(path`/connect/${namespace}/${connectionID}/mcp`, options);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export interface JsonRpcRequest {
|
|
30
|
-
jsonrpc: '2.0';
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* MCP method to call
|
|
34
|
-
*/
|
|
35
|
-
method: string;
|
|
36
|
-
|
|
37
|
-
id?: string | number;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Method parameters
|
|
41
|
-
*/
|
|
42
|
-
params?: unknown;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export interface JsonRpcResponse {
|
|
46
|
-
id: string | number | null;
|
|
47
|
-
|
|
48
|
-
jsonrpc: '2.0';
|
|
49
|
-
|
|
50
|
-
result?: unknown;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface McpCallParams {
|
|
54
|
-
namespace: string;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export declare namespace Mcp {
|
|
58
|
-
export {
|
|
59
|
-
type JsonRpcRequest as JsonRpcRequest,
|
|
60
|
-
type JsonRpcResponse as JsonRpcResponse,
|
|
61
|
-
type McpCallParams as McpCallParams,
|
|
62
|
-
};
|
|
63
|
-
}
|
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
|
-
}
|