@smithery/sdk 1.0.3 → 1.0.4

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.
@@ -3,6 +3,7 @@ import { WebSocketClientTransport } from "@modelcontextprotocol/sdk/client/webso
3
3
  * Creates a transport to connect to the Smithery server
4
4
  * @param smitheryServerUrl The URL of the Smithery server (without trailing slash or protocol)
5
5
  * @param config Config to pass to the server
6
+ * @param apiKey Optional API key for authentication
6
7
  * @returns Transport
7
8
  */
8
- export declare function createTransport(smitheryServerUrl: string, config?: object): WebSocketClientTransport;
9
+ export declare function createTransport(smitheryServerUrl: string, config?: object, apiKey?: string): WebSocketClientTransport;
package/dist/transport.js CHANGED
@@ -4,8 +4,9 @@ import { createSmitheryUrl } from "./config.js";
4
4
  * Creates a transport to connect to the Smithery server
5
5
  * @param smitheryServerUrl The URL of the Smithery server (without trailing slash or protocol)
6
6
  * @param config Config to pass to the server
7
+ * @param apiKey Optional API key for authentication
7
8
  * @returns Transport
8
9
  */
9
- export function createTransport(smitheryServerUrl, config) {
10
- return new WebSocketClientTransport(createSmitheryUrl(`${smitheryServerUrl}/ws`, config));
10
+ export function createTransport(smitheryServerUrl, config, apiKey) {
11
+ return new WebSocketClientTransport(createSmitheryUrl(`${smitheryServerUrl}/ws`, config, apiKey));
11
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithery/sdk",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Connect language models to Model Context Protocols",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",